g_user.getClientData("xyz"); is not working in UI Script.

Abhineet Singh
Tera Expert

I am trying to achieve or do some processing after the user login in to the system. So i want to add a parameter in user session based on it will use it in UI script globally

Below resources i used

Two ways to Reduce Client Side lookups

Session Client Data

But instead of using getClientData in form client script i want to use in UI script.

So i created a synchronous script action(event- Session.established) with gs.getSession().putClientData('test1', 'value1'); (Example) in script.

secondly i created a ui script and called var v = g_user.getClientData('test1'); Example. with using addLateLoadEvent function

but unfortunately its not working.

Am i using above in wrong way, Please help or suggest something else..

1 REPLY 1

Ajaykumar1
Tera Guru

Hi Abhijit,

Not sure about this, but check if Global is true/checked.

Regards,
Ajay