cancel
Showing results for 
Search instead for 
Did you mean: 

How to create @ Prompt with Today and Previous day as default values in IDT.

former_member223477
Participant
0 Kudos

Hi,

I want to create an @prompt on date filed with Today's as default value for TO date and Yesterday's date as default value for FROM date in IDT.

Could you please guide me how can I create this prompt condition in IDT by using the Vertica database.

Thanks in advance.

--

Regards,

Krishna Reddy.

.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Krishna,

It is not possible to pass Dynamic Value in List of value. You can pass only Static value in universe.

Their is another solution for this kind of requirement. First you will need to define Prompt which contains a Custom List of values and then user Decode function Example:

to_char(#Database Column),'YYYYMMDD') >= Decode(@Prompt('Enter Date YYYYMMDD format:', 'A', {'Current Date', 'Prior Date', 'Prior Week Date'},mono,free,,{'Current Date'},User:10), 'Current Date', to_char(trunc(sysdate),'YYYYMMDD'), 'Prior Date', to_char(trunc(sysdate-1),'YYYYMMDD'), 'Prior Week Date', to_char(trunc(sysdate-7),'YYYYMMDD'),@Prompt('Enter Date YYYYMMDD format:', 'A', {'Current Date', 'Prior Date', 'Prior Week Date'},mono,free,,{'Current Date'},User:10))

Regards

Ashu

Former Member
0 Kudos

You may want to read this to get a comprehensive view on this - http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/