Crystal Dynamic Parameters - crystal-reports

My report has three dynamic multi value parameters. The problem is when I publish the report to the repository, the available values do not show up. Its all blank. I tried mapping the parameter values to LOVs created in Business Views, but that is also not working somehow. Any idea what i might be doing wrong or need to do. Thanks

Did you schedule your list of values in Business View Manager? Right click on the LOV then select schedule list of values - either run now or schedule.

Related

Run workflow over all entities to copy data from one field to another

I'm in a situation where i need to add a default value "blank" to my "Two Options" field. Since I cannot set a default value of "null" to an already created Two Options field, I though of creating a new custom field of type "Option Set" and add the same two options Yes/No in addition to setting the Default value to Unassigned.
I need to create a workflow that copies the old values choices into the new field. I understand that I can't simple equate the values of two fields of different type but I'm going to do that with Check conditions to set the new field value corresponding to the old field value.
I'm not sure how to run this workflow against all the existing records in my CRM online with no codes. Is that possible ?
Without using code or custom tools your best options are:
Do an advanced find, select all the records in the view and run the workflow - this will run the workflow against every record. You can view up to 250 records at a time (check personal settings to change this) so this might work for you.
Export all the data to Excel, make the change in Excel in bulk. Reimport the data. This way you don't need workflow at all.

Data for some bound fields not appearing on report

I'm creating a 'SectionReport' (Active Reports V.9), and am dragging bound fields from the 'Report Explorer' directly onto the report. I've written the SQL query, which executes and returns the correct results as expected.
However, only a small portion of the bound fields are displaying data from the table.
Again, when I execute this in the 'Query Designer', I see all data. When I save that exact query, only some of the data is populated on the report.
This process seems so straight forward and yet I seem to be missing something.
Please help and thanks in advance!
So you're saying the data is returned but not showing up in some of the fields? Have you checked the binding for each of those fields?
Can you step with the debugger and verify that in the detail_format even there is data in report.fields for those records that have missing values.
can you add debug statements that print each field value in the detail_format event.
based on what you described all I can offer is some diagnostics techniques. If you'd like please send your report to our support team and we can properly inspect it and help you out http://arhelp.grapecity.com/
If you are using the enduserdesigner sample or the pre-compiled exe that comes with the installer, can you please make sure that the PreviewPages to a larger number instead of 10.
You can change the value by follwing these steps. in report exploer, double click the settings node. go to gloabal settings tab and change the previewpages value.
If this is not the case, please attach the report. There are no other settings that will cause this.

SSRS - Have report execute sub-queries?

I've looked all over and cannot find an answer to my question; I can't even determine whether it is possible.
Referring to the attached image, you will notice that this is a statement report with data grouping activated.
1) The report shows all the services invoiced to an account by date.
You can expand the group to see all the transactions that formed part of that service for that day. (You can for instance make use of the same service multiple times per day)
2) This is the detailed layout of the service invoiced. This list is different for each service, but mainly it will show you a summarized transaction list (PK BatchId), which has the "+" symbol next to it to enable drilldown to a detailed report of the batch.
My problem:
When loading the statement report, we are now hitting multiple tables, multiple times to produce the data to be grouped and displayed in #2 (refer to image).
We are trying to avoid this like the plague.
My Question
Is there a way to populate #2 when and only when the user clicks a "+" symbol or an "expand" image where the "+" is currently located in #1.
In other words. We dispose of the group function and populate the statement without detailed information. When the user clicks on #1, we load a sproc, populate a dataset and display the data in #2.
Any thoughts on this?
Drillthrough Reports look like a good solution here. See the link for more information on how these work. So basically you have the report without the detailed information, but when somebody clicks on 1 it opens up a new report with the details behind it.
After testing, I confirmed that subreports are executed even if they are hidden within an element that can be toggled.
So subreports won't answer this problem.
[Edited: previously I thought they could be used. JAT points out that this negative answer may have some value, so I'm leaving it.]

How can I build a table of contents in iReport/JasperReports?

We use iReport to enable our customers to generate catalogs for print for their products. This process works GREAT. One of the things we've struggled with is how to create a table of contents for these product catalogs.
I decided to use the Scriptlet functionality to give this a shot. Note that our reports are all master-detail in nature, in that there is a master report and a subreport.
At first, I attached the scriptlet to the master report, and tried to find a way to collect all of the product numbers in the detail report, then pass that value back to the master report. I can't figure out how to get the detail information back to the master report, as it appears that you can only pass default variables from the subreport back to the master (eg PAGE_NUMBER, COLUMN_NUMBER, PAGE_COUNT, COLUMN_COUNT).
So then I tried attaching the Scriptlet to the detail report. Well, the detail report doesn't know what page the master is on, so I started passing the master's page_number into a variable in the detail report. That worked great, except that sometimes the detail can overflow to the point that page numbers from the master are skipped. In other words, if a subreport returns more than two pages worth of data, you are going to miss a page number when the subreport is called the next time.
So how to do this?
I found an approach that worked, similar to one of my ideas above. First of all, I could NOT get a subreport to return a value to the calling report, and then retrieve that value using getVariableValue from inside a scriptlet. I tried forever, and I just could not get that to work.
Instead, I went with the approach where I attached the same scriptlet to both the master and subreports. The scriptlet has a class variable where I can keep a running tally of all the product numbers I encounter in the detail, and this code goes inside the afterDetailEval() method of the scriptlet. Note that I only want this code to run for the subreport, so I do a check to see if a particular detail field, which will never be null, is present. If it's not, I don't run the code. So when that event is called by the master report, the code doesn't run.
Now for the part that I learned from the example. The admirable side-effect programming in the example is that there is a line of dimensions 1x1 that contains a call to a custom scriptlet method in the "Print When Expression" property. That's a great idea! So this custom method returns false no matter what, and the line never prints. I did the same thing in the Page Footer band, and this method collects the values from the class variable, determines the page, and stores the results in a hash. Then it resets the class variable.
In the Report Summary band, I have another line that will never print, that calls another custom method. All I do here is iterate through a map of product numbers and show all the pages each one appears on. Done!
There is an example of tables of contents (with subreport) in project folder jasperreports-x.x.x/demo/samples/tableofcontents.
And see the hyperlink example also.
Hyperlinks, Anchors and Bookmarks
JasperReports allows you to create drill-down reports, which introduce tables of contents
in your documents or redirect viewers to external documents using special report elements called hyperlinks.

BIRT, repeating chart in list

I have a problem using Eclipse BIRT, i'm trying to create a list with group headers including a chart relevant to the specific group header. So lets say i'm trying to create a list with all employees including their sick hours monthly in a bar chart.
Name
[CHART], Contract hours, Division, job
Name
[CHART], Contract hours, Division, job
How can i create this without creating a specific data set for every employee? This is what i am currently doing and it renders the grouping functionality of my list useless since i need to create a new dataset and list for each employee.
Regards,
Rik
When you add the chart, do not bind it to the Report Data Source. On the data tab select "Inherit Data From Container". This will ensure the chart is bound to the data that is populating the list, not the underlying (ungrouped) data set.
Here is a smple that does what you need including a link to a live running demo.
Dynamic Chart Creation at BIRT Exchange Dev Share
Good Luck!