πŸ“ Client Side APIS and Methods Flashcards

1
Q

What API is used to show qualified embedded help in the right sidebar?

& Is it ServerSide or ClientSide

A

The CustomEvent API
It is client side.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the CustomEvent API do?

A

Shows qualified embedded help in the right sidebar.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What API is the fireAll() method associated with?

A

The CustomEvent API

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What needs to be done before using the fireAll() method?

A

Embedded Help qualifiers need to have been created before using the fireAll() method.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What API is used to provide methods that translate text, in real time, into multiple languages using translation service providers?

& Is it Server Side or Client Side?

A

The DynamicTranslation API.
Client Side.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the DynamicTranslation API do?

A

Provides methods that translate text, in real time, into multiple languages using translation service providers.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What are the translation service providers supported by the DynamicTranslation API as of the Vancouver release?

A
  • Microsoft Azure Translator Service
  • IBM Watson Translator Service
  • Google Cloud Translator Service

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

Who / what environment(s) is the DynamicTranslation API available for?

A
  • Standard Clients
  • Angular-based Service Portal clients

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

While interacting with the DynamicTranslation API, when should you use the dynamicTranslation class and when should you use the DynamicTranslation class?

A

dynamicTranslation - Used for Service Portal clients

DynamicTranslation - Used for standard clients

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

How can you use the DynamicTranslation API in a Service Portal widget?

A

You must inject the dynamicTranslation service into the widget client script function.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What class is the getDetectedLanguage() method associated with

A

DynamicTranslation

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What are the parameters passed for the getDetectedLanguage() method?

A

getDetectedLanguage(text, parms)
where text = string passed and evaluated to detect language
& parms = optional JSON object that contains additional translation parameters.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What API is used to access data in a multi-row variable set (MRVS) when a model is open?
& is it Server side or Client side?

A

g_service_catalog
Client side.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What environments is the g_service_catalog API available in?

A

All environments
Such as Service Portal, Now Platform, Workspace, and Now Mobile.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the g_service_catalog API do?

A

Enables you to access data in a multi-row variable set (MRVS) when a model is open.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What class is the getValue method associated with?

A

g_service_catalog

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does MRVS stand for and what does it mean?

A

Multi-Row Variable Set
a handy way to enter multiple rows as part of a Service Catalog request.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the getValue() method do?

A

Returns the value of the specified field on the catalog item form when used in a client script on multi-row variable sets (MRVS).

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What API is used to enable a UI Action or client script to open a specified record in an Agent Workspace tab?

A

The GlideAgentWorkspace (g_aw) API.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the GlideAgentWorkspace (g_aw) API do?

A

Enables a UI Action or client script to open a specified record in an Agent Workspace tab.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What class is the closeRecord() method associate with?

A

the g_aw (GlideAgentWorkspace) class

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the closeRecord() method do?

A

Closes the currently open record, such as a form, in a subtab within Agent Workspace.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What class is the openRecord() method associated with?

A

the g_aw (GlideAgentWorkspace) class

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the openRecord() method do?

A

Opens a specific record, such as a form, in a subtub within Agent Workspace.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

In what context is the openRecord() method able to be used?

A

This method is only available in the Agent Workspace client scripting environment or in a UI action on the workspace client script field

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What API is used to enable a client script to call server-side code in a script include?

A

The GlideAjax API.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the GlideAjax API do?

A

The GlideAjax class enables a client script to call server-side code in a script include.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What are the general steps to use GlideAjax?

A
  • 1: Create a GlideAjax instance by calling the GlideAjax constructor. As the argument to the constructor, specify the name of the script include class the contains the method you want to call.
  • 2: Call the addParam method with the sysparm_name parameter and the name of the script-include method you want to call.
  • 3: (Optional) Call the addParam method one or more times to provide the script-include code with other parameters it needs.
  • 4: Execute the server-side code by calling getXML()

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What class is the addParam() method associated with?

A

GlideAjax

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the addParam() method do?

A

Specifies a parameter name and value to be passed to the server-side function associated with this GlideAjax object.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the getAnswer() method do?

A

Retrieves the results from a server-side method called from the client via the getXMLWait() method.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the getXMLAnswer method do?

A

Calls the processor asynchronously and gets the answer element of the response in XML format.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What class is the getXMLAnswer() method associated with?

A

GlideAjax

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What class is the getAnswer() method associated with?

A

GlideAjax

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What class is the method getXML() associated with?

A

GlideAjax

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the method getXML() do?

A

Sends the server a request to execute the method and parameters associated with this GlideAjax object.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What class is the method getXMLWait() associated with?

