August 2017
Intermediate to advanced
1330 pages
56h 17m
English
When a display business rule sets the g_scratchpad variable, the data is transferred to the client for that form. What if you had some data that you'd like to be available on every page?
Rather wonderfully, ServiceNow allows you to add data to the currently logged-in user's session, which is then accessible everywhere, on the client and on the server, at any time.
gs.getSession().putClientData('myData', 'Hello, world!');
alert(g_user.getClientData('myData'));
Once you ...
Read now
Unlock full access