Server-Side Scripting – Script Includes Flashcards

(28 cards)

1
Q

Stores reusable JavaScript for execution on the server
Must be called to run
Can be client-callable

A

Script Includes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Not many configuration options as a Script Include runs only when called
Runs server-side
No default objects

A

Script Include Trigger

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Stores one re-usable function
Used server-side only
Can also be referred to as On Demand

A

Store one Classless Function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Collection of function
Can be called by client-side scripts
Standard to include “Utils” in the name (e.g.TravelRequestUtils)

A

Define a New Class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Adds functionality to an existing Class
Can be called from client-side scripts

A

Extend an Existing Class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Are not callable from the client-side, even if the Client callable option is selected

A

Classless/on-demand Script Includes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

After the record is named in a New Class, a ____________ is inserted in the Script field to help guide you

A

Script Editor Macro

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

T or F: Script Include name MUST be an EXACT match to the Class name

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

T or F : A New Class stores a single function.

A

False. A New Class stores multiple functions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Each function definition begins with the function _____ followed by a ______

A

name, colon

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

May be added inside the parentheses as per any function definition

A

Function arguments/parameters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Declared once at the beginning of the script in the initialize() function
Available to every function in the Class
Cleaner code

A

Global Properties

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Are used to create static filters

A

Simple Reference Qualifiers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Enable you to run a dynamic query against a reference field

A

Dynamic Reference Qualifiers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Enable you to define your filter directly in the Reference qual field

A

Advanced Reference Qualifiers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Reference an existing Class using the ________ method

A

extendsObject()

17
Q

Executes server-side but is called client-side

A

AbstractAjaxProcessor

18
Q

-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

19
Q

Callback function processes ______________

A

returned data

20
Q

Pass parameters to the Script Include
-All parameters begin with ______
-Reserved parameter ________ identifies
the method

A

sysparm_, sysparm_name

21
Q

Data exchange format
Low overhead alternative to XML
Serializes and passes data between server and client

A

JavaScript Object Notation (JSON)

22
Q

JSON object is contained in an _________

23
Q

What does JSON returns?

A

Returns the answer variable and administrative information

24
Q

The recommended methods for minimizing Server Lookups:

A

g_scratchpad and GlideAjax

25
A method where sent once when the form loads
g_scratchpad
26
Dynamically triggered when the client requests information from the server
GlideAjax
27
When passing multiple pieces of data from the server back to the client:
Use character delimited Strings Use JSON objects
28
T or F: GlideAjax can be called one time from a client-side script
False. GlideAjax can be called ANY time from a client-side script