Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » XML Datasource - Do Not Encode Question Mark
icon5.gif  XML Datasource - Do Not Encode Question Mark [message #1021680] Wed, 20 March 2013 13:58 Go to next message
Mike Schlossberg is currently offline Mike Schlossberg
Messages: 12
Registered: January 2012
Junior Member
Hi,

I'm creating a report that accesses data from XML output. I've entered the source in "Data Sources"->"Property Binding"->"XML Data Source File:" However, the report doesn't run correctly as BIRT seems to urlencode the question mark in the URL (i.e. 'http://datasource?param1=x' becomes 'http://datasource%EFparam1=x' )

I've tried wrapping the URI in JavaScript (decodeURIComponent, decodeURI) but I think the built-in encodeURL is happening after my code and prior to running the query.

How can I get this to run without BIRT encoding my question marks?

Thanks!
Re: XML Datasource - Do Not Encode Question Mark [message #1022390 is a reply to message #1021680] Thu, 21 March 2013 19:30 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Does it work if you put something like the following in your beforeOpen script on the datasource?:
this.setExtensionProperty("FILELIST", "http://datasource?param1=x")
Re: XML Datasource - Do Not Encode Question Mark [message #1022733 is a reply to message #1022390] Fri, 22 March 2013 12:45 Go to previous messageGo to next message
Mike Schlossberg is currently offline Mike Schlossberg
Messages: 12
Registered: January 2012
Junior Member
Just tried that and, unfortunately, it doesn't work. It still appears to be converting the ? to %3F. I tried this in, as you suggested, the beforeOpen script on the datasource. Is there a later point in the query process to set this? Any other suggestions? Thanks for any help you can provide!
Re: XML Datasource - Do Not Encode Question Mark [message #1240397 is a reply to message #1021680] Thu, 06 February 2014 11:06 Go to previous message
Chaim Lando is currently offline Chaim Lando
Messages: 1
Registered: February 2014
Junior Member
I got this error as-well. The problem was that I passed strings to the url that needed encoding so BIRT encoded the whole string. so instead i wrapped my params['param'] with encodeURIComponent function


Thanks,
Chaim
Previous Topic:IE9 Birt issue
Next Topic:Integrate BIRT 4.3.1 report engine with minimum jars?
Goto Forum:
  


Current Time: Sat Sep 20 20:04:20 GMT 2014

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

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