I am trying to create a condition within B.O Designer X1 (3.1),
that will allow the user to be prompted for a Financial Week but if no prompt is selected then it will default to a value held in another object named āLatestWeekā. I know I can do this with a hard coded default value however the latest week will obviously change each week so Im hoping i can use an Object as the default.
Does anyone know how i can tackle this?
The purpose of this is to be used within a Dashboard so when the Dashboard (Xcelicus 2008) refreshes it will show the latest financial Periods, but also will allow for other financial periods to be selected at the userās request (hence the prompt).
Thanks for your reply, Iāve noticed that Defaulting to another Object is not available from the G.U.I, do you know of other methods to achieve the following:
I want to use an optional prompt for a Financial Period but it will default to show the latest period if no value is passed.
This is seems to be another disapointing limitation from Business Objects.
As the idea of this is when a User opens a Dash or even a report, it will default to show the latest period, then the user only has to enter a financial period if they want to view historical periods.
Can anyone suggest a different method in order to achieve the same functionality?
You could try this to set the latest date to todayās date, sorry I do not have the tool in hand, so am not able to check.
Set the default value to a string called āLatest Dateā. Your where clause would look like
where Date_field = (case when @prompt('Date','A',,{'Latest Date'},,) = 'Latest Date' then sysdate() else @prompt('Date','A',,{'Latest Date'},,) end)
(Am not sure if you can use a case statement in a where clause.)
Its a nice idea Raj, but the latest date is actual a number i.e latest year = 2011 and latest week = 7 (financial periods). I think iām probably trying to over engineer this.
The users will have to live with completing the prompts for now, until Business Objects allows for Defaulting to an object within prompts. I believe this can be done by using JSP, passing the latest periods via a script in the URL but this is a whole new world to meā¦