g_user.getClientData("xyz"); is not working in UI Script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2019 06:52 AM
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..

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2019 07:25 AM
Hi Abhijit,
Not sure about this, but check if Global is true/checked.
Regards,
Ajay