How to use GlideAjax and Client Scripts with Best Practice in mind
Import
·
Jan 28, 2018
·
article
I've seen a couple of questions in the community about how to get more data from the server when you write a Client Script. What comes in mind is everything from GlideRecord calls, use of getReference method to GlideAjax and g_scratchpad method.
I made a video with having best practice in mind and that would rule out both the GlideRecord call and the getReference. I also show how to avoid another server call when you do a setValue on a reference field which is pretty common to do if your mind might be somewhere else when you write the code.
View original source
https://www.servicenow.com/community/developer-blog/how-to-use-glideajax-and-client-scripts-with-best-practice-in/ba-p/2289280