servicenow developers training modules Flashcards
What do Server Side scripts have access to?
The database, The current record, The previous record, the full system API
What do Client Side scripts have access to?
The UI elements in the browser, The current form, The current value of fields
For the following component, what is the description: Business Rules
Perform operations on table data when it is displayed, inserted, updated, deleted, or queried. They are similar to RDBMS triggers, but with a full server-side API to support them.
The following component is often used for what purpose: Business rules
It is often used to validate Data and Trigger events
For the following component, what is the description: Script Includes
Script includes are used to store JavaScript functions and classes for use by server-side script objects. Each script include defines either a function or an implementation of a ServiceNow class. Script includes only run when called by a server script.
For the following component, what is the description: Events
Run when specific conditions occur on the system to trigger script actions.
For the following component, what is the description: Script Actions
Run when a specific event is triggered to determine how the system handles it
For the following component, what is the description: UI Actions
Add buttons, links, and context menu items on forms and lists to allow users to perform application-specific operations
For the following component, what is the description: Client Scripts
Run JavaScript on the browser to perform operations on form and list data
For the following component, what is the description: UI policies
Perform operations on form data or fields, such as making fields mandatory, visible, or read-only.
The following component is often used for what purpose: Script includes
Enable different components to re-use server code and to make server code available to client-side calls
The following component is often used for what purpose: Events
Identify and log when certain conditions are met, such as when an incident is opened or closed.
The following component is often used for what purpose: Script actions
Automate a response when a specific even occurs, such as send and email notification when an incident is opened.
The following component is often used for what purpose: UI actions
Enable users to perform a specific action, such as resolve an incident
The following component is often used for what purpose: Client Scripts
Enforce client-side validation requirements, such as making certain an end date is after a start date
The following component is often used for what purpose: UI Policies
Enforce data policies from the UI, such as make a field required on first entry and then read-only afterwards
What is the description for the following class, object, or method: function onSubmit()
A JavaScript function call that occurs whenever the user submits form data. Enclosing code in a function prevents the system API from erroneously re-using variable values in different scopes.
What is the description for the following class, object, or method:
g_form.getValue(‘end_date’)
g_form.getValue(‘start_date’)
A JavaScript API call to the GlideForm class. In this case, to use the getValue() method to get the value of the end_date and start_date fields.
What is the description for the following class, object, or method:
g_form.clearMessages()
A JavaScript API call to the GlideForm class. In this case, to use the clearMessages() method to remove an previous error and info messages.
What is the description for the following class, object, or method:
g_form.getLabelOf(‘end_date’)
A JavaScript API call to the GlideForm class. In this case, to use the getLabelOf() method to get the label of the end_date field.
The following characteristics describe what:
- A type that determines when they run in relation to database operations.
- A list of database operations that can trigger them.
- An action that can do one or more of the following - Set one or more field values, display a message, abort the current database operation, run custom code
These describe a Business Rule
When does the following Business Rule type run and what is it used for: Before
runs: after the user submits the form but before the system takes any action on the record in the database.
use to: Validate data before inserting or updating into the database
What is the description for the following class, object, or method: After
After the user submits the form and after the system takes action on the record on the database
used to: Perform calculations or business logic on data, such as updating totals or counts
What is the description for the following class, object, or method: Async
As an asynchronous scheduled job in the background after the user submits the form and after the system takes action on the record in the database
used to: Perform calculations or business logic on data in the background. Allows the system to do other tasks, such as loading a form or running other business rules.
What is the description for the following class, object, or method: Display
Before the system displays the form to the user and just after the system reads a record from the database
used to: Perform calculations or business logic on data that may affect user input, such as the current price of a catalog item.
What is the description of the following Class, object, or method: Class.create()
A JavaScript API call to create a class
What is the description of the following Class, object, or method: initialize: function(mrkevent)
A function declaration that defines one parameter mrkevent
What is the description of the following Class, object, or method: current.sys_id
A dot-walking reference to the value of the Sys ID field of the current record. The Sys ID uniquely identifies the record like a foreign key in a SQL query. See Dot-walking
What is the description of the following Class, object, or method: current.budget
A dot-walking reference to the value of the budget field of the current record. See Dot-walking
What is the description of the following Class, object, or method: totalCost(mrkevent)
A reference to the totalCost script include with a parameter input
What is the description of the following Class, object, or method: getCost()
A reference to the getCost function of the totalCost script include
What is the description of the following Class, object, or method: gs.addErrorMessage
A glidesystem method to display an error message on the top of the screen. See GlideSystem API reference