Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » URL Parameters
URL Parameters [message #368813] Fri, 26 June 2009 21:05 Go to next message
william decamp is currently offline william decampFriend
Messages: 24
Registered: July 2009
Junior Member
I am using the ODA interface and want to retrieve some xml data from
another site for my birt report. I need to add some parameters to the url
like this.

http://localhost:8983/reports/frameset?__report=xmldocs_v7.r ptdesign&q=expensetype_s:Hotel
AND projectid_s:hippo

The query parameter gets appended to the URL of the ODA datasource. I am
sure the spaces here are giving me problems. I have also tried

http://localhost:8983/reports/frameset?__report=xmldocs_v7.r ptdesign&q=expensetype_s:Hotel%20AND%20projectid_s:hippo

When I don't put the query parameter on the URL and Birt requests the
parameter, I enter expensetype_s:Hotel%20AND%20projectid_s:hippo and it
works.

Any ideas?
Re: URL Parameters [message #534984 is a reply to message #368813] Thu, 20 May 2010 21:34 Go to previous messageGo to next message
John J Feigal is currently offline John J FeigalFriend
Messages: 31
Registered: July 2009
Member
I am experiencing this same problem.

Has anyone found a way to build a URL using a report parameter than contains
spaces without having enter a %20 instead of a space when entering the
report parameter?

"william decamp" <bdecamp@b2dsolutions.com> wrote in message
news:5a36d7f7b31b9453dd49ebe06cb9370b$1@www.eclipse.org...
>I am using the ODA interface and want to retrieve some xml data from
>another site for my birt report. I need to add some parameters to the url
>like this.
> http://localhost:8983/reports/frameset?__report=xmldocs_v7.r ptdesign&q=expensetype_s:Hotel
> AND projectid_s:hippo
>
> The query parameter gets appended to the URL of the ODA datasource. I am
> sure the spaces here are giving me problems. I have also tried
>
> http://localhost:8983/reports/frameset?__report=xmldocs_v7.r ptdesign&q=expensetype_s:Hotel%20AND%20projectid_s:hippo
>
> When I don't put the query parameter on the URL and Birt requests the
> parameter, I enter expensetype_s:Hotel%20AND%20projectid_s:hippo and it
> works.
> Any ideas?
>
>
Re: URL Parameters [message #535582 is a reply to message #534984] Mon, 24 May 2010 17:24 Go to previous message
Robert Bredlau is currently offline Robert BredlauFriend
Messages: 3
Registered: May 2010
Junior Member
For some reason my newsreader didn't post my last reply here, but you must
have received it since you replied via e-mail to me. I'll re-post some of
your reply here for context:

<<< QUOTE
I'm not building the URL in my web application. I'm building the URL in
BIRT in the Property Binding for an XML data source as follows:
params["dbUrl"] +
" agtDereferenceXmlViewDataForDocumentCountReport?OpenAgent&am p;viewName= " +
params["leftDocumentView"] + "&beginDate=" + params["beginDate"] +
"&endDate=" + params["endDate"] + "&staffOrganization=" +
params["staffOrganization"] + "&isAdmin=" + params["isAdmin"]
QUOTE

In that case, in the expression builder you can use the Native JavaScript
Functions -> Global -> encodeURI( uri:string ) function. There is also
encodeURIComponent().

Documentation on each function:
http://www.w3schools.com/jsref/jsref_encodeURI.asp
http://www.w3schools.com/jsref/jsref_encodeuricomponent.asp

How you might use encodeURI:
encodeURI(
params["dbUrl"] +
" agtDereferenceXmlViewDataForDocumentCountReport?OpenAgent&am p;viewName= " +
params["leftDocumentView"] + "&beginDate=" + params["beginDate"] +
"&endDate=" + params["endDate"] + "&staffOrganization=" +
params["staffOrganization"] + "&isAdmin=" + params["isAdmin"]
);

On Thu, 20 May 2010 14:34:06 -0700, John Feigal <JohnFeigal@ags-us.com>
wrote:

> I am experiencing this same problem.
>
> Has anyone found a way to build a URL using a report parameter than
> contains
> spaces without having enter a %20 instead of a space when entering the
> report parameter?
>
> "william decamp" <bdecamp@b2dsolutions.com> wrote in message
> news:5a36d7f7b31b9453dd49ebe06cb9370b$1@www.eclipse.org...
>> I am using the ODA interface and want to retrieve some xml data from
>> another site for my birt report. I need to add some parameters to the
>> url
>> like this.
>> http://localhost:8983/reports/frameset?__report=xmldocs_v7.r ptdesign&q=expensetype_s:Hotel
>> AND projectid_s:hippo
>>
>> The query parameter gets appended to the URL of the ODA datasource. I am
>> sure the spaces here are giving me problems. I have also tried
>>
>> http://localhost:8983/reports/frameset?__report=xmldocs_v7.r ptdesign&q=expensetype_s:Hotel%20AND%20projectid_s:hippo
>>
>> When I don't put the query parameter on the URL and Birt requests the
>> parameter, I enter expensetype_s:Hotel%20AND%20projectid_s:hippo and it
>> works.
>> Any ideas?
>>
>>
>
>


--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Previous Topic:Sending reports with graphics via email
Next Topic: Concurrent dataset evaluation
Goto Forum:
  


Current Time: Fri Apr 26 04:32:19 GMT 2024

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

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

Back to the top