cancel
Showing results for 
Search instead for 
Did you mean: 

How give @prompt default value = today()

Former Member
0 Kudos

Hi,

TKS reply the question.

I have a @prompt filter like this:

@Prompt('07.PLS Input Date:','A','Detail_time\YYYYMMDD',mono,free)

It can work.

but how to modify the syntax that have default value = today() ?

The following syntax is incorrect :

@Prompt('07.PLS Input Date:','A','Detail_time\YYYYMMDD',mono,free,,currentdate())

TKS!

Jackson

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Try with this formula in which u have to select a oldest date as DATE (i.e 01-01-1900)

var_Date = case when @prompt('EnterCurrent date','D',,mono,free) = '1900-01-01' then DATE else @prompt('Enter shipping date','D',,mono,free) end

By the above formula in most cases true condition gets failed so the user entered date i.e current date will be taken.

Cheers,

Suresh Aluri.

Former Member
0 Kudos

Thanks your answer, I think I get the solution.

Jackson

Answers (2)

Answers (2)

Former Member
0 Kudos
Former Member
0 Kudos

you can-not give dynamic value as a default in the prompt defintion. The default nust always be static text.

You can have "Today" as the default text in the defintion and then handle Today at the query level using decode statement.

You can try the following definition for default value:

@Prompt('07.PLS Input Date:','A','Detail_time\YYYYMMDD',mono,free,,{'Today'},,)