Skip to main content



      Home
Home » Archived » BIRT » XML Datasource - Do Not Encode Question Mark
icon5.gif  XML Datasource - Do Not Encode Question Mark [message #1021680] Wed, 20 March 2013 09:58 Go to next message
Eclipse UserFriend
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 15:30 Go to previous messageGo to next message
Eclipse UserFriend
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 08:45 Go to previous messageGo to next message
Eclipse UserFriend
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 06:06 Go to previous message
Eclipse UserFriend
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: Sun Jul 13 22:46:03 EDT 2025

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

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

Back to the top