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)
List of all Elements
denislagod
Using API I need to find all labels and change then. Labels could be at any place: in body, in grid. Anywhere. How to get all List of Labels/ or just full list of elements.
Thank you in advance.
Denis
Find more posts tagged with
Comments
icirillo
<blockquote class='ipsBlockquote' data-author="'denislagod'" data-cid="100134" data-time="1336554160" data-date="09 May 2012 - 02:02 AM"><p>
Using API I need to find all labels and change then. Labels could be at any place: in body, in grid. Anywhere. How to get all List of Labels/ or just full list of elements.<br />
Thank you in advance.<br />
Denis<br /></p></blockquote>
<br />
<br />
I had a look at the example <a class='bbc_url' href='
http://www.birt-exchange.org/config/devshare/visit.php?aid=386'>http://www.birt-exchange.org/config/devshare/visit.php?aid=386</a><br
/>
<br />
In the code you can see:<br />
<br />
TableHandle table = (TableHandle) design.getBody().get(0);<br />
<br />
So if you do the following:<br />
<br />
List elements = design.getContents();<br />
<br />
This should give you all the elements defined in the report. After that you should loop on the elements (and nested elements) and find a condition that checks if an element is a label.