A

GlideAjax

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the method getXMLWait() do?

A

Sends the server a request to execute the method and parameters associated with this GlideAjax object.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What API is used to search DOM elements, search documents, or search JQuery elements?

A

The GlideDocument API.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the GlideDocument (g_document) API do?

A

Provides the ability to search a DOM element, a document, or a JQuery element.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What class is the getElement() method associated with?

A

GlideDocument (g_document)

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the getElement() method do?

A

Returns a node found in the specified DOM based context or created from the HTML context.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What class is the getElements() method associated with?

A

GlideDocument(g_document)

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the getElements() method do?

A

Returns a node list found in the specified DOM based context or created if an HTML context is specified.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What API is used for client-side interactions with actions, flows, and subflows?

A

GlideFlow

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What is the GlideFlow API used for and what are some of the things that can be done with it?

A

Use the GlideForm JavaScript API for client-side interactions with actions, flows, and subflows.
Using this API you can:
- Start actions, flows, or subflows via a script
- Get an existing execution
- Get the status and any available outputs
- Wait for the completion of an action, flow, or subflow

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What is a promise in the context of an API returning promise objects?

A

A promise represents the eventual result of an asynchronous operation.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What API provides methods to customize forms?

A

The GlideForm API

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the GlideForm API do?

A

Provides method to customize forms

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the addDecoration() method do within the context of the GlideForm API?

A

Adds an icon on a field’s label

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the addErrorMessage() method do within the context of the GlideForm API?

A

Displays the specified error message at the top of the form
This messages appears for approximately four seconds and then disappears. This timeout is not configurable at this time.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the addFormMessage() method do within the context of the GlideForm API?

A

Displays a floating form message at the top of the form detail section. This message does not cover UI actions.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the addInfoMessage() method do within the context of the GlideForm API?

A

Adds the specified informational message to the top of the form.
This message appears for approximately four seconds. This timeout is not configurable at this time.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the addOption() method do within the context of the GlideForm API?

A

Adds a choice to the end of a choice list field by default.
If adding the parameter choice index, then it adds a choice to the list field at the position specified.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the clearMessages() method do within the context of the GlideForm API?

A

Removes only informational and error messages from the top of the form.
Removes informational and error messages added with addInfoMessage() and addErrorMessage()

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What’s the difference between the clearMessages() method and the clearAllFormMessages() method within the context of the GlideForm API?

A

clearMessages() affects informational and error messages (populated using the addInfoMessage() and addErrorMessage() methods), while clearAllFormMessages() removes form messages of any type.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the clearAllFormMessages() method do within the context of the GlideForm API?

A

Removes all form messages of any type.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the clearOptions() method do within the context of the GlideForm API?

A

Removes all options from the choice list.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the clearValue() method do within the context of the GlideForm API?

A

Removes any value(s) from the field.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the disableAttachments() method do within the context of the GlideForm API?

A

Prevents file attachments from being added.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the enableAttachments() method do within the context of the GlideForm API?

A

Allows file attachments to be added.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the flash() method do within the context of the GlideForm API?

A

Used to draw attention to a particular field. Flashes the specified color for a specified duration of time in the specified field.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the getActionName() method do within the context of the GlideForm API?

A

Returns the most recent action name, or, for a client script, the sys_id or the UI action clicked.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the getBooleanValue() method do within the context of the GlideForm API?

A

Returns a boolean value for the specified field.
Returns false if the field value is false or undefined, otherwise returns true.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the getControl() method do within the context of the GlideForm API?

A

Returns the HTML element for the specified field.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the getDecimalValue() method do within the context of the GlideForm API?

A

Returns the decimal value of the specified field.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the getDisplayBox() method do within the context of the GlideForm API?

A

Gets the display value from a form in the core UI.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the getDisplayValue() method do within the context of the GlideForm API?

A

Gets the display value from a form in Service Portal.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the getElement() method do within the context of the GlideForm API?

A

Returns the HTML element specified by parameter.
Compound fields may contain several HTML elements. This method is generally not necessary as there are built-in methods that use the fields on a form.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the getFormElement() method do within the context of the GlideForm API?

A

Returns the HTML element for the form

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the getHelpTextControl() method do within the context of the GlideForm API?

A

Returns the HTML element of the help text for the specified field.
This method is applicable to service catalog variables only.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the getIntValue() method do within the context of the GlideForm API?

A

Returns the integer value of the field specified

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the getLabelOf() method do within the context of the GlideForm API?

A

Returns the plain text value of the field label.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the getOption() method do within the context of the GlideForm API?

