Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
How to pass the parameter with & symbol
Navanethan
Hi All,
I need to pass this 'test&string' String parameter to Birt ?
How can we do this ?
Thanks in Advance.
Regards,
Navanethan Muthusamy
Find more posts tagged with
Comments
mwilliams
Hi Navanethan,
Are you talking about through a URL in the deployed viewer? Or just in the designer?
minawi
<blockquote class='ipsBlockquote' data-author="Navanethan"><p>Hi All,<br />
I need to pass this 'test&string' String parameter to Birt ?<br />
<br />
How can we do this ?<br />
Thanks in Advance.<br />
Regards,<br />
Navanethan Muthusamy</p></blockquote>
<br />
Here's an example as a link passing a parameter called type_id value of 1<br />
<br />
<a class='bbc_url' href='
http://localhost:8080/birt/run?__report=Reporttest_report.rptdesign/?type_id=1'>Testing
BIRT</a>
Virgil Dodson
Hi Navanethan, from your email to me about passing String parameters, you could use the plus (+) sign to use Strings with spaces correctly<br />
<br />
paramName=test+string<br />
<br />
<a class='bbc_url' href='
http://localhost:8080/birt/run?__report=Reporttest_report.rptdesign/?paramName=test+string'>Testing
BIRT</a>
Navanethan
Hi All,
Thanks for your reply.
I think i need to explain more about my problem.
1. I have created filter's in my application itself.
2. from BIRT I am receiving the filter value's via query string (URL).
3. I am having filter called "department".
Here the problem is when I am select "Infrastructure & admin" department, then I am not able to get the filter value... because the "&" symbol(append symbol).
Please help me in this case.
Thanks in advance.
~Navanethan
Virgil Dodson
Hi Navanethan,
Basically, you have to URL Encode your strings to use them on the end of you URL. If you are putting together an HTML form with either a GET or POST, then the string will automatically be URL encoded and will look like below:
department=Infrastructure+%26+admin
If you indeed constructing this URL yourself, then use one of the Javascript helper functions like escape(YourString).