Create a report parameter with static values of Y and N. Then select the report item (a table in this example) and select visibility in the properties editor.
In the check the hide element box and select the radio button "for all outputs". Click on the formula editor and paste in:
BirtComp.equalTo(params["Parameter_name"].value, 'N')
where Parameter_name is the name of your report parameter.
When the report is run, the user will be presented with a parameter that allows the user to hide or display the report item.
No comments:
Post a Comment