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

Radio button / Check box with java scripts doesnt work in dashboard?

Started by lie-sa, 23 Jun 2009 10:41:27 PM

Previous topic - Next topic

lie-sa

Hi,

Does anyone know how to handle this cognos problem .

I have a report build in report studio that contains radio buttons and check boxes for the selection.
I applied some java scripts to cater requirements on the functionality.
The report works fine when run on its template or in dashboard(having no channel in navaigator to the cognos viewer).

But when the report incorporate in a dashboard (inside a cognos navigator) applying channel to connect with the viewer, radio buttons and checkbox functions do not behave the way it should be... it didn't work or give the desired output.

Please advice..

Thanks in advance.

kulkarni

This is my understanding.

You use channels for inter-portlet communication. You'd have to know, understand and implement the necessary code in your JS to handle the inter portlet communication.

What are you trying to do with the radio button JS in your code? Is it trying to pass parameters to other reports?

lie-sa

hi kulkarni,


Unfortunately, that is the problem, i'm not much familiar with the java script functionality . Please advise me what java scripts should be properly applied in this problem.

currently, the usage of javascript that i applied using html is for hide and show of tables / reports.

for example:

radio button1 : Over all Report
radio button2 : Regional Report
radio button3 : Country Report

when i click button 1... Over all report appeared,  vise versa when unclick.
Same as well with the regional and Country button.


As  stated on the first email, report works fine when cognos navigator  chanel is not set (no channel) to cognos viewer, but when set it doesn't show up the selected reports.


Thanks for your help.

kulkarni

What version on Cognos are you on?

Cognos provides "Conditional Block", I belive this is best suited for your requirement. Whatever you have done using JS can be done throught this.

Create, a value prompt of radio button, with auto-submit. In static choices add your options. Now create a string variable with expression ParamDisplayValue('Prompt_Name'). Drag and drop a conditional block in your report, associat it with the string variable.

Pick a value from the conditional block and add what you want to show for that value. Do it for all the values. As I said above, you can eliminate JS altogether with this approach.