Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Modify the DataSource in Java
Modify the DataSource in Java [message #1014825] Tue, 26 February 2013 09:38 Go to next message
Samo Gb is currently offline Samo Gb
Messages: 40
Registered: December 2012
Member
Hi,

I want to modify my XML Url in my Java application.
Till now I couldn't find how to get the property to modify it.

That is my code how I tried to read it out:

DataSourceHandle dshDataSource = design.getDesignHandle().getModuleHandle().findDataSource("TESTSOURCE");
DesignElement rehDataSource = dshDataSource.getElement();


If I debugg and observe the variables I can see the XML URL but I don't know how to change it.
In my Case the Report will have a XML URL and I wil read it out and change it.

Cheers,
Samet
Re: Modify the DataSource in Java [message #1015029 is a reply to message #1014825] Wed, 27 February 2013 04:04 Go to previous message
Samo Gb is currently offline Samo Gb
Messages: 40
Registered: December 2012
Member
I got it:

Object epd =  rehDataSource.getProperty(null, "FILELIST");
rehDataSource.setProperty("FILELIST", <propValue> );



Cheers

[Updated on: Wed, 27 February 2013 04:06]

Report message to a moderator

Previous Topic:Birt Chart Engine Api - set y-axis labels
Next Topic:Create a new Emitter with an existing Emitter - HTML
Goto Forum:
  


Current Time: Thu May 23 23:28:56 EDT 2013

Powered by FUDForum. Page generated in 0.01458 seconds