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?