Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
How can we know dataset open() event is called for which report element?
ekta
<p>Hi,</p>
<p> </p>
<p>I have a report with multiple report elements (tables, charts etc.) I need to make a REST call for each of these report elements.</p>
<p> </p>
<p>For this I have a map with -</p>
<p>Key - reportelement_id</p>
<p>Value - json (to be sent in REST call)</p>
<p> </p>
<p>This REST call needs to be made through the open() event of the dataset whose columns are mapped with the report element.</p>
<p> </p>
<p>Dataset open() is getting called for every report element but I need to know for which particular report element it is getting called at a particular time. This is so that i can pick json for that particular report element from the map and send it across in the REST call.</p>
<p> </p>
<p>Can you please guide me how to know dataset open() event is called for which report element?</p>
<p> </p>
<p> </p>
<p>Thanks</p>
<p>Ekta</p>
Find more posts tagged with
Comments
malaythecool
<p>for taking data from json i will suggest to firstly retrieve data in Java Class</p>
<p> </p>
<p>Then from this class you can pass the list to the rptdesign file from Scripted Data Source and can just drag and drop from the data set to report</p>
<p> </p>
<p> </p>
<p>Malay</p>
Atul Arora
<p>In report we are using scripted data source ( from external data design file ) and in report lets say we have 2 tables mapped with same data set.</p>
<p>At runtime each table will have it's own separate call for the data set and now the requirement can i get a reference of tables inside the data set or data source events i.e. open/before open.</p>
<p> </p>
<p>I need a refernce report element id, name anything through which i can determine that this time this call has come from table1 or table 2.</p>
<p> </p>
<p>And i can't put any script on table's event.</p>
malaythecool
<p>i didnt understood properly</p>
<p> </p>
<p>make clear with example</p>
<p> </p>
<p>Malay</p>
Atul Arora
<p>Let's say there is a report report.rptdesign and dataobject data.dataDesign (Which includes a scripted data source and dataset)</p>
<p> </p>
<p>Inside this report.rptdesign i have included 2 report element i.e table table1 & table2 and both are bounded with data set.</p>
<p> </p>
<p>As per event execution order during report execution, open/beforeopen event of dataset will be invoked individually for both the tables for getting the data.</p>
<p> </p>
<p>In open/beforeopen event of data set, i want to know the current event call is for which table to get the data.</p>
<p> </p>
<p>P.S. : Reference of report element with which this data set is bounded inside open/beforeopen event</p>