Home
Analytics
Adding URL parameter
P.S.
Hello community,<br />
<br />
I've got a report, that needs three parameters. Startdatum, Enddatum and Sprache.<br />
Start-/Enddatum are UNIX timestamps.<br />
<br />
If I call the URL <br />
ht tp://localhost:8080/reporting/frameset?__report=reportdesign/tophundred.rptdesign<br />
<br />
I get the mask for selecting the parameters and everything works fine.<br />
<br />
But if I want to add the parameters within the URL I get an exception.<br />
ht tp://localhost:8080/reporting/frameset?__report=reportdesign/tophundred.rptdesign&Startdatum=1300000000&Enddatum=1400000000&Sprache=de<br />
<br />
<strong class='bbc'><em class='bbc'>org.eclipse.birt.report.service.api.ReportServiceException: Required parameter Startdatum is blank.</em></strong><br />
<br />
If I add a additional parameter "<strong class='bbc'>&__format=pdf</strong>" I get the requested report.<br />
With parameter "<strong class='bbc'>&__format=html</strong>" I get the error I described above.<br />
<br />
<br />
Any ideas?
Find more posts tagged with
Comments
P.S.
Are there really no hints?
mwilliams
So, you've got 3 report parameters named the same as the URL parameter you're passing. If you use format=pdf, it works, if you use format=html, it gives you an error. What happens if you put no format parameter? Same error?
Finally, what is your BIRT version? I'll give it a try.
P.S.
I'm using 3.7.2
If I add format=html or don't pass the param its the same. --> ERROR
GiorgioS
I've the same problem.
Birt viewer don't take parameter in browser url when parameters page is hidden.
My url is:
http://localhost:8080/birt-viewer/frameset?__report=report/ATM004.rptdesign&DataDa=20120610&DataA=20120629&Area="%%"&Polo="%%"&Fil="%%"&Fraz="%%"
;
Can someone get help?
Tnx,
G.
GiorgioS
<blockquote class='ipsBlockquote' data-author="'GiorgioS'" data-cid="104823" data-time="1340178444" data-date="20 June 2012 - 12:47 AM"><p>
I've the same problem.<br />
Birt viewer don't take parameter in browser url when parameters page is hidden.<br />
My url is:<br />
<a class='bbc_url' href='
http://localhost:8080/birt-viewer/frameset?__report=report/ATM004.rptdesign&DataDa=20120610&DataA=20120629&Area="%%"&Polo="%%"&Fil="%%"&Fraz="%%'>http://localhost:8080/birt-viewer/frameset?__report=report/ATM004.rptdesign&DataDa=20120610&DataA=20120629&Area="%%"&Polo="%%"&Fil="%%"&Fraz="%%"</a><br
/>
<br />
Can someone get help?<br />
<br />
Tnx,<br />
G.<br /></p></blockquote>
<br />
Problem Solved.<br />
Some url parameter are wrong... We need to write <strong class='bbc'>%25%25</strong> instead <strong class='bbc'>"%%"</strong> in the url (in IE9).
mwilliams
Glad you found it. Let us know whenever you have questions!