How do we read and write report parameters and variables in javascript event callbacks?
Best Answer
-
Attached is an example that shows how to reference parameters in onContentUpdate. The two client scripts run in the browser so they work differently than the engine scripts. Any values you want to access in the browser need to be passed to it. One way to do that is to create a text element. In the attached example, I set the Text element type (top middle of the edit window) to HTML. I passed the two parameter values to two browser window variables in the Text element script: window.param1 and window.param2 where "window" is the standard DOM browser to level element. I also added two
<
div> tags to display the values that were passed to the browser so you can see that it works, but they are not required. In onContentUpdate I wrote some simple code to display the values in the divs.
Regarding the custom visualization question, I believe that is being handled on a support ticket.
Warning No formatter is installed for the format ipb0
Answers
-
To access parameters in events, try the following:
params["param_name_here"].value
In an event handler, you can also type:
reportContext.
Be sure to include the trailing dot. You should see a popup window showing the methods and sub-objects for the reportContext object..
Warning No formatter is installed for the format ipb0 -
Attached is an example that shows how to reference parameters in onContentUpdate. The two client scripts run in the browser so they work differently than the engine scripts. Any values you want to access in the browser need to be passed to it. One way to do that is to create a text element. In the attached example, I set the Text element type (top middle of the edit window) to HTML. I passed the two parameter values to two browser window variables in the Text element script: window.param1 and window.param2 where "window" is the standard DOM browser to level element. I also added two
<
div> tags to display the values that were passed to the browser so you can see that it works, but they are not required. In onContentUpdate I wrote some simple code to display the values in the divs.
Regarding the custom visualization question, I believe that is being handled on a support ticket.
Warning No formatter is installed for the format ipb0
Categories
- All Categories
- 111 Developer Announcements
- 49 Articles
- 103 General Questions
- 123 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
- 1 XM Fax