hi,
we are using xi3.1 and oracle 10g and we need to schedule several reports in a custom way.
we need to schedule reports in such a way that the each report should
pick the latest month.
for example . if i schedule a report on 1 dec 2009 , it should take the latest month as Nov 2009 data and run.
similarily, so for each month of scheduling the prompt month should automatically pick the previous month for the user.( user need not select the previous month).
Got u but, we want that it should AUTOMATICALLY pick from the
LOV’s.
there are hundreds of reports.
plz let me know if you have any other options.
thanks
kris
we have a Prompt as Month& year and lov’s like june 2009,july 2009,aug 2009
etc.
so when user opens a reports the report should pick the latest month and year . ie the report should open by default with previous month as the prompt. and this should happen for each and every month.
if the user want some other month(old months) then he can change the date prompt.
this requirement we need to do as scheduling.
thanks
kris
Sure – it’ll work fine with any format, you just have to adjust the formula accordingly. If your date is stored as a number in yyyymm format, then the formula would be:
CASE WHEN @prompt('Month:','N',,Mono,Free)) = 0 THEN to_number(to_char(trunc(add_months(sysdate,-1),'mm'),'yyyymm')) ELSE @prompt('Month:','N',,Mono,Free) END
In this case, you’d enter “0” to use the prior month.
I followed with your solution but we are haveing some issue.
below is the prompt im using:
MonthYear=CASE WHEN @prompt(‘Enter Year Month:’,‘N’,‘classnmae\objectname’
,Mono,Free) = 0 THEN to_number(to_char(trunc(add_months(sysdate,-1),‘mm’),‘yyyymm’)) ELSE @prompt(‘Enter Year Month:’,‘N’,‘classnmae\objectname’
,Mono,Free) END
when i use this prompt, in the table values im not finding the default date eg 200909 but instead its blank and i have to manually pass the date eg 200909 and then it will show the Table values.
plz let me know if my approach is correct.
thanks
kris