A

Returns the option element for a selected box named fieldName where choiceValue matches the option value.
getOption(fieldName, choiceValue)

NOTE: This method does not work on read-only fields.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the getReference() method do within the context of the GlideForm API?

A

Returns the GlideRecord for a specified field.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

Why is using a callback function with the getReference() method so important within the context of the GlideForm API?

A

If a callback function is not present, the routine runs synchronously and processing halts (causing the browser to appear to hang) while waiting on a server response.
If a callback function is present, the routine runs asynchronously. The browser (and script) processing continues normally until the server returns the reference value, at which time, the callback function is invoked.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the getRelatedListNames() method do within the context of the GlideForm API?

A

Returns an array of related list names from the current form

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the getSections() method do within the context of the GlideForm API?

A

Returns an array of the form’s sections.
This method is not available in the mobile platform.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the getTableName() method do within the context of the GlideForm API?

A

Returns the name of the table to which record belongs.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the getUniqueValue() method do within the context of the GlideForm API?

A

Returns the sys_id of the record displayed in the form.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the getValue() method do within the context of the GlideForm API?

A

Returns the value of the specified form field.
This method also supports values from a multi-row variable set (MRVS).

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

How do you obtain data from fields within an MRVS (multi row variable set)?

A

First use
- JSON.parse(getValue(β€˜<mrvs_field_name>’’) || β€˜[]’)
to obtain the MRVS array.
and then use indexing to access the fields within the row objects.</mrvs_field_name>

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the hideAllFieldMsgs() method do when passed no parameters within the context of the GlideForm API?

A

Hides all field messages.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the hideAllFieldMsgs() method do when passed a String type parameter within the context of the GlideForm API?

A

Hides all field messages of the specified type (the string parameter)

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the hideErrorBox() method do within the context of the GlideForm API?

A

Hides the error message placed by showErrorBox()
Whenever possible, use hideFieldMsg() rather than this method.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the hideFieldMsg() method do when its second parameter is passed as true within the context of the GlideForm API?
What if it is passed as false or not included?

A

hideFieldMsg(String fieldName, Boolean clearAll)
When the clearAll parameter is true, all messages for the field are cleared. When false, only the last message is removed.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the hideRelatedList() method do within the context of the GlideForm API?

A

Hides the specified related list on the form.

This method is not available on the mobile platform.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the hideRelatedLists() method do within the context of the GlideForm API?

A

Hides all related lists on the form.
This method is not available on the mobile platform.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the isLiveUpdating() method do within the context of the GlideForm API?
What is an example of how this could be used?

A

Returns true while a live update is being done on the record the form is showing.
This can be used in an onChange() client script to determine if a change to the record is because of a live update from another session. The client script can then device what action to take, or not to take. This applies to systems using Core UI with live forms enabled.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the isMandatory() method do within the context of the GlideForm API?

A

Returns true if the field is mandatory

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the isNewRecord() method do within the context of the GlideForm API?

A

Returns true if the record has never been saved?

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the isSectionVisible() method do within the context of the GlideForm API?

A

Returns true if the section is visible

The isSectionVisible() method is not supported in Workspace

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the onUserChangeValue() method do within the context of the GlideForm API?

A

Registers a custom event listener that detects when any field in the current form is modified by a user.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the refreshSlushbucket() method do within the context of the GlideForm API?

A

You can update a list collector variable.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the removeOption() method do within the context of the GlideForm API?

A

Removes the specified option from the choice list.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the removeDecoration() method do within the context of the GlideForm API?

A

Removes the icon from the specified field that matches the icon and title.
This method is not supported by Service Catalog.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the save() method do within the context of the GlideForm API?

A

Saves the record without navigating away (update and stay).

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the setMandatory() method do within the context of the GlideForm API?

A

Makes the specified field mandatory.
Whenever possible, use a UI policy rather than this method.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the setDisplaySection() method do within the context of the GlideForm API?

A

Shows or hides a section.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What does the setValue() method do within the context of the GlideForm API?

A

Sets the value of a specified form field to the value of a specified display value in a reference record

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

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

What is important to remember about performance and the parameters in regards to the setValue() method within the context of the GlideForm API?

A

setValue(String fieldName, String value, String displayValue)

Neglecting to pass information to the displayValue parameter could result in a round trip and thus decrease performance.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

102
Q

What is something important to remember when using the setValue() method to set multiple reference values for a list collector field within the context of the GlideForm API?

A

Pass arrays into the parameters.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

103
Q

What is something important to remember about using the setValue() method in OnChange client scripts within the context of the GlideForm API?

