We are upgraded from Cognos 8.1 to 8.4 and have run across an issue when trying to retrieve prompt names.
Properties: Text Box Prompt
General
Parameter : inputED
Miscellaneous
Name: PRED_ED
in 8.1 we could retrieve the prompt names by doing:
var fm = document.forms["formWarpRequest"];
for (var ii=0; ii<fm.elements.length;ii++) {
var elem = fm.elements[ii];
alert ('elem name = ' + elem.name);
}
This would return both the Prompt Paramater (ex. inputED) and Prompt Name (ex. PRED_ED).
in 8.4 we changed the code to
var fm =getFormWarpRequest();
for (var ii=0; ii<fm.elements.length;ii++) {
var elem = fm.elements[ii];
alert ('elem name = ' + elem.name);
}
This only returns the Prompt Paramater (ex. inputED).
Is there a way to retrieve the names for the Prompts by the name?
Thanks,
Bob