BIRT Dataset Parameter Placeholder not Created - birt

The BIRT documentation states that when I add a ? marker in the where clause of the SQL query, BIRT will automatically create a placeholder parameter that I can then edit appropriately. I've added the markers, but nothing ever appears in the Parameters list for the dataset. Am I missing something? If I create a parameter without first having a placeholder, can I somehow associate it with the appropriate marker in the query?

The parameters are not generated automatically.
You'll have to add them manually.
After finishing the SQL SELECT statement, edit the Data Set and choose the entry "Parameters" from the menu on the left side. Then, for each "?" in the select, add a parameter using the "New..." button on the right side.

Related

Spotfire DropDown list to filter entire page?

I have been desperately trying to figure out how to take a column, customer name, and be able make a drop down list that filters the entire pages visualizations so that when you have a specif customer selected it filters everything.
I think I'm going down the right path my creating a property type string and setting it to unique values in that customer name column, but cant seem to figure out what to do next. Even if i have to set it individually for each visualization that would be fine, but i cant seem to get this to work.
Can someone help me figure this out?
I'm on spotfire 7.0 if that matters. Thanks
Thank you in advance.
#TPLEE - In order to apply filter to the visualization from the selected drop down, you have to insert the below case statement in 'Limit data using expression' section of the visualization properties as shown below.
Right click on the visualization and go to properties.
Click on edit as shown in the picture and insert the below case
statement and click 'Ok'.
Note: 'YourCOLUMNName' will be your column name from the data table that you are using and ${CustomerName} is your property control name
case
when "${CustomerName}"=[YourCOLUMNName] then true
when "${CustomerName}"="" then true
else false end

Jqgrid - How to create a custom add-button that you can supply of parameters

When you create a jqgrid there is a default button on the bottom of the grid that allows you to create new records.
However, when you open the modal, all input fields are empty.
In my situation I need this button, but I also need the exact same thing but with the possibilty of adding a few parameters so some of the fields are already filled in. The parameters would come from the selected row at that moment.
Like when I click a row where the date is set to 01/01/2099 i need the add-modal to open with the date already set to that date.
You can use beforeShowForm or afterShowForm to make any changes in the Add Form during opening. For example you can read the values from currently selected row and fill some fields of the form with new values. To be open Add form on click or double-click on the row you need just call editGridRow inside of onSelectRow/ondblClickRow callback.

Can you get value from SubReport?

I have a SubReport with a textbox, I would like to read the value of this textbox and then put it in the main report for each data row.
My SubReport is in a data column.
If you are using Visual Studio, you should be able to drag and drop the sub report object into the text box and configure it from there. But make sure that if the sub report expects parameters, you send the required parameters.

Dynamic data in Cross Tab of Birt Tool

how to hide cross tab columns runtimely based on user selection in birt Tool
See the attached image...
Rows and columns can be removed from visibility in BIRT cross tabs by filtering the cross tab.
To do this:
Select the crosstab object in the Layout window.
In the Property Editor for the cross tab, select the Filters tab.
Click the Add... button to the right of the Filter by: list.
In the New Filter Condition dialog, select the desired column from the Target: section and the relevant conditions in the Filter Condition: section. Remember that filter conditions are conditions for showing the data, not hiding it, so your condition will need to be the converse of a condition for hiding it (such as would be used in a table column visibility condition).
Use cross-tab to tabulate dynamic columned data. Follow this tutorial to create dynamic columned cross-tab report

Pass a parameter from Main Report to a Subreport

Apologies for these recent newbie questions, but I'm obviously not asking the search engines the correct questions.
I have a report I'm trying to reconstruct after upgrading from VS2008 to VS2010 introduced errors into an existing Crystal Report. So, I have a semi-working report I'm trying to duplicate.
I have a report containing some subreports. The Main Report has some parameters in queries within "Database Fields" and I need to pass those fields to a particular Subreport's "Parameter Fields" so that it can then reference those parameters in its own queries.
So, my question is: How do I create the association between the query result on the Main Report and the parameter on the Subreport?
For Crystal Reports for Visual Studio 2010 - That's the only one that works currently, isn't it?
When adding a sub-report [or changing the "Change Subreport Links" for an existing report] you can select the parameter on the subreport from the drop-down on the bottom left of the 'Links' tab (or Subreport Links dialog, if editing an existing subreport)
Once you've selected your field (or Parameter) on the left in the 'Available Fields:' list, click the > button to move it to the right and you'll see link options appear below. so this is the field from the main report you want to use as a parameter for you subreport
Underneath, on the right select the parameter (from you subreport) you wish to link it to. This is the parameter in your subreport that you want to use
does that make sense.
Maybe some images would help.
Depending on your version, the terminology might be slightly different, but you should be able to right-click on the subreport and select "Change Subreport Links".
From the Available Fields column, find your parameters and click the > button to move them over to the "Fields to Link" column. Click OK when you are done.
Now go to your subreport, and make sure that the parameters you linked are available as parameters; you should be able to use these parameters in your Record Selection for your subreport.

Resources