How to evaluate an expression in a custom report item
Options
Hi,
I've written a custom report item and I'd like to start making some of its properties settable via report parameters, which I'm guessing means making them expressions. I've done this and have made the necessary UI changes, but I can't figure out how to evaluate the expressions when generating my output.
Is there something I can get a reference to in my ReportItemGeneration or ReportItemPresentation classes so that the report designer can specify something like 'params["scale"]' at design time and then I can evaluate it to get the value of the scale parameter that the user provides at runtime?
I can do it if the item is embedded in a data set, because the row set passed to my ReportItemPresentation class has an 'evaluate' method, but I can't see how to get a reference to something that'll allow me to call an 'evaluate' when outside of a data set.
Thanks,
Shaun
I've written a custom report item and I'd like to start making some of its properties settable via report parameters, which I'm guessing means making them expressions. I've done this and have made the necessary UI changes, but I can't figure out how to evaluate the expressions when generating my output.
Is there something I can get a reference to in my ReportItemGeneration or ReportItemPresentation classes so that the report designer can specify something like 'params["scale"]' at design time and then I can evaluate it to get the value of the scale parameter that the user provides at runtime?
I can do it if the item is embedded in a data set, because the row set passed to my ReportItemPresentation class has an 'evaluate' method, but I can't see how to get a reference to something that'll allow me to call an 'evaluate' when outside of a data set.
Thanks,
Shaun
0
Categories
- All Categories
- 108 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
- 120 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management