|Setting an element visibility using RE api [message #1048896]
||Thu, 25 April 2013 04:43
| Prashant Jha
Registered: September 2011
I want to switch on and off a table element, andor set other properties of report before firing it in java code using RE api. However, for table element, if I try to set visibility property, i get error saying i cannot set a structure. I will try to explain with code for RE api....
In rptdesign I set name for chart element as chartTable.
IReportRunnable design = engine.openReportDesign(reportDesignFile);
ReportDesignHandle rptHandle = (ReportDesignHandle)design.getDesignHandle();
DesignElementHandle elemHandle = rptHandle.findElement("chartTable");
This doesn't work as there is no boolean visibility property.
Essentially, I have a rptdesign file which I intend to run at client side. RptDesign has a few elements which can be set according to end user configuration. I capture the information from end user in the format: objectId, property, propertyType, value . Then I make the changes to the properties using the code above, and run the report.
Can I set a property of Chart Element to switch it on and off. Any special handling will mean glue code in java which will be difficult to maintain. Designing Reports in a particular way, like attaching a property, etc. is a better solution. Can it be done?
----using birt 3.7.2 ----
[Updated on: Thu, 25 April 2013 04:45]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02120 seconds