| 
| XML Datasource [message #252540] | Wed, 15 August 2007 10:44  |  | 
| Eclipse User  |  |  |  |  | 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] | Wed, 15 August 2007 20:18  |  | 
| Eclipse User  |  |  |  |  | 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
 >
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.06177 seconds