Thanks a lot!
How can I ensure that the SQL that returns my userIdValue is executed before any other queries that are used in the report?
Say, I want to run the query first (getting userIdValue), then then do as you advised.
Code:
reportContext.setPersistentGlobalVariable(name, userIdValue);
Is there any call to execute the SQL from javascrip?
Thanks!