on 11-16-2011 7:17 AM
Hi All,
System: BO 3.1 SP3
DB: Oracle 10g
I have a data base table which has date(year&month) store in number format eg. 201104 .
I what user to select date from calander, for which i have created @prompt with syntex
@Prompt('1_Select From Date [ex.MM/DD/YYYY]','D',,mono,free,not_persistent).
I have created a filter below which gives error ORA 01722
Date = To_Number(To_Char(@Prompt('1_Select From Date [ex.MM/DD/YYYY]','D',,mono,free,not_persistent),'YYYYMM'))
As per my understanding problem is with conversion date returned from @promt to character.
Thanks in advance
Amol
So you're asking for a date in order to match with a yyyymm format integer?
Try something along the lines of:
TRUNC(TO_DATE(date*100+1,'YYYYMMDD'),'MM') = trunc(@Prompt('1_Select From Date http://ex.MM/DD/YYYY','D',,mono,free,not_persistent),'MM')
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try leaving the right hand side as a string and convert the left hand side to string as well.
something like this:
To_char(Date) = To_Char(@Prompt('1_Select From Date http://ex.MM/DD/YYYY','D',,mono,free,not_persistent),'YYYYMM')
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.