In "appendix H Prompt API for IBM cognos BI" there is a example on how to use a method call addValues. However everyAttempt i have tried has left me with 0 results. Here is the code that ive been trying to use that does not produce any errors.
window.onload = function()
{
var oCR = cognos.Report.getReport("_THIS_");
function setPromptValue(promptName, useValue, displayValue ) {
var oP = oCR.prompt.getControlByName( promptName );
var oValue =( {"use": useValue, "display": displayValue});
oP.addValues( [oValue]);
}
setPromptValue ( 'L', 'ca', 'Canada');
}
Im basically passing the name of my control wich is "L" and saying to use the 'ca' but display Canada. it does not work at all. Has anyone been able to do this? I've been at it for hours now and have had any luck, any help would be greatly appreciated. Thanks all Miguel

alert('Hullo');to your code, is it being executed? - Nick.McDermaid