LoadScript only Analyst
How can I execute the function "loadscript", but only if I am an analyst?
>>if (!session.user.Analyst) {loadScript("/CustomSpace/xxx.js",['']);} doesnt work.
Best Answer
-
Geoff_Ross Cireson Consultant O.G.
Hi Nico
You're thinking is sound, but i think the timing is off. The custom.js file gets executed before the session.user object is created.
I would put the if statement that checks the value of session.user.Analyst, inside your actual script.
Geoff
5
Answers
Hi Nico
You're thinking is sound, but i think the timing is off. The custom.js file gets executed before the session.user object is created.
I would put the if statement that checks the value of session.user.Analyst, inside your actual script.
Geoff