A

The setValue() method can cause a stack overflow when used in an OnChange client script. This is because every time the value is set, it will register as a change, which may re-trigger the OnChange client script. To prevent this, perform a check that will validate that the new value will be different from the old value.d

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

104
Q

What does the showErrorBox() method do within the context of the GlideForm API?

A

Displays an error message under the specified form field (either a control object or the name of the field). If the control or field is currently off the screen and the scroll form parameter is true, the form scrolls to the control or field.
A global property (glide.ui.scroll_to_message_field) is available that controls automatic message scrolling when the form field is off screen (scrolls the form to the control or field). The showFieldMsg() method is a similar method that requires a type parameter.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

105
Q

What does the showFieldMsg() method do within the context of the GlideForm API?

A

Displays either an informational or error message under the specified form field (either a control object or the name or the field.) If the control or field is off the screen, the form is scrolled to the field.
A global property (glide.ui.scroll_to_message_field) is available that controls automatic message scrolling when the form field is off screen (scrolls the form to the control or field)
The showErrorBox() method is a shorthand method that does not require the type parameter.

This method does not work with the journal_field type field in Core UI.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

106
Q

What does the setDisabled() method do within the context of the GlideForm API?

A

Makes the specified field available or unavailable

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

107
Q

What does the setDisplay() method do within the context of the GlideForm API?

A

Displays or hides a field.
This method cannot hide a mandatory field with no value. If the field is hidden, the space is used to display other items. Whenever possible, use a UI policy instead of this method.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

108
Q

What does the setLabelOf() method do within the context of the GlideForm API?

A

Sets the plain text value of the field label.
This method is not supported by Service Catalog

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

109
Q

What does the setReadOnly() method do within the context of the GlideForm API?

A

Makes the specified field read-only or editable.
Whenever possible, use a UI policy instead of this method.
To make a mandatory field read-only, you cannot use the setValue() method to update the value of that field. If you need to set the value in this way, you must set the readOnly value to false.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

110
Q

What does the setValue() method do within the context of the GlideForm API?

A

Sets the value of a specified form field to the passed in value.
This method also supports setting values in multi-row variable sets (MRVS). You must first use JSON.parse(getValue(β€˜<mrvs_field_name>’)) to obtain the MRVS array and then use indexing to update the fields within the row objects. Once all values are updates in the MRVS, use the setValue() method to save the update MRVS array.</mrvs_field_name>

Note: The method setValue() can cause a stack overflow when used in an OnChange client script. This is because every time the value is set, it will register as a change, which may re-trigger the OnChange client script. To prevent this, perform a check that will validate that the new value will be different from the old value. For example, before performing setValue(shortDesc, newValue.toUpperCase());, validate that the short description is not already uppercase. This will prevent the client script from applying the toUpperCase() more than once.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

111
Q

What does the setVisible() method do within the context of the GlideForm API?

A

Displays or hides the field.
This method cannot hide mandatory fields with no value.
Use UI Policy rather than this method whenever possible.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

112
Q

What does the showErrorBox() method do within the context of the GlideForm API?

A

Displays an error message under the specified form field (either a control object or the name of the field) If the control or field is currently off the screen, the form scrolls to the control or field.
A global property (glide.ui.scroll_to_message_field) is available that controls automatic message scrolling when the form field is off the screen (scrolls the form to the control or field) the showFieldMsg() method is a similar method that requires a type parameter.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

113
Q

What does the showRelatedList() method do within the context of the GlideForm API?

A

Displays the specified related list on the form.
This method is not available on the mobile platform. If this method is run on a mobile platform, no action occurs.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

114
Q

What does the showRelatedLists() method do within the context of the GlideForm API?

A

Displays all the form’s related lists.This method is not available on the Mobile platform.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

115
Q

What does the submit() method do when there is no parameter passed within the context of the GlideForm API?

A

Saves the record.
The user is taken away from the form, returning them to where they were.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

116
Q

What does the submit(String verb) method do when it is passed a parameter within the context of the GlideForm API?

A

Performs the UI action specified by the parameter.
Where String above is an β€œaction_name from a sys_ui_action record The action name must be for a visible form button.”

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

117
Q

What API is used to Create a globally unique identifier?

A

The GlideGuid API

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

118
Q

What does the GlideGuid API do?

A

It create a globally unique identified 32 characters long, or as specified with the optional length argument

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

119
Q

What API is used to manipulate lists?

A

GlideList2

GlideListV3 Depreciated

GlideList (Now Experience) Not applicable to core UI

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

120
Q

What does the GlideList2 API do?

A

GlideList2 is a JavaScript class used to customize (v2) lists.
The variable g_list is used to access a specified list object. The g_list variable is not available to the related lists form link UI action. It is available to the lists form link UI action.
These methods are used in UI Context Menus and UI Actions

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

121
Q

What does the addFilter() method do?

A

Adds a single term to the list query filter.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

122
Q

Which API should you use 98% of the time?
- GlideList (Now Experience)
- GlideList2
- GlideListV3

A
  • GlideList2
  • GlideListV3 is depreciated
  • GlideList (Now Experience) is only applicable to working within the Now Experience

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

123
Q

What does the get() method do when passed an object DOMelement?

A

Returns the GlideList2 object for the list that contains the specified item.
The DOMelement parameter, of the object type, is the DOM element ID for the list for which you want the GlideList2 object.
It either returns an object or returns null

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

124
Q

What does the get() method do when pass a String ListID?

A

Returns the GlideList2 object for the list specified.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

125
Q

What does the getChecked() method do?

A

Returns a comma-separated list of the sys_ids for the items that are checked in the associated list.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

126
Q

What does the getFixedQuery() method do?

A

Returns the fixed query.
A fixed query is the part of the query that cannot be removed from the breadcrumb (ie, it is fixed for the user). It is specified by including a sysparm_fixed_query parameter for the application module.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

127
Q

What does the getGroupBy() method do?

A

Returns the field or comma-separated list of fields that are used to group the list

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

128
Q

What does the getListName() method do?

A

Returns the name of the list, which is usually the table name

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

129
Q

What does the getOrderBy() method do?

A

Returns the first field used to order the list

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
πŸ“ Client Side APIs and Methods Developer Documentation

130
Q

What does the getParentTable() method do?

A

Returns the name of the parent table for a related list (the table associated with the form)

131
Q

What does the getQuery() method do?

A

Returns the encoded query string for the list.

132
Q

What does the getRelated() method do?

A

Returns the related list field that associated the related list to the parent form.

133
Q

What does the getTableName() method do?

A

Returns the table name for the list.

134
Q

What does the getView() method do?

A

Returns the view used to display the list.

135
Q

What does the getTitle() method do?

A

Returns the list title.

136
Q

What does the isUserList() method do?

A

Returns true if the list has been personalized by the user by choosing the list mechanic and changing the list layout.

137
Q

What does the refresh() method do?

A

Refreshes the list. The orderBy part of the list filter is ignored so that the list uses its natural ordering when it is refreshed.

138
Q

What does the refreshedWithOrderBy() method do?

A

Refreshes the list. The orderBy part of the list filter is included if it is specified for the list.

139
Q

What does the setFilter() method do?

A

Sets the encoded query string for the list, ignoring the orderBy and groupBy parts of the query string.

140
Q

What does the setFilterAndRefresh() method do?

A

Sets the encoded query string for the list, including the orderBy and groupBy if specified, and then refreshes the list using the new filter.

141
Q

What does the setFirstRow() method do?

A

Sets the first row that appears in the list when the list is refreshed.

142
Q

What does the setGroupBy() method do?

A

Sets the list groupBy criteria for a single field.

143
Q

What does the setOrderBy() method do?

A

Sets the orderBy criteria for the list.

144
Q

What does the setRowsPerPage() method do?

A

Sets the number of rows per page to display on a list.

145
Q

What does the showHideGroups() method do?

A

Shows or hides all the groups within the list and saves the current collapsed/expanded state of the groups as a user preference.

146
Q

What does the showHideList() method do?

A

Displays or hides the list and saves the current collapsed/expanded state of the list as a user preference.

147
Q

What does the sort() method do?

A

Sorts the list in ascending order and sets the fields as an orderBy column.

148
Q

What does the sortDescending() method do?

A

Sorts a single field in the list in descending order and sets the field as an orderByDescField column.

149
Q

What does the toggleList() method do?

A

Toggles the display of the list and saves the current collapsed/expanded state of the list as a user preference.

150
Q

What does the toggleListNoPref() method do?

A

Toggles the display of the list but does not save the current collapsed/expanded state of the list as a user preference.

151
Q

What API is used to customize UI Context Menu items?
& Server-Side or Client-Side?

A

GlideMenu
Client side

152
Q

What does the GlideMenu API do?

A

Used to customize UI Context Menu items.

153
Q

What does the clearImage() method do?

A

Clears the image for an item.

154
Q

What does the clearSelected() method do?

A

Clears any selection images from items in the menu.

155
Q

What does the getItem() method do?

A

Returns a menu item by item ID.
It can be necessary to find an item in a menu so that it can be changed before being displayed. Each menu item may be assigned a unique ID when the menu item is created.

156
Q

What does the setDisable() method do?

A

Disables a menu item so that it cannot be selected. The disabled menu items is displayed in a lighter color (grayed out) to indicate it was disabled.

157
Q

What does the setEnabled() method do?

A

Enables the specified menu item.

158
Q

What does the setHidden() method do?

A

Hides the specified menu item.
When hiding menu items, the separator bars are not adjusted, so it is possible to end up with the menu showing two separators in a row.

159
Q

What does the setImage() method do?

A

Sets an image for an item. (GlideMenu API)

160
Q

What does the setLabel() method do?

A

Sets the display label for a menu item. The label may contain HTML.

161
Q

What does the setvisible() method do?

A

Displays the specified item.

162
Q

What API is used to display a form in a GlideModal?

A

GlideModalForm

163
Q

What does the GlideModalForm API do?

A

Displays a form in a GlideModal
General usage of the GlideModalForm class involves creating the object, setting any preferences, and then rendering the GlideModalForm.

164
Q

What does the GlideModalForm() method do?

A

Creates an instance of the GlideModalForm class

165
Q

What does the addParm() method do in the context of the GlideModalForm class.

A

Sets the specified form field to the specified value.

166
Q

What does the setSysID() method do in the context of the GlideModalForm class?

A

Sets the object’s sys_id preference.

167
Q

What does the setCompletionCallback() method do in the context of the GlideModalForm class?

A

Sets the function to be called when the form has been successfully submitted and processed by the server.

168
Q

What does the setOnloadCallback() method do in the context of the GlideModalForm class?

A

Sets the function to be called after the form has been loaded.

169
Q

What does the render() method do in the context of the GlideModalForm class?

A

Shows the modal form.

170
Q

Which of the following API should you use?
- GlideWindow
- GlideModal
- GlideDialogWindow

A

GlideModal - This is a fully-featured replacement for GlideWindow and GlideDialogWindow

171
Q

What does the GlideModal API do?

A

Provides methods for displaying a content overlay.

172
Q

What does the GlideModal() method do within the context of the GlideModal class?

A

Creates an instance of the GlideModalV3 class

173
Q

What does the get() method do within the context of the GlideModal class?

A

Get a GlideModal object by ID

174
Q

What does the getPreference() method do within the context of the GlideModal class?

A

Returns the value of the specified preference (property)

175
Q

What does the render() method do within the context of the GlideModal class?

A

Renders the UI page in the modal.

176
Q

What does the renderWithContent() method do within the context of the GlideModal class?

A

Display a modal with the specified HTML content.
The renderWithContent() method replaces the render() method, and does not request a UI page to render.

177
Q

What does the setPreference() method do within the context of the GlideModal class?

A

Sets the specified field on the current form to the specified value.

178
Q

What does the setPreferenceAndReload() method do within the context of the GlideModal class?

A

Set the properties and reload the modal.

179
Q

What does the setTitle() method do within the context of the GlideModal class?

A

Sets the title of the modal.

180
Q

What does the setWidth() method do within the context of the GlideModal class?

A

Sets the width in pixels
The modal is boxed into predefined system sizes

181
Q

What does the switchView() method do within the context of the GlideModal class?

A

Change the view and reload the modal.

182
Q

What does the GlideNavigation API do?

A

Provides methods to control and refresh the navigator and main frame.

183
Q

What API provides methods to control and refresh the navigator and main frame?

A

The GlideNavigation API

184
Q

What does the open() method do within the context of the GlideNavigation API?

A

Redirects to a new URL

185
Q

What does the openPopup () method do within the context of the GlideNavigation API?

A

Opens the specified URL in a popup window.

186
Q

What does the openRecord() method do within the context of the GlideNavigation API?

A

Redirects to a record. The record displays in the navigator frame.

187
Q

What does the refreshNavigator() method do within the context of the GlideNavigation API?

A

Refreshes the content in the navigator frame

188
Q

What does the reloadWindow() method do within the context of the GlideNavigation API?

A

Reloads the current frame.

189
Q

What does the GlideNotification API do?

A

Provides the ability to show messages over the page content.

190
Q

What does the show() method do within the context of the GlideNotification API?

A

Displays the specified string over the page content as the specified type of message. When the duration timer expires, the message is removed.

191
Q

What does the Client-Side GlideRecord API do?

A

GlideRecord is used for database operations and interactions.
Client-side GlideRecord is not supported in scoped applications. Instead, use GlideAjax, or use REST APIs.

192
Q

What does the GlideRecord() method do within the context of the client-side GlideRecord API?

A

Creates an instance of the GlideRecord class for the specified table.

193
Q

What does the addOrderBy() method do within the context of the client-side GlideRecord API?

A

Adds a column to order by in the query.

194
Q

What does the addQuery() method do within the context of the client-side GlideRecord API?

A

Adds a query to return records where the specified field name is equal to a specified value (or is in a list of values)

195
Q

What does the addQuery() method do within the context of the client-side GlideRecord API when it is passed an operator parameter?

A

Adds a filter to return records where the field meets the specified condition (field, operator, value)

196
Q

What does the deleteRecord() method do within the context of the client-side GlideRecord API?

A

Deletes the current record and calls the specified response function when complete.

197
Q

What does the get() method do within the context of the client-side GlideRecord API?

A

Executes a GlideRecord query for a record with the specified sys_id. This method is expected to be used to query for single records, so a next operation is performed before returning.

198
Q

What does the getEncodedQuery() method do within the context of the client-side GlideRecord API?

A

Retrieves the query condition of the current result set as an encoded query string.

199
Q

What does the getLimit() method do within the context of the client-side GlideRecord API?

A

Returns the limit for records to be returned by the GlideRecord query

200
Q

What does the getTableName() method do within the context of the client-side GlideRecord API?

A

Retrieves the name of the table associated with this GlideRecord

201
Q

What does the hasNext() method do within the context of the client-side GlideRecord API?

A

Determines if there are any more records in the GlideRecord, returns true if there is.

202
Q

What does the insert() method do within the context of the client-side GlideRecord API?

A

Inserts a new record using the field values that have been set for the current record.

203
Q

What does the next() method do within the context of the client-side GlideRecord API?

A

Moves to the next record in the GlideRecord

204
Q

What does the orderBy() method do within the context of the client-side GlideRecord API?

A

Specifies an orderBy column. May be called more than once to order by multiple columns.

205
Q

What does the query() method do within the context of the client-side GlideRecord API?

A

Runs the query to the server against the table based on the addQuery() filter. This method queries the GlideRecord table as well as any references of the table.
Do not make synchronous query calls. Performing a query without a response function makes the call synchronous, which means that the display will wait for the query response before continuing.

206
Q

What does the setEncodedQuery() method do within the context of the client-side GlideRecord API?

A

Adds a specified encoded query string to the current query clause.
This method enables you to specify complex filters (encoded query strings) in a single query call, unlike other client-side addQuery() methods. Once you define all the desired queries, call the query() method to execute the specified query clause (filter).
If you call this method multiple times before calling the query() method, the queries are AND’ed together.

207
Q

What does the setLimit() method do within the context of the client-side GlideRecord API?

A

Sets the limit for how many records are in the GlideRecord.

208
Q

Which API provides methods for manipulating a URI?

A

GlideURLV3

209
Q

What does the GlideURLV3 API do?

A

Provides methods for manipulating a URI.
Can be used in client-side scripts using ListV2 and ListV3 APIs
This API is not supported by Service Portal, Now Mobile, or Agent Workspace.

210
Q

What does the GlideURL() method do within the context of the client-side GlideURLV3 API?

A

Creates an instance of the GlideURL class.

211
Q

What does the addParam() method do within the context of the client-side GlideURLV3 API?

A

Adds a query string name-value pair to the URL.

212
Q

What does the getURL() method do within the context of the client-side GlideURLV3 API?

A

Gets the entire context path and query string parameters as a single URI

213
Q

Which API provides access to to information about the current used ad current user roles?

A

The GlideUser API

214
Q

What does the firstName property provide within the context of the GlideUser API?

A

Returns the current user’s first name.

215
Q

What does the getClientData() method do within the context of the GlideUser API?

A

Returns a client value set.

216
Q

What does the getFullName() method do within the context of the GlideUser API?

A

Returns the first and last name of the current user.

217
Q

What does the hasRole() method do within the context of the GlideUser API?

A

Returns true if the current user has the specified role or the admin role.

218
Q

What does the hasRoleExactly() method do within the context of the GlideUser API?

A

Determines whether the current user has the specified role.

219
Q

What does the hasRoleFromList() method do within the context of the GlideUser API?

A

Returns true if the current user has at least one of the specified roles or has the admin role.

220
Q

What does the hasRoles() method do within the context of the GlideUser API?

A

Returns true if the current user has any role.

221
Q

What does the lastName property contain within the context of the GlideUser API?

A

The current user’s last name

222
Q

What does the setClientData() method do within the context of the GlideUser API?

A

Sets a client value that you can retrieve ushering getClientData()

223
Q

What does the userName property contain within the context of the GlideUser API?

A

This property is the current user’s username, not the user’s name.

224
Q

What does the userID property contain within the context of the GlideUser API?

A

Returns the sys_id of the current user.

225
Q

What API provides methods to get and format translated messages?

A

i18N API - Client Side

226
Q

What does the i18N API do?

A

Provides methods to get and format translated messages.

227
Q

What does the format() method do within the context of the i18N API?

A

Formats a string containing named tokens with values from a map.

228
Q

What does the getMessage() method do within the context of the i18N API?

A

Retrieves a translated message.

If the specified string exists in the database for the current language, then the translated message is returned. If the specified string does not exist for the current language, then the English version of the string is returned. If the string does not exist at all in the database, then the ID itself is returned.

229
Q

What does the getMessages() method do within the context of the i18N API?

A

Retrieves a set of messages.

If the specified string exists in the database for the current language, then the translated message is returned. If the specified string does not exist for the current language, then the English version of the string is returned. If the string does not exist at all in the database, then the ID itself is returned.

230
Q

What API is an omni-present frame the communication partners can use to integrate their systems into the ServiceNow platform?

A

The openFrameAPI - client side

231
Q

What does the openFrameAPI do?

A

Openframeapi is an omni-present frame the communication partners can use to integrate their systems into the ServiceNow platform.

232
Q

What does the hide() method do within the context of the openFrameAPI API?

A

Hides the OpenFrame in the TopFrame

233
Q

What does the init () method do within the context of the openFrameAPI API?

A

Initialize OpenFrame, must be the first method called.
This method initialized communication to TopFrame and initializes and visual elements passed in the config parameter.

234
Q

What does the isVisible () method do within the context of the openFrameAPI API?

A

Checks to see if the OpenFrame is visible in the TopFrame.

235
Q

What does the openCustomURL() method do within the context of the openFrameAPI API?

A

Opens a custom URL in TopFrame

236
Q

What does the openServiceNowForm() method do within the context of the openFrameAPI API?

A

Opens a form URL.

When an agent receives an incoming call, the OpenFrame window displays information such as the account, contact, or consumer. Clicking a link in the OpenFrame window displays the corresponding record.
In the platform interface, this API opens a form URL in TopFrame.
For Agent Workspace, this API supports interaction tab management. In Agent Workspace, an interaction record opens in a parent tab and the specified entity record opens in a child tab under the interaction tab.

237
Q

What does the openServiceNowFormwithChildTabIf() do within the context of the openFrameAPI API?

A

Opens a ServiceNow form with a child tab if invoked in a workspace or opens an entity if invoked in the UI16 interface.

238
Q

What does the openServiceNowList() do within the context of the openFrameAPI API?

A

Opens a list URL in TopFrame
This API is not supported on Agent Workspace

239
Q

What does the setFrameMode() method do within the context of the openFrameAPI API?

A

Sets the OpenFrame mode.
The mode passed in this API:
- sets the appropriate icon in the header: collapse or expand
- raises the relevant event for CTI:
- β€”openFrameAPI.EVENTS.COLLAPSE
- β€”openFrameAPI.EVENTS.EXPAND

240
Q

What does the setHeight() method do within the context of the openFrameAPI API?

A

Sets the OpenFrame height.

241
Q

What does the setIcons() method do within the context of the openFrameAPI API?

A

The OpenFrame header can include icons that are placed next to the close icon.

242
Q

What does the setPresenceIndicator() method do within the context of the openFrameAPI API?

A

Sets the presence indicator to display agent availability in the workspace.

243
Q

What does the setSize() method do within the context of the openFrameAPI API?

A

Sets the OpenFrame size.

244
Q

What does the setSubtitle() method do within the context of the openFrameAPI API?

A

Sets the OpenFrame subtitle.

245
Q

What does the setTitle() method do within the context of the openFrameAPI API?

A

Sets the OpenFrame title.

246
Q

What does the setTitleIcon() method do within the context of the openFrameAPI API?

A

Sets the OpenFrame’s title icon/

247
Q

What does the setWidth() method do?

A

Sets the OpenFrame widht.

248
Q

What does the show() method do within the context of the openFrameAPI API?

A

Makes the OpenFrame visible in the TopFrame

249
Q

What does the subscribe() method do within the context of the openFrameAPI API?

A

Subscribes to the event

250
Q

What does the version() method do within the context of the openFrameAPI API?

A

Returns the OpenFrame API version.