Problems with using g_user on a service portal widget
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2017 03:19 AM
Hi,
Does anyone know a way for me to get a field value off a user form in angular?
I have tried using a script action to put the field into the user session data and then used 'g_user.getClientData('field name');' to get the stored field data but this seems to break the widget, I have had a look around the community and noticed that a few other developers have had issues with g_user.
I have also tried using glide to dot walk to the user record and find the field but this does not work either.
Cheers,
Tom
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2018 09:56 PM
Hey Tom,
Maybe it's too late, Serviceportal provides an angular service to get information of the current user. Please check out this blog GlideUser/g_user in ServicePortal
Kindly mark correct/helpful if this has answered your question.
Thanks,
Sush