If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Run and Reset prompt issue

Started by Subhadip013, 10 Jul 2018 11:47:35 AM

Previous topic - Next topic

Subhadip013

Hi Team -
My cognos report has Java script. That script use to show and hide the prompts. Now the report is updated with prompt like if you select Option A from the list then it will shows another set of prompt like Group By 1 or Group By 2. By default Group By 1 should be select if Option A is selected. Just opposite to Option B. If you choose option B then Group by 2 will selected by default and Group 1 would be unchecked. These are developed.
User can run the report by unchecking Group by 1 or select both Group by 1 and 2. The issue is after running the report by changing the default setting when I select the Reset and Run option in Cognos Analytics, then the report prompt page is not able to remember the change in options and reset the initial option of the Prompt page.
Can you please let me know how I can store the script if there any change in that part. The logic is if the default selection is changed and dont run the script to Reset the prompt. But I am not able to figure it out.

oscarca

#1
Have you tried setting the report to run in fully interactive mode ?
and then I would try to use a custom control instead of embedded javascript.
see this link: https://www.ibm.com/communities/analytics/cognos-analytics-blog/how-to-use-a-custom-control-with-javascript-to-hide-and-show-a-filter-panel-in-ibm-cognos-analytics-11-0-7/