March 2017
Beginner
358 pages
9h 51m
English
The next() method of the GlideRecord class should be called after a query() call. Its function is to grab one row from the database table we specified when declaring our GlideRecord object, and populate said object with the values from each column/field in that record/row. This allows you to modify the record and send it back to the database using setValue() and update(), or you can read values out of the record and use them elsewhere in your script by using getValue().
The next() method takes no arguments, and returns a boolean which is true or false depending on whether it successfully found another record or not; thus, the next() method call can simultaneously be used as a loop condition.
Read now
Unlock full access