- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2017 07:13 AM
Hi All,
I want the current user's location in the service portal page. I used the below code
HTML:
{{data.location}}
and in the Server Script:
data.location = gs.getUser().getLocation();
Below is the error I get-
Server JavaScript error Cannot find function getLocation in object com.glide.script.fencing.ScopedUser@1166b0e.
Please let me know how can we use these functions in scoped applications?
Thanks in advance,
Jessie
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2017 07:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2017 07:56 AM
You are Awesome Brad!!!
It worked. Thank you so much!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2017 04:56 PM
Where does the user object come from? As I've tried this code by adding it and can say this doesn't work (Istanbul).