I am using Jaspersoft Studio 6.3.1 with Jasper Report Server Community edition and I have a report with multiple subreports . All subreports have their own SQL queries and they all return the same columns. Once all queries are executed I would like to present all data on my report as one table using a sorting order over the entire dataset (all results from all queries).
It looks to me like I need to sort the data in the report and I cannot find how to do it.
Any ideas/help would be much appreciated - so thank you in advance.
Related
I have a JRXML with an SQL query inside the template. If I try to generate report (from java and Tibco Jasper Report) the preview and the pdf show me the correct data. The Excel version instead show me only the tables, without any rows (that I see in the preview). Alle the tables are designed with jr:table.
Anyone know why this happens?
Thanks
Luigi
Solved!
The issue was a tiny text field (most probably a type during cut and paste inside the jasper report tool) overlapped on the jr:table.
Removed this, the report is correctly rendered also on xlsx.
I am not a Crystal Reports developer.
In a legacy Crystal Report, I have been asked to find out why some Rows of data are being excluded from the Report Output at run time.
I copied the SQL behind the report and when I ran it in SQL Server Management Studio, those rows are not excluded. This is what leads me to conclude that there is a filter in the report itself that is excluding certain rows.
My question:
What are the different places in Crystal Reports 11 that I should look to find if any filtering is going on at run time?
I have looked at Formula fields, Selection formulas, Parameter Fields ... but though I have seen various code in those places, I have not found anything that looks like it will limit the output.
I would appreciate any pointers/suggestions.
Besides section suppression, look at:
Report, Selection Formula, Record...
Report, Selection Formula, Group...
Database joins
If the report SQL is the same as the one you checked in SSMS (including record selection formula , which will be the WHERE clause) , check report's details section suppression formula. A details row might be suppressed based on some row values
*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.
I have a number of reports with current and ytd columns(summary totals by salesman). I want to be able to select the sub-report based on the column clicked. I have one sql procedure that selects current and one that selects ytd. I want to use the same report format (without having to copy and modify it) for current and ytd. Is there anyway of identifying what column is clicked?
Crystal Reports is pretty much just a reporting tool; it's not very interactive.
I'm more familiar with older versions of Crystal Reports, but as far as I know there aren't any onClick methods for columns that can be trapped using pure Crystal Reports.
Depending on how many columns you have, you can create a subreport for each column, but that may be prohibitively slow if you have a large number of columns you want to create subreports for.
If you're using C# or VB.NET to generate the report, you may have more options, but since the question isn't tagged with any programming languages, I'm going to assume this is pure Crystal Reports.
In my crystal report, I am actually filtering the data based on start date and end date.
But I am not getting data out of a fixed range(1-1-1985 to 31-12-2009).
Data I am getting is directly from DB table, I am not calling any procedure.
I checked all possible way to restrict/filter the data, I could not find anywhere they are filtering in the report.Still I am getting data from 1985 to 2009.
I am using Crystal Report 8.0.
Any idea how and where the data can be filtered out??
Thanks in advance for your time.
I did the following and now it is working fine.
Menu=> Database>Show SQL Query...>Reset
then I saved the report.
It is working fine now.
I feel it is a bug in Crystal Report or may be the behavior of the software(because I am new to crystal report).