- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2014 12:49 PM
I have a requirement for a UI action to toggle back and forth between views of the Incident form. It's easy enough to redirect the user to a particular view, but the user interface is not remembering the setting as the user's preferred view. So I programmatically insert records into the user preference table, but the system is ignoring these preferences, until I logout and log back in. Are the user preferences also being maintained in the session data somehow?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2014 05:25 AM
Syntax for client-side scripts is almost the same but without the gs,getUser() part:
setPreference('user_preference_name', 'user_preference_value');
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2014 05:17 AM
Try this code. It will do all the heavy lifting in the background.
gs.getUser().setPreference('user_preference_name', 'user_preference_value');
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2014 05:25 AM
Syntax for client-side scripts is almost the same but without the gs,getUser() part:
setPreference('user_preference_name', 'user_preference_value');
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2014 10:26 AM
The client side method does work! Thanks very much.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2014 11:02 AM
Glad to hear it solved your issue!
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-02-2022 05:37 AM
How to set user preference for perticular group?