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 pre-populate parameter default value
eoverton
I looked at the post<br />
<br />
Default parameter value -><br />
<a class='bbc_url' href='
http://www.birt-exchange.com/forum/designing-birt-reports/12699-default-parameter-value.html?WT.mc_id=10021'>http://www.birt-exchange.com/forum/designing-birt-reports/12699-default-parameter-value.html?WT.mc_id=10021</a><br
/>
<br />
I need a way to pre-populate the parameter value, BEFORE being prompted for.<br />
I have tried using Initialize, etc. None work.<br />
Help Please!
Find more posts tagged with
Comments
bhanley
The issue is that no scripting on the report design will be executed prior to a prompt for a parameter value. This is just a simple JSP normally that extracts the required parameters from the rptdesign file.
How are you exposing the report to the user? The easiest solution is likely to wrap the report interface and intercept the request for the report itself. You can then easily expose the current date via a JSP or HTML form. Have that JSP or From then target the actual report design supplying whatever parameter value you like.
If you give me some details on how the user requests and consumes the reports I can help you build out the URLs you will need.
eoverton
I know very little about Java.
here is the code within the index.jsp:
<p><a href="<%= request.getContextPath( ) + "/frameset?__report=noc.rptdesign&From_Date=java.util.Date()-30&To_Date=java.util.Date()" %>">NOC Example</a>
Thanks for any help.