Displaying Parameter Selections in Report
Options
This short script grabs all of your report paramters and steps through them, adding their values to an output string. The script also checks if the parameter is multi-select or not, so that it knows whether it has to step through an object to get the values. I helped someone figure this out in Actuate 11, which at the time used BIRT 2.6.2. However, it probably works for most, if not all, versions.
var output = ""; var paramVal = ""; var pList = reportContext.getDesignHandle().getAllParameters(); var pListSize = pList.size(); for (i=0; i<pListSize; i++){ var paramName = pList.get( i ).getFullName(); var paramType = pList.get( i ).getStringProperty("paramType"); if (paramType == "multi-value"){ paramVal = reportContext.getParameterValue( paramName ).join(", "); } else{ paramVal = reportContext.getParameterValue( paramName ); } output = output + paramVal + " "; } output;
Warning
No formatter is installed for the format ipb
0
Categories
- All Categories
- 109 Developer Announcements
- 49 Articles
- 100 General Questions
- 122 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 123 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management