Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » XML Datasource
XML Datasource [message #252540] Wed, 15 August 2007 14:44 Go to next message
Eclipse UserFriend
Originally posted by: jens.neuhaus.gmx.de

Hello,

we used to have a servlet, which gets query parameters and deliver an xml
stream. First i tried to use a XML datasource, but I found no way to pass
the parameters to the datasource at runtime, because i have to define a
fixed datasource url.

Is there a way to modify the xml destination, before it will be called?
That would allow me to add the parameters as a querystring.

If this is not possible, is it the right way to use a scripted datasource,
parse the xml document into pojos and map the pojo attributes to dataset
attributes? That's from my perspective not really clever, because you have
to code many lines for each report.

Do you have any other ideas? Sadly the chapter 'XML- Datasource' is really
short in the 'field guide' or the 'integration & extending'.

Thanks for any help in advance.

Greetings Jens
Re: XML Datasource [message #252659 is a reply to message #252540] Thu, 16 August 2007 00:18 Go to previous message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Jens,

You should be able to change the xml url in property binding of the data
source or through the beforeOpen script like:

this.setExtensionProperty("FILELIST", "file:///c:/temp/xmltest2.xml");

Jason

Jens Neuhaus wrote:
> Hello,
>
> we used to have a servlet, which gets query parameters and deliver an
> xml stream. First i tried to use a XML datasource, but I found no way to
> pass the parameters to the datasource at runtime, because i have to
> define a fixed datasource url.
>
> Is there a way to modify the xml destination, before it will be called?
> That would allow me to add the parameters as a querystring.
>
> If this is not possible, is it the right way to use a scripted
> datasource, parse the xml document into pojos and map the pojo
> attributes to dataset attributes? That's from my perspective not really
> clever, because you have to code many lines for each report.
>
> Do you have any other ideas? Sadly the chapter 'XML- Datasource' is
> really short in the 'field guide' or the 'integration & extending'.
>
> Thanks for any help in advance.
>
> Greetings Jens
>
Previous Topic:Best Practices for Secuirty and Authorization w/in Birt
Next Topic:row._outer problem
Goto Forum:
  


Current Time: Wed Apr 24 17:43:43 GMT 2024

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

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

Back to the top