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

Prompt API addValues function

Started by eliza_jane, 15 Nov 2013 12:20:15 AM

Previous topic - Next topic

eliza_jane

I tried using the addValues prompt function to add a set of new values to a value prompt but that does not seem to be working.

Here's the simplified version of the script to add a static test value:

<script>
var oCR = cognos.Report.getReport("_THIS_");
var p = oCR.prompt.getControlByName("prmpt");
var oValues = [{'use': 'test'}];
p.addValues(oValues);
</script>

has anyone else used the addValues function successfully? Am I missing something? 

If I set the use value to an existing value in the prompt then addValues behaves like setValues. So does addValues add new values or does it just set values?