March 2017
Beginner
358 pages
9h 51m
English
As mentioned above, the primary difference between server-side and client-side GlideRecords, is that client-side GlideRecord objects support callback functions. Of course, only certain methods of the GlideRecord class support callback functions; these are the methods which interact with the database.
In addition to the query() method, which retrieves records from the database, there are other methods which interact with the database.
The insert() and deleteRecord() methods work just the same as their server-side counterparts, except that they also accept callback functions. Using a callback function makes the operation asynchronous. For example, see the following code:
var gr = new GlideRecord('incident'); ...Read now
Unlock full access