COGNOiSe.com - The IBM Cognos Community

IBM Cognos Analytics Platform => Cognos Analytics => Reporting => Topic started by: xyz on 08 May 2017 12:48:13 AM

Title: Custom control java script to achieve show/hide functionality in Cognos 11.0.6
Post by: xyz on 08 May 2017 12:48:13 AM
Hi All,

I am using Cognos 11.0.6, we have Cognos 10.2 migrated reports, where we have java script in the report page itself to show and hide the filters block based on the press of Apply/Finish button. There is one more show/hide text, whenever we click on show/hide text, filters section block gets open and closed based on the click on the text item.

Can you guys please guide/suggest me, if you have similar solution.


Thanks & Regards,
XYZ
Title: Re: Custom control java script to achieve show/hide functionality in Cognos 11.0.6
Post by: Blue on 24 Aug 2017 10:33:36 PM
In CA 11 there are two modes of execute for a report - Full interactive mode (yes) or legacy mode (no).
If you use Full interactive mode you need to use Custom Control/s and external JS files for this. The old JS syntax from v10 can be used as a template.
If using legacy mode then you should be able to use the same HTML items as in v10.
Check out the new JavaScript API examples supplied by IBM.