I need cookie/Session functionality in Service Now how to get that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2016 03:39 AM
I have a requirement-
- Input taken from UI Page "PageOne"
- To pass those inputs from "PageOne" to multiple UI pages "PageTwo","PageThree" And "PageFour" and set their parameters at a time and refresh that page.
How to do that?Please help me,Thanks in advance.
Regards,
Swathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2016 04:39 AM
have you set test1 ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2016 05:46 AM
Session Client Data is a very nice feature.
If you want a selection to become a preference, you can also use setPreference and getPreference.
Client:
setPreference(name, value, func);
getPreference(name); (using glide ajax!)
Server:
gs.getUser().setPreference(name, value);
gs.getUser().getPreference(name);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2016 05:49 AM
If com.glide.sys.User is'nt whitelisted on your instance, you may get an error when invoking getUser(). If so, try gs.getPrefrence(name) instead.