Stores reusable JavaScript for execution on the server
Must be called to run
Can be client-callable
Script Includes
Not many configuration options as a Script Include runs only when called
Runs server-side
No default objects
Script Include Trigger
Stores one re-usable function
Used server-side only
Can also be referred to as On Demand
Store one Classless Function
Collection of function
Can be called by client-side scripts
Standard to include “Utils” in the name (e.g.TravelRequestUtils)
Define a New Class
Adds functionality to an existing Class
Can be called from client-side scripts
Extend an Existing Class
Are not callable from the client-side, even if the Client callable option is selected
Classless/on-demand Script Includes
After the record is named in a New Class, a ____________ is inserted in the Script field to help guide you
Script Editor Macro
T or F: Script Include name MUST be an EXACT match to the Class name
True
T or F : A New Class stores a single function.
False. A New Class stores multiple functions.
Each function definition begins with the function _____ followed by a ______
name, colon
May be added inside the parentheses as per any function definition
Function arguments/parameters
Declared once at the beginning of the script in the initialize() function
Available to every function in the Class
Cleaner code
Global Properties
Are used to create static filters
Simple Reference Qualifiers
Enable you to run a dynamic query against a reference field
Dynamic Reference Qualifiers
Enable you to define your filter directly in the Reference qual field
Advanced Reference Qualifiers
Reference an existing Class using the ________ method
extendsObject()
Executes server-side but is called client-side
AbstractAjaxProcessor
-Enables Client Scripts and UI Policies to call server-side code in Script Includes
-Passes parameters to Script Includes
-Uses the returned data from the server
GlideAjax
Callback function processes ______________
returned data
Pass parameters to the Script Include
-All parameters begin with ______
-Reserved parameter ________ identifies
the method
sysparm_, sysparm_name
Data exchange format
Low overhead alternative to XML
Serializes and passes data between server and client
JavaScript Object Notation (JSON)
JSON object is contained in an _________
XML Wrapper
What does JSON returns?
Returns the answer variable and administrative information
The recommended methods for minimizing Server Lookups:
g_scratchpad and GlideAjax