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

Javascript - parameter names

Started by cognosun, 19 Jun 2013 07:25:44 AM

Previous topic - Next topic

cognosun

*************

<INPUT TYPE=RADIO NAME="showMeasure" VALUE="V" CHECKED onclick="toggleMeasure('Volume', 'inline');toggleMeasure('Percent','none');toggleMeasure('VolPer','none');";>country
<INPUT TYPE=RADIO NAME="showMeasure" VALUE="P" onclick="toggleMeasure('Volume', 'none');toggleMeasure('Percent','inline');toggleMeasure('VolPer','none');";>city
<INPUT TYPE=RADIO NAME="showMeasure" VALUE="VP" onclick="toggleMeasure('Volume', 'none');toggleMeasure('Percent','none');toggleMeasure('VolPer','inline');";>town

**************

We are using this Javascript in prompt page which shows 3 radio buttions ( country, city and town).

If I select country radio button, I get all prompts under it, and If I select city radio button I get all prompts under it and so on.

This is something which got approved to use.

Can anyone tell me what are the parameter names in this code to use in conditional variables or any other place ?

We are on 8.4.1

cognosun


bdbits

You can drop the HTML fragment you showed, and the related javascript with the toggleMeasure() function, into an HTML item on a Report Studio report. But Cognos will know nothing of the contents of that item, and it generates most of the report page at runtime. So if you want to marry your Cognos-independent items to some report items, you will have to write some additional javascript to stuff the values into some dynamically-generated prompt controls on the Cognos report. This can be done, but it would be better and much easier to just use native Cognos functionality. If all you want to do is set some parameters that can be used elsewhere on the report, you can likely accomplish what you need with Cognos-native prompt controls. Take a look at a value prompt with the Select UI property set to "radio button group".