Skip to main content



      Home
Home » Archived » BIRT » Ability to create dynamic url's for xml datasources based on the report input
Ability to create dynamic url's for xml datasources based on the report input [message #239127] Mon, 21 May 2007 14:17 Go to next message
Eclipse UserFriend
Originally posted by: suresh.riskspan.com

Hello Everyone

I have to create url's dynamically for my xml data source. But i am not
sure how to provide it in the designer. Any help in this regard would be
greatly appreciated.

Thanks in advance
Suresh
Re: Ability to create dynamic url's for xml datasources based on the report inpu [message #239132 is a reply to message #239127] Mon, 21 May 2007 15:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: suresh.riskspan.com

Hello Everyone

I fig it out. Essentially you have specify an url in the data source query
field and in the property binding you can specify the dynamic url based on
the report input parameters

Suresh
Re: Ability to create dynamic url's for xml datasources based on the report input [message #239189 is a reply to message #239127] Tue, 22 May 2007 06:31 Go to previous message
Eclipse UserFriend
Originally posted by: a.olivieri.ads.it

I tried this, it seems to be ok.
On beforeOpen method of my datasource I wrote something like this (I use a
servlet to get my xml):
importPackage( Packages.javax.servlet.http );

idMap = new String(reportContext.getParameterValue("idMap"));


request = reportContext.getHttpServletRequest();

serverName = new String(request.getServerName());

serverPort = new String(request.getServerPort());


this.setExtensionProperty("FILELIST", "http://" + serverName + ":"+
serverPort + "/myproject/myservlet?idMap=" + idMap);

While designing my report I keep the static datasource just to have
references to xml data in my dataset.
Before putting the report on the server (tomcat) I add this code.
Hope this can help you.

"Suresh Venkataramani" <suresh@riskspan.com> ha scritto nel messaggio
news:08b172b864856b997f49d40f19554636$1@www.eclipse.org...
> Hello Everyone
>
> I have to create url's dynamically for my xml data source. But i am not
> sure how to provide it in the designer. Any help in this regard would be
> greatly appreciated.
>
> Thanks in advance
> Suresh
>
Previous Topic:Birt build 2.2 M6 issues when opening a report after copying it to a new location
Next Topic:Data containing HTML
Goto Forum:
  


Current Time: Thu Jun 05 03:51:21 EDT 2025

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

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

Back to the top