Categories
- All Categories
- 89 Oracle Analytics News
- 7 Oracle Analytics Videos
- 14.1K Oracle Analytics Forums
- 5.3K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 50 Oracle Analytics Trainings
- 59 Oracle Analytics Data Visualizations Gallery
- 2 Oracle Analytics Data Visualizations Challenge
- 4 Oracle Analytics Career
- 4 Oracle Analytics Industry
- Find Partners
- For Partners
Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture
Multi select and All column values in Direct Database Request
2845107
Rank 4 - Community Specialist
Hi All,
I would like to pass multi select and all column values from prompt to direct database request report on the dashboard. I am able to pass variables and single select values.
Any one has any idea please share
Thanks
Suman.
0
Answers
-
Single value syntax: '@{variable}{default value}'
Multiple values syntax: {@{variable}['@']{'default value'}
select ... from ... where column in {@{variable}['@']{''} /*Some values selected*/ or '@{variable}' is null /*All column values*/
or '@{variable}{na}'='na' /*Nothing selected*/0 -
Hi Andrew,
Thanks for the reply.
Now I am able to pass single and multiple values but not all column values. Below is my code
AND st.name in (@{Site_DBR}['@']{'SSP10'}) or (@{Site_DBR}['@']{'SSP10'}) is null
And when I remove the or part the code works for multi select.
Any suggestions.
Thanks
0 -
Your code:
AND st.name in (@{Site_DBR}['@']{'SSP10'}) /*something selected*/ or (@{Site_DBR}['@']{'SSP10'}) is null /*always false*/
should be:
AND st.name in (@{Site_DBR}['@']{'SSP10'}) /*something selected*/ or '@{Site_DBR}' is null /*All column values*/ or '@{Site_DBR}{SSP10}'='SSP10' /*nothing selected, optional*/
0