Hide/show prompts in a report - java script

Hide/show prompts in a report - java script

Postby Admin » Thu Mar 04, 2010 3:21 pm

To hide and show prompts in an html report output for prompts that are in the header of a report try the following; this will then hide the prompts if you need to see more data and provide a hide/show prompt option in the report header.

Develop your report and add your interactive prompts at the top of your report.

Then add the following in an html item before your prompts that are in a report header

<script language="JavaScript">
//<!--
var g_NavOpen = 0;
function togglePromptDiv(){
if (g_NavOpen){
document.getElementById('divPromptArea').style.display="none";
document.getElementById('anchorHideShow').innerHTML="Show Filter Prompt(s)";
g_NavOpen = 0;}
else{
document.getElementById('divPromptArea').style.display="";
document.getElementById('anchorHideShow').innerHTML="Hide Filter Prompt(s)";
g_NavOpen = 1;}
}
//-->
</script>
<a href="javascript:togglePromptDiv()" border="0"
id="anchorHideShow">Show Filter Prompt(s)</a>
<div id="divPromptArea" style="display:none">

and enter the following in an html item after the prompts

</div>
Admin
Site Admin
 
Posts: 17
Joined: Fri Oct 10, 2008 1:53 pm

Return to Report Studio

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Buy Datawarehousing Books Here