
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2019 04:04 AM
According to This Docs Page, it's saying that gs.getUser().getPreference() returns a "String". It does not.
So in a widget, I have the following code in the Server Script part:
and this in my Client Script:
I have a user preference on the sys_user_preference table:
When I preview the widget, I get this in my console:
Now if I do something insanely ridiculous like this:
then fine, I get what I'm looking for.... however, I shouldn't have to do all this to when .getPreference() should be doing this for me.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2019 04:40 AM
If you're not in a scoped app, if you're creating that preference on your own profile try logging out then back in. The preference should then be applied.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2019 04:26 AM
Hi
In your client script, try with c.data.test once.
Regards,
Omkar mone

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2019 04:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2019 04:31 AM
GlideUser.getPreference() is for a scoped app and does not exist for global.
are you in a scoped app?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2019 04:39 AM
No, I don't create in scoped apps... everything I do is in "Global"