Birt Designer - Insert Table Elements dynamically using Event Handlers Scripting
Options
<p>Hello,</p>
<p> </p>
<p style="margin:0px 0px 1em;font-size:14px;color:rgb(0,0,0);font-family:Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;font-style:normal;font-weight:normal;text-align:left;">i'm using Eclipse Birt Designer v4.4.1,</p>
<p style="margin:0px 0px 1em;font-size:14px;color:rgb(0,0,0);font-family:Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;font-style:normal;font-weight:normal;text-align:left;">I have a dataset that returns a certain number of rows.</p>
<p style="margin:0px 0px 1em;font-size:14px;color:rgb(0,0,0);font-family:Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;font-style:normal;font-weight:normal;text-align:left;">I would like to insert dynamically Table Elements based on the number of returned rows. (If number of rows = 6, then add 6 table elements (the same table structure).</p>
<p style="margin:0px 0px 1em;font-size:14px;color:rgb(0,0,0);font-family:Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;font-style:normal;font-weight:normal;text-align:left;">I found out recently that this could be done using Javascript (Or Java) Event Handlers :</p>
<p style="margin:0px 0px 1em;font-size:14px;color:rgb(0,0,0);font-family:Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;font-style:normal;font-weight:normal;text-align:left;"><a data-ipb='nomediaparse' href='http://eclipse.org/birt/documentation/integrating/scripting.php'>http://eclipse.org/birt/documentation/integrating/scripting.php</a></p>
<p style="margin:0px 0px 1em;font-size:14px;color:rgb(0,0,0);font-family:Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;font-style:normal;font-weight:normal;text-align:left;">(probably the onFetch event, the BeforeFactory or the onCreate Event)</p>
<p style="margin:0px 0px 1em;font-size:14px;color:rgb(0,0,0);font-family:Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;font-style:normal;font-weight:normal;text-align:left;">Does anyone know how could this be done or provide a similar example for adding an element dynamically to a Birt Report using scripts. </p>
<p style="margin:0px 0px 1em;font-size:14px;color:rgb(0,0,0);font-family:Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;font-style:normal;font-weight:normal;text-align:left;">Thanks.</p>
<p> </p>
<p style="margin:0px 0px 1em;font-size:14px;color:rgb(0,0,0);font-family:Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;font-style:normal;font-weight:normal;text-align:left;">i'm using Eclipse Birt Designer v4.4.1,</p>
<p style="margin:0px 0px 1em;font-size:14px;color:rgb(0,0,0);font-family:Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;font-style:normal;font-weight:normal;text-align:left;">I have a dataset that returns a certain number of rows.</p>
<p style="margin:0px 0px 1em;font-size:14px;color:rgb(0,0,0);font-family:Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;font-style:normal;font-weight:normal;text-align:left;">I would like to insert dynamically Table Elements based on the number of returned rows. (If number of rows = 6, then add 6 table elements (the same table structure).</p>
<p style="margin:0px 0px 1em;font-size:14px;color:rgb(0,0,0);font-family:Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;font-style:normal;font-weight:normal;text-align:left;">I found out recently that this could be done using Javascript (Or Java) Event Handlers :</p>
<p style="margin:0px 0px 1em;font-size:14px;color:rgb(0,0,0);font-family:Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;font-style:normal;font-weight:normal;text-align:left;"><a data-ipb='nomediaparse' href='http://eclipse.org/birt/documentation/integrating/scripting.php'>http://eclipse.org/birt/documentation/integrating/scripting.php</a></p>
<p style="margin:0px 0px 1em;font-size:14px;color:rgb(0,0,0);font-family:Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;font-style:normal;font-weight:normal;text-align:left;">(probably the onFetch event, the BeforeFactory or the onCreate Event)</p>
<p style="margin:0px 0px 1em;font-size:14px;color:rgb(0,0,0);font-family:Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;font-style:normal;font-weight:normal;text-align:left;">Does anyone know how could this be done or provide a similar example for adding an element dynamically to a Birt Report using scripts. </p>
<p style="margin:0px 0px 1em;font-size:14px;color:rgb(0,0,0);font-family:Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;font-style:normal;font-weight:normal;text-align:left;">Thanks.</p>
0
Comments
-
<p>You wouldn't know early enough how many rows will be in one dataset to add tables for each at the appropriate time. One thing you could do would be to add a table/list to your layout that's attached to your data set with six rows and place a table in the detail row. This will create six tables.</p>
Warning No formatter is installed for the format ipb0 -
<p>This sounds similar to another topic that I created an example for: <a data-ipb='nomediaparse' href='http://developer.actuate.com/community/forum/index.php?/topic/36007-birt-report-design/?p=133532'>http://developer.actuate.com/community/forum/index.php?/topic/36007-birt-report-design/?p=133532</a></p>
<p> </p>
<p>Hopefully the example will be helpful.</p>
Warning No formatter is installed for the format ipb0 -
I think this is the thread:
https://forums.opentext.com/forums/discussion/comment/799363#Comment_799363
Warning No formatter is installed for the format ipb0
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
- 122 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management