Hello BO Folks,
I want to use @prompt function in the SELECT statement for an object(Both BO designer guide & Forums says so.).
So I typed the SQL in the “SELECT” field in the “Definition” tab of the “Edit properties”
dialog for this object as below:
ABCD_BUSINESS_UNIT.NAME IN @Prompt(‘Enter Name’,‘A’,‘ABCD Business Unit\Name’,Multi,Constrained,Not_Persistent,)
But when i use this object in the Results Objects pane of Webi, I do get the prompt, then after selecting the values I’m getting DB error as following:
“A database error occured. The database error text is: ORA-00923: FROM keyword not found where expected
. (WIS 10901)”
Here is the SQL generated at Webi/Report side:
SELECT
ABCD_BUSINESS_UNIT.NAME IN @Prompt(‘Enter Name’,‘A’,‘ABCD Business Unit\Name’,Multi,Constrained,Not_Persistent,)
FROM
ABCD_BUSINESS_UNIT
Can you please help me out why @prompt is not working when used in SELECT clause.
Also in SQL world i have never seen a conditional parameter like ‘IN’ or ‘=’ used in the SELECT statement, thats why when I run this SQL statement(replacing @Prompt with some valid value) in SQL developer, I get the same error message. It seems the concept itself is flawed.
Then why the BO designer guide states that we can use @Prompt in SELECT clause.
Really confusing. Please provide your expert advice.
PS: I’m using BOXI 3.1 & Oracle 10g
naveenu (BOB member since 2012-07-14)