Extending the capabilities described in my last post, you can also allow the user to decide whether to display report elements at run time. Create a parameter with static values of Y and N (with display values of Yes and No). Then in visibility select hide element for html and then use the expression builder to reference the parameter. If your parameter is something like 'Show Transaction Detail?' then the following expression will hide it when N is selected.
BirtComp.equalTo(params["show_detail"].value,'N')
BirtComp.equalTo(params["show_detail"].value,'N')
In this case, I named my parameter show_detail.
No comments:
Post a Comment