How to use optional prompt in BOXI R2. I know there is no optional prompt in this version. But i have one requirement where user will enter the Date as a prompt some time there will be no dates in that case is there any tricky way to act as optional prompt like passing some dummy values etc.
but my prompt is to enter the Date values from and to.ther will be 2 prompts which user will enter the Start Date and End Date. if they don’t need the Date , what they will enter in the Both the prompts…
Do you have 2 prompts on Date, for Start Date and End Date?
Or just one prompt with Start and End Date created using a Between & And function?
as
Date Between @Prompt(‘Enter Start Date:’,) And @Prompt(‘Enter End Date:’,)?
( to_date(to_char(QUALITYREVIEW_DIM.QUDATEASSIGNED,‘mm/dd/yyyy’),‘mm/dd/yyyy’) BETWEEN
to_date(@Prompt(‘Enter Start Date(mm/dd/yyyy):’ ,‘A’,MONO,FREE,user:2),‘mm/dd/yyyy’) AND
to_date(@Prompt(‘Enter End Date(mm/dd/yyyy):’,‘A’,MONO,FREE,user:3),‘mm/dd/yyyy’) )
So i need to make this as optional for the user, if the user need date they will enter the Dates or they can enter any olternative that will not take as considiration.
( to_date(to_char(QUALITYREVIEW_DIM.QUDATEASSIGNED,‘mm/dd/yyyy’),‘mm/dd/yyyy’) BETWEEN
to_date(@Prompt(‘Enter Start Date(mm/dd/yyyy):’ ,‘A’,MONO,FREE,user:2),‘mm/dd/yyyy’) or ‘ALL’ IN @Prompt(‘Enter Start Date(mm/dd/yyyy):’,‘A’,MONO,FREE,user:2)
AND
to_date(@Prompt(‘Enter End Date(mm/dd/yyyy):’,‘A’,MONO,FREE,user:3),‘mm/dd/yyyy’) or ‘ALL’ IN @Prompt(‘Enter End Date(mm/dd/yyyy):’,‘A’,MONO,FREE,user:3) )
but it throws me the error
" Database error: ORA-00905: missing keyword
. Contact your Business Objects administrator or database supplier for more information. (Error: WIS 10901)"
to_date(to_char(QUALITYREVIEW_DIM.QUDATEASSIGNED,‘mm/dd/yyyy’),‘mm/dd/yyyy’)
BETWEEN
to_date(case when @Variable(‘Enter Start Date(mm/dd/yyyy):’)=’ ’ then ‘01/01/2011’ else @Prompt(‘Enter Start Date(mm/dd/yyyy):’ ,‘A’,MONO,FREE,user:1) end ,‘mm/dd/yyyy’) AND
to_date(case when @Variable(‘Enter End Date(mm/dd/yyyy):’)=’ ’ then to_char(sysdate,‘mm/dd/yyyy’) else @Prompt(‘Enter End Date(mm/dd/yyyy):’,‘A’,MONO,FREE,user:2) end ,‘mm/dd/yyyy’)
Note : User has to enter one space. If the user is enter space then we are taking the values from 01/01/2011 (Insted of this value we can place any value) to sysdate . If the user enter any date range value then the above logic will extract the data between user entered date range only.