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

Default value in Value Prompt

Started by sspk, 12 May 2010 10:43:29 AM

Previous topic - Next topic

sspk

Hi All,
I have created a value prompt on a date dataitem  and  the select UI is Drop down list.Now i want to see the latest date in the list as  the default value when i run the report. I am trying to use a javascript for this , but it is not working out.
Any ideas please

kattaviz

Hi,

Sort the values in the prompt in descending and select the second value using javascript.

----------------------------
listBoxXXX.selectAll();
document.getElementById('formWarpRequestRS')._oLstChoicesXXX.options[2].selected=true;
----------------------------
Where XXX is the name of your prompt control.
HTH,

Satish Katta
thanks & regards
Satish Katta