on 08-29-2014 2:22 AM
Hi
I've created a universe in IDT connecting to a HANA view. The HANA view contains Input Parameters, as well as Variables. In my universe I've created a derived table and I use the 'PLACEHOLDER' syntax in the From part of the SQL to cater for the HANA Input Parameters. I've catered for the
HANA Variables by creating prompts (IDT parameters) in the universe, as well as creating Prompt filters in the Business layer using these parameter prompts. In doing this, we could choose if we wanted the prompts to be optional or mandatory.
My question is this: Is there a way to make the Input Parameter which is part of the 'PLACEHOLDER' syntax optional?
Thanks
Alta
Hi,
On creating a derived table, you'll have PLACEHOLDER in from clause.
You will add it as 'PLACEHOLDER' = ($$COUNTRY.COUNTRY_ID= @Prompt('Select Country','A','Class\Object',multi,constrained,not_persistent,,optional)
Use the extended prompt syntax and make it optional.
Not sure if it works, but just give a try.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I developed a solution 2 years ago to mimic optional prompts used in placeholder in a derived table.
Here is an example that you can can reuse.
First of all you have to create a list of values that will support the prompt data.
The SQL in the List of values is:
SELECT ' ' AS COUNTRY, ' ' AS PLACEHOLDER FROM SYS.DUMMY
UNION
SELECT COUNTRY, '(''PLACEHOLDER'' = (''$$COUNTRY$$'', ''' || COUNTRY || ''') )' as PLACEHOLDER
FROM "_SYS_BIC"."foodmart.variables/INP_ATTRIBUTE_MANDATORY_DEFAULT"
You can notice that I set a default value equal to null.
Now the Derived Table SQL is:
SELECT "UNIT_SALES", "STORE_SALES", "COUNTRY", "STATE", "CITY"
from "_SYS_BIC"."foodmart.variables/INP_ATTRIBUTE_MANDATORY_DEFAULT" @Prompt(Placeholder)
So the user is always priompted and (s)he select the default value (null) then no placeholder statement is generated otherwise a value is selected by the user and the placeholder statement is generated.
There is no way to have true optional prompts in a derived table.
Didier
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please have a look at the following:
http://scn.sap.com/community/semantic-layer/blog/2013/05/24/optional-prompt-in-bo40
on how to define optional prompts in the IDT.
Kind regards,
Leandi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Alta,
We are having same issue as you. We have optional input parameter created in the HANA view and we tried to pass the input parameter in the derived table using @prompt and we getting all sort of error.
We have no issue in using the Mandatory input parameter.
Do you happen to find the solution for this issue?
Thanks
VJ
Hi - I moved this to the Semantic Layer space for faster response
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.