Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Using system session variable NQ_SESSION.ROLES in initblock

133
Views
5
Comments
User_28Q0J
User_28Q0J Rank 3 - Community Apprentice

Hi

How to use system session variable NQ_SESSION.ROLES inside a initblock with some case condition and store the result into a variable. This variable will be further used to hide presentation columns

The initblock query would be,

case when NQ_SESSION.ROLES like '%Admin%' then 0 end  --> The output of the statement will be stored in a session variable

But am stuck at what will be the "from clause of this initblock query" keeping it dual doesn't work.

Thanks

Comments