Openerp using subreport by Jasper Report - jasper-reports

I want to create a sale order report with Jasper Report. So, I took xml of sale_order object by Jasper's data template of openerp and I set depth 3 in that xml file. And then, I created report by using Jasper Report. After that, I added this report by using new Jasper Report of openerp. My report has a dataset in the main report for sale_order_lines. So that, I have an error below:
openerp.netsvc: Report Error Failed to invoke method execute in class com.nantic.jasperreports.JasperServer: Error evaluating expression : Source text : $P{REPORT_DATA_SOURCE}.subDataSource("//sub_report")
How to fix this error? If you don't mind, please explain me step by step.

Related

invalid table number error in crystal Report

When you run the Report, the following error occurs: 'Invalid Table Number'.
Can anyone tell me why?
Report having SubReport in it.
I am Using Crystal 10
I already tried with Set DataSource Location and Verify Database

Can I print the data source name on Jasper Report using Jasper Studio's?

I am using TIBCO JasperSoft Studio to create my jasper report. I will pass different data sources to the same report. I tried to use $P{REPORT_DATA_SOURCE} but only get something like "net.sf.jasperreports.engine.fill.SortedDataSource#...". Can I print the data source name on Jasper Report using Jasper Studio's parameters / fields / variables expression ?
My Data Source is "SUNNYSZ" as shown
And My Report Layout is
And My result is
My Question is how can I print my real data source name "SUNNYSZ" ???

Cannot find parameter field Pm-Command.Name in subreport 12. SAP B1

I created report which has sub report in Crystal Reports 2011 in two different databases, I set Link between main report and its subreport, My report works fine in crystal report design but if I import it in SAP B1 9.2 PL10 I get error message while previewing
Cannot find parameter field Pm-Command.Name in subreport 12.
I tried to do research but there is no answer I got. The parameter which has error is the parameter links subreport and main report.
I tried to change subreport links but error is still same
Below is formula of subreport parameter which causes that error.
{Command.Name} = {?Pm-Command.Name}
Please anyone can help me to solve this issue

Create Report using Crystal Report XI from DataSet

*STEP 1.*My program get Crystal Report (XI sp6) templates from admin. It parses the templates to get SQLs from that and then populate it to get DataTables for each SQL.
*STEP 2.*After that, it push the DataTables back into the ReportDocument to create the report by using the following code:
// there no subreport in our template
//mainDS include all populated DataTable having the same name of related CR Command Alias
foreach (Table tab in doc.Database.Tables)
tab.SetDataSource(mainDS.Tables[tab.Name]);
The problem is (I wonder if it is a Crystal Report Bug): if there is 2 Command in the template, when the code tab.SetDataSource(mainDS.Tables[tab.Name]); is executed for doc.Database.Tables[0] then doc.Database.Tables[1].Fields is become the same to doc.Database.Tables[0].Fields and ofcause I get an error.
I do not get this error with all templates, just some :(. All templates worked well in Crystal Report GUI!!!
Please help if it not bug or please show me how to work around!
I am using Crystal Report XI Developer Edition with latest pack, VS2005. Oracle 10g, Devart DotConnect for Oracle Free version.
After mining SAP document and test many times, I think that it is a bug of CR XI R2 sp6. So I on report I only keep 1 Command, If there is a need for other commands, I will create subreports and put the commands in these.

"The Report is empty" - is bug?

I've created report with 3 parameters in iReport and it's running successfully. The report is execute MS SQL stor proc with 3 parameters:
startdate;
enddate;
dept_nm (department name);
iReport gives good result. As soon as I exported jrxml file to JasperReports Server 4.1 I have message "The report is empty".
In the Repository under JasperReports Server I've created controls for dates parameters and single list values for dept_nm parameter.
Do you know how to debug and trace this message coming from???
Your query is returning no data. The message appears when the report result is null.
The quickest way to debug this in JasperReports Server is to modify the report's behavior when no data is returned. The default behavior is "No Pages". Change it to "All Sections, No Details". That way you'll get at least the report title and summary band.
Display your parameters in the title band to see what their values are. Often they aren't what you expect. For example, your input control is "StartDate", but your parameters is "startdate". So the parameter doesn't get the value you thought it would.
I get this a lot. E.g if you have sub reports only, it thinks the main report is blank. You have to do something silly like insert a dummy SQL into your report such as "select 1" then populate a hidden part of the report with the result. When it works on in report studio, but gives you the report is empty on the server (with a good data source - other reports working) is when you have real trouble. Not solved those yet.
Maybe you did not connect your report to any Data Source.