Skip to main content



      Home
Home » Archived » BIRT » Who knows about data sources?
Who knows about data sources? [message #143538] Mon, 13 March 2006 12:00 Go to next message
Eclipse UserFriend
Originally posted by: J.Porter.1.warwick.ac.uk

If I have a CSV/XML data source, can I define it the path to that file at
run time?

If so, how?

Thanks
Jeff
Re: Who knows about data sources? [message #143592 is a reply to message #143538] Mon, 13 March 2006 13:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: J.Porter.1.warwick.ac.uk

Soultion:

Cheat a little.

Read the xxxx.rptdesign file from the the classpath,
replace the XML code that says...

<property name="HOME">c:\\TEMP</property>

with

<property name="HOME">c:\\MY_NEW_PATH</property>


Then pass it into the engine like this...

IReportRunnable design =
engine.openReportDesign(designFileInputStreamThatIveHackedIn to);


"Jeff Porter" <J.Porter.1@warwick.ac.uk> wrote in message
news:dv48ld$rte$1@utils.eclipse.org...
>
> If I have a CSV/XML data source, can I define it the path to that file at
> run time?
>
> If so, how?
>
> Thanks
> Jeff
>
Re: Who knows about data sources? [message #143605 is a reply to message #143538] Mon, 13 March 2006 14:04 Go to previous message
Eclipse UserFriend
You can use either Property Binding or Scripting to define a runtime path.
Search this newsgroup for examples; there has been numerous posts on this
topic.
regards,

--
Gary Xue
Actuate Corporation - Product Development
BIRT Committer
"Jeff Porter" <J.Porter.1@warwick.ac.uk> wrote in message
news:dv48ld$rte$1@utils.eclipse.org...
>
> If I have a CSV/XML data source, can I define it the path to that file at
> run time?
>
> If so, how?
>
> Thanks
> Jeff
>
>
Previous Topic:Carriage return in data?
Next Topic:Regarding the Integration of Birt into Web Application
Goto Forum:
  


Current Time: Wed May 07 12:15:21 EDT 2025

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

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

Back to the top