- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2016 09:43 AM
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).
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2016 09:46 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2016 09:45 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2016 09:46 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2016 09:48 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2016 10:06 AM
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'