If you are unable to create a new account, please email support@bspsoftware.com

 

how to loop through actual values of data item in value prompt via javascript..

Started by anandcognos, 08 Aug 2018 03:31:27 PM

Previous topic - Next topic

anandcognos

Hi all,
I am trying to loop through values of single select value prompt via javascript in cognos analytics 11.0.6. (Interactive mode=yes). I am able to get only first value. In 10.2.2 , I was able to do this by
var f = getFormWarpRequest();
var list = f._oLstChoicesprogramsCaptionVP; and then using option on list.
In 11.0.6, I am doing like this :
var ControlprogramVPFinance = oControlHost.page.getControlByName("programVPFinance");
var valuesprogramVPFinance = ControlprogramVPFinance.getValues(true);
when I try to loop through 'valuesprogramVPFinance ', it gives only header text value, not going through actual values of data item in value prompt.
How can I access actual values of data item in value prompt ? Any help is much appreciated