BIRT Exchange Forum: API to list all datasets in a report? - BIRT Exchange Forum

Jump to content


 

No Latest Open Poll.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

API to list all datasets in a report? Rate Topic: -----

#1 User is offline   jmuthuku Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 14
  • Joined: 12-June 12


Posted 22 June 2012 - 01:17 AM

Hi,
Is there a way to list all the Data Sets in a BIRT report design (*.rptdesign file). I have a report with more than one Data Set and I am trying to change the query (to set a different postgres schema) at runtime for all the Data Sets. I only see a getDataSet(java.lang.String name) method in IReportDesign and not a getDataSets() method.

Any pointers would be very much appreciated. Thanks

- J
0

#2 User is offline   JasonW Icon

  • Senior Member
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 2505
  • Joined: 08-August 07


Posted 22 June 2012 - 11:35 AM

You can get all the datasets by calling:
reportContext.getDesignHandle().getDataSets(); //use .get(0) to get the first one.

Jason
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users