Hi,
I have a Multi-Select Text Box Prompt with the name called "ACCOUNT".
As part of the control there is a box called "Choices:" which hold any values they insert(add) and then they need to select one or all of them.
I need to do two things(via JavaScript):
1) Make sure this "Choices:" box has data in it and not empty
2) If it has data in it, that at least one item has been selected
Thanks,
Tony
https://www.ibm.com/support/knowledgecenter/SSEP7J_11.0.0/com.ibm.swg.ba.cognos.ug_cr_rptstd.doc/c_prmpt_api_overview.html?pos=2#prompt_api_overview (https://www.ibm.com/support/knowledgecenter/SSEP7J_11.0.0/com.ibm.swg.ba.cognos.ug_cr_rptstd.doc/c_prmpt_api_overview.html?pos=2#prompt_api_overview)
I was able to figure it out, for those that need it:
var report = cognos.Report.getReport("_THIS_");
var account = report.prompt.getControlByName('ACCOUNT');
if (account.getValues().length <= 0)
{
alert("You must enter an Account Number");
}