Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Glide ajax or Display BR?

prasanna11
Giga Guru

Which is the best way to go about in accessing server side information from a form level.

(I am trying to find the better way among these two to access the parent record values on the child record on a form level).

1 ACCEPTED SOLUTION

Anurag Tripathi
Mega Patron
Mega Patron

Id say glideAjax as it can be based on the need, onload of a field, onchange of a field, called from a ui action, can be called anytime after the form has loaded....on demand basically.



But Display Br will run on form load only and will run on each form load.


So i think we have a clear winner here --> GlideAjax


-Anurag

View solution in original post

4 REPLIES 4

Chuck Tomasi
Tera Patron

Hi Prasanna,



They are used for two different, but similar, things.



GlideAjax is typically used with onChange clients scripts for dynamic updates (e.g. something changed, I need to update the form from the server.)



g_scratchpad is used to push once on load - that's it. There is no refreshing afterwards.



Client Script Best Practices - ServiceNow Wiki


Anurag Tripathi
Mega Patron
Mega Patron

Id say glideAjax as it can be based on the need, onload of a field, onchange of a field, called from a ui action, can be called anytime after the form has loaded....on demand basically.



But Display Br will run on form load only and will run on each form load.


So i think we have a clear winner here --> GlideAjax


-Anurag

Hi Anurag,



g_scratchpad is still very useful when you just need a "load once" scenario. It's far easier to set up (for most) than GlideAjax.


I know, may be i didnt explain well. But that's what i tried to convey in my previous post 'Display Br will run on form load only and will run on each form load'


-Anurag