Home Analytics Designing reports
The community of Analytics developers are invited to follow and participate in the developer network.
OpenText technical experts collaborate with supported customers and partners in the Magellan product area.

chart display property change using birt desinger API is not working?

Hi,
I am using org.eclipse.birt.report.model.api.ExtendedItemHandle extensivily, but unable to set display property using it?
as per rptdesign xml, <property name="display">inline</property>  decides chart display setting
 org.eclipse.birt.report.model.api.ExtendedItemHandle setProperty("display","none") or  setProperty("display","inline")  is not working
please give example code snippet, how it can be handled dynamically?
or any alternative

Comments

  • Hi Venu,

    Can you provide more info:
    What element(s)? 
    What condition(s) change the visibility?
    Can you use the element visibility property?
    Jeff F.
    Customer Support Engineer I
    OpenText
  • eHi @jfranken
    example, we have pie chart in my template; we create reports using dynamic json input and copy charts from that template.
    if json has reporttype->xyz then I want to hide few charts; later clicking on ABC chart category bar; those remaining chart should be shown.
    Currently, I am able to achieve this in static report where all charts are in same report and  jsapi chart.show WORKS FINE AS EXPECTED.

    We want to enhance dynamicsm from birt design api like below: (which is not effect)
    analysisTemplate.setProperty("display","none")
    var copiedChart = analysisTemplate.copy() 
    copiedChart.setProperty("display","none")
Sign In or Register to comment.