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

Using JavaScript for retreive prompt Name.

Started by RAAZ, 04 Mar 2009 03:33:48 PM

Previous topic - Next topic

RAAZ

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