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

TIP: Set Default Date Prompt to Day - 1

Started by zaith, 20 Nov 2007 10:17:05 AM

Previous topic - Next topic

zaith

Create a Date Prompt with ID 'PromptDate'
Insert HTML Item in prompt page.
inner HTML Item insert:
Quote
<script language="javascript">
var dDate = new Date();
//Subtract one day
dDate.setDate(dDate.getDate()-1);
//setValue adjust current date in prompt
pickerControlPromptDate.setValue(getFormatDate(dDate, 0 , 'YMD'));
</script>

All Done. You give default prompt for Previous Day

djknuddel

I have done so and get the error message:

'pickerControlPromptDate' is not defined.

What do you mean with ID? The name or the parameter of the prompt? I have changed the name of the prompt to "PromptDate".