can gliderecord use for client side
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2017 08:29 AM
can gliderecord use for client side
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2017 08:33 AM
Hello,
Client scripting uses either data available on the client or data retrieved from the server. Use client data as much as possible to eliminate the need for time-consuming server lookups. The top ways to get information from the server are g_scratchpad, and asynchronous GlideAjax lookup.
The primary difference between these methods is that g_scratchpad is sent once when a form is loaded (information is pushed from the server to the client), whereas GlideAjax is dynamically triggered when the client requests information from the server.
Other methods, GlideRecord and g_form.getReference() are also available for retrieving server information. However, these methods are no longer recommended due to their performance impact. Both methods retrieve all fields in the requested GlideRecord when most cases only require one field.
P.S : GlideRecord is not supported at client side in scoped application. You have to use GlideAjax to retrieve information.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2017 08:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2017 08:38 AM
In a scoped application, NO. Scoped Applications and Client Scripts: A Primer
In a global scope, you can use, but the recommendation is use Client callable script include and a GlideAjax call.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2017 08:54 AM
service-now has recommend that we should avoid glide record at client side scripting.
the major reason is "Performance" .
it's better if you want to use glide record then mentioned it in your "Client callable" script include and call it in your client script by using "Glide Ajax".
https://snprotips.com/blog/2016/2/6/gliderecord-client-side-vs-server-side
what is GlideAjax ?How to write Ajax function? | Ahmed Drar