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
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