Could U please Guide me to create ALL option in prompt for the following details…
BO : 6.5
Database : Oracle 9i
User : Scott
Table Name:EMP
I created universe for EMP table. I followed all the steps given in (businessobjects_advanced.pdf page No :54) technical support site.
step 1 ->I created dummy table and i included one column values “ALL” …
step 2 ->I created one object(name ALL), In the select column i referred the column in dummy table .
step 3 ->In the Ename list of values ALL is displaying along with other Enames by using union operator.
step 4 ->With reference to document again i created one object(name enameprompt)
In the select column i gave SCOTT.EMP.ENAME
In the where clause i got the following error : Parse failed :Invalid Definition(UNV0023)
This is my where clause query
SCOTT.EMP.ENAME IN (select case @Prompt(‘choose a Ename or Enames’,‘a’,’ Emp\Ename’,multi,constrained) when ‘ALL’ then SCOTT.EMP.ENAME else @Variable(‘choose a empname’) end)
Could u please modify the above query based on my requirement…
SCOTT.EMP.ENAME IN (select case @Prompt(‘choose a Ename or Enames’,‘a’,’ Emp\Ename’,multi,constrained) when ‘ALL’ then SCOTT.EMP.ENAME else @Variable(‘choose a empname’) end)
I think your problem is in defining Where Clause.
It should be like this: SCOTT.EMP.ENAME IN @Prompt(‘choose a Ename or Enames’,‘a’,’ Emp\Ename’,multi,constrained) OR ‘ALL’ IN @Prompt(‘choose a Ename or Enames’,‘a’,’ Emp\Ename’,multi,constrained)
Follow this we definitely get correct results. Reply back if you have any doubts regarding this one.
This is the where clause query for an object ENAME:
SCOTT.EMP.ENAME IN @Prompt(‘choose a Ename or Enames’,‘a’,’ Emp\Ename’,multi,constrained) OR ‘ALL’ IN @Prompt(‘choose a Ename or Enames’,‘a’,’ Emp\Ename’,multi,constrained)
Hi,
SCOTT.EMP.ENAME IN @Prompt(‘choose a Ename or Enames’,‘a’,’ Emp\Ename’,multi,constrained) OR ‘ALL’ IN @Prompt(‘choose a Ename or Enames’,‘a’,’ Emp\Ename’,multi,constrained)
SCOTT.EMP.ENAME IN @Prompt('choose a Ename or Enames','a','Emp\Ename',multi,constrained) OR 'ALL' IN @Prompt('choose a Ename or Enames','a','Emp\Ename',multi,constrained)
There was a space before the Emp\Ename in both places.
Removing it should parse the condition.
Just a thought
Change the prompt message having Ename/Enames as text to name.
Since Ename is the name of column in Emp table.
Though it shouldnt matter as it is enclosed in quotes but still change that and see
Do one thing which I also follow when the expression is little long.
Recreate the formula again.
Try to parse with only first part without or.
Leave the LOV object blank.
Then gradually add other part after or. Go step by step
Thanks for your valuable idea. I traced part by part … now it is working …
This is my where clause query…
SCOTT.EMP.ENAME IN @Prompt('choose a name ',‘A’,‘Scott Emp\Ename’,multi,constrained) OR ‘ALL’ IN @Prompt(‘name’,‘A’,‘Scott Emp\Ename’,multi,constrained)
And also i thank all those guided me from the beginning…