on 09-21-2015 12:26 PM
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.
.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
9 | |
9 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.