Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
retrieve report elements and properties with java
myklynysh
Hi,
I have a set of birt reports saved an the disc, e.g.
report1.rptdesign,
report2.rptdesign,
report3.rptdesign.
They have different parameters and charts.
I have to write a java code to read these reports and retrieve a set of parameters and properties of charts like visible / invisible. All what I found in API is
IReportDesign reportDesign = design.getDesignInstance();
IReportElement element = reportDesign.getReportElement(nameOfChart);
But I don't now, that the nameOfChart is because there are for each report different. How can I retrieve all in report available names of report elements?
Thanks & Regards
myklynysh
Find more posts tagged with
Comments
mwilliams
Hi myklynysh,
I haven't done this, but I would guess that with the DEAPI that you could grab the report and iterate through the report's "children" which would be all the report elements. While you have each element, you could grab the name/ID and then use that to grab the properties.
Hope this helps.