Nov
12
In OBIEE it is possible to update the value of both session and presentation variables with the value of a prompt selection, I recently ran into a situation where I needed to update the value of a session variable beyond this scope. I couldn’t find a good solution without using the write back feature but I thought I would document the NQSSetSessionValue() function.
NQSSetSessionValue is an ODBC function that allows a developer to update the value of a session variable for the globally, the syntax for the function call is as follows:
call NQSSetSessionValue(‘=;’);
A simple example of its use would be:
call NQSSetSessionValue(‘string SV_DEFAULT_DEPARTMENT=Finance;’);
One caveat is that you cannot use the variables as part of your function call, so I couldn’t use VALUEOF(SV_DEFAULT_DEPARTMENT) as part of my function call, this led me away from this solution path.
Note:
In OBIEE it is possible to update the value of both session and presentation variables with the value of a prompt selection, I recently ran into a situation where I needed to update the value of a session variable beyond this scope. I couldn’t find a good solution without using the write back feature but I thought I would document the NQSSetSessionValue() function…
