Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Open parameters dialog box with run mapping
olimaas
<p>Hi</p><p>I am running a report with the "run" mapping (not the "frameset" one).</p><p>This report has one parameter I would like the user to be able to change.</p><p> </p><p>I am trying to find how, in this display of the birt report, I could put 1 button to open the parameter Dialog box to change my parameter and relaunch the report.</p><p> </p><p>I would like to display the same button that is present in the frameset mapping "run report"</p><p> </p><p>Any help or hint welcome.</p><p> </p><p>Olivier</p>
Find more posts tagged with
Comments
kclark
<p>You could create a text item at the top of your report and use some code like this:</p><pre class="_prettyXprint"><html><head><script>function toggle_visibility() { var e = document.getElementById("params"); if(e.style.display == 'block') { e.style.display = 'none'; document.getElementById("showhide").value = "Show"; } else { e.style.display = 'block'; document.getElementById("showhide").value = "Hide"; }}function hide() { var e = document.getElementById("params"); e.style.display = 'none';}</script></head><body><input type="submit" value="Show" id="showhide" onClick="toggle_visibility();"><div id="params" style="display: none;">test</div></body></html></pre><p>Then in the div you might be able to use the tag library to create a custom parameter page, giving it the /run option. It should reload your report in the same page.</p>
ThomasT
<p>Hi kclark</p><p> </p><p>Thanks for your input.</p><p>I am looking for a similar problem like olimaas.</p><p> </p><p>When I run the report with "frameset" I have the toolbox on top where I can press on the {p}-symbol to open the parameter dialog. When using "run" instead of "frameset" the toolbox is not there (what is the aim in general).</p><p> </p><p>I would like to open the very same parameter dialog I get when I press {p} with a hyperlink (e.g. of the text "parameters").</p><p> </p><p>olimaas: Have you found the solution yet?</p><p> </p><p>Best greetings</p><p>Thomas</p>
ThomasT
<p>I found a solution:</p><p>Create a dynamic text (HTML) with the following content:</p><pre class="_prettyXprint _lang-html"><u><a onClick="birtEventDispatcher.broadcastEvent( birtEvent.__E_PARAMETER );" style="cursor: pointer;">Parameter</a></u></pre><p>With <img ...> it should be also possible.</p>
olimaas
<p>Thanks for the followup ThomasT</p><p>inserting the html right now</p>