How to retrieve the selected content from the html tag in birt report
Comments
-
Can you use a Report Parameter instead of a Text element? If not, what prevents you from using the Report Parameter? The issue with the way you are trying to do it is that the dropdown will run in the browser after the chart has been created.
Warning No formatter is installed for the format ipb0 -
Are you familiar with JavaScript API (JSAPI)? There is a link to some documentation here. If you can't use the standard report functionality with parameters, you will need to write custom JSAPI code to interact with the chart. I found one code snippet that might be helpful. It filters a chart with bookmark "ChartBookmark" using the ProductLine value from the Classic Models database.
var bviewer = this.getViewer(); var bpagecontents = bviewer.getCurrentPageContent(); var bchart = bpagecontents.getChartByBookmark("ChartBookmark"); if (bchart == null) return; // unable to get handle to chart in case where chart becomes hidden var filter = new actuate.data.Filter("PRODUCTLINE", "=", "Planes"); var filters = new Array(); filters.push(filter); bchart.setFilters(filters); bchart.setChartTitle("Orders By Country (Planes)"); bchart.submit();
You would need to get the value from the dropdown in code and send it to the filter. Note that I have not tested this code and it is meant to be used only as an example.
Warning No formatter is installed for the format ipb0 -
This Question is Awaiting Your Response
The moderator is awaiting your response. Were you able to resolve the issue? If so, would you please share your solution with others in a response post? Or, would you like some further assistance? Please let us know. Your question and its resolution are important to us, and we want to help.
David Sciuto
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