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)
get element by ID or by name in a eventAdapter
jkeldi
Hi,
i want to know how to get an element by ID or by name in a eventAdapter. by example, i've made a TableEventAdapter class and i want to get a DynamicText element on this TableEventAdapter by his ID(75) or by his name("TitreProcess"), how can i do it?
Find more posts tagged with
Comments
kclark
You could use something like
var myElement = reportContext.getDesignHandle().getElementByID(75);
jkeldi
<blockquote class='ipsBlockquote' data-author="'kclark'" data-cid="117258" data-time="1369918641" data-date="30 May 2013 - 05:57 AM"><p>
You could use something like<br />
<br />
var myElement = reportContext.getDesignHandle().getElementByID(75);<br /></p></blockquote>
<br />
hi kclark, <br />
<br />
thanks you for the reply.i think the solution you give would work if i did BIRT scripting. However, i 've chosen to do EventAdapter java class instead. Is there an other solution that fit for EventAdapter java class? If not, i would abandon EventAdapter java class and would do BIRT scripting with your solution.<br />
<br />
Regards.