Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Modify the DataSource in Java
Modify the DataSource in Java [message #1014825] Tue, 26 February 2013 14:38 Go to next message
Samo B. is currently offline Samo B.Friend
Messages: 41
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 09:04 Go to previous message
Samo B. is currently offline Samo B.Friend
Messages: 41
Registered: December 2012
Member
I got it:

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



Cheers

[Updated on: Wed, 27 February 2013 09: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: Wed Feb 01 22:01:59 GMT 2023

Powered by FUDForum. Page generated in 0.01850 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top