COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: Kalyan cognoise on 25 Aug 2009 07:05:08 AM

Title: Select Report Output Formats in Prompt Page
Post by: Kalyan cognoise on 25 Aug 2009 07:05:08 AM
Hi All,

My user wants to select report output formats in the Prompt page(HTML,PDF,XLS,CSV).Is there anyway
to achieve this.If so.. pls send me the steps.

Title: Re: Select Report Output Formats in Prompt Page
Post by: EArumugam on 25 Aug 2009 07:57:02 AM
use this script in prompt page:

<button type="button" name="finishOutput" id="finishOutput"
style="" class="clsPromptButton"
onmouseover="this.className = 'clsPromptButtonOver'"
onmouseout="this.className = 'clsPromptButton'"
onClick="runInFormat('singleXLS');">
Export to Excel</button>
<script xmlns:xIE6="http://developer.cognos.com/prompting/x IE6">
var promptButtonfinishOutput = new CPromptButton
(document.getElementById("finishOutput"),
PROMPTBUTTON_FINISH, true);
pageNavigationObserverArray ;
pageNavigationObserverArray.concat('promptButtonfinishOutput');
notify();
</script>

u can modify the value in -- onClick="runInFormat('singleXLS');">  statement for pdf html instead of signlexls
Title: Re: Select Report Output Formats in Prompt Page
Post by: Kalyan cognoise on 27 Aug 2009 03:47:38 AM
Thanks for your reply.....Its working
Title: Re: Select Report Output Formats in Prompt Page
Post by: EArumugam on 27 Aug 2009 06:00:21 AM
hi kalyan,,

for me its not working.

i pasted the html code. in prompt page.

after selecting the prompt value when i click any of hte button , the report open in format which i slected, but the filter is not working, ie., it works for ALL.

any suggestion from your side...