Module 8: Package Enhancements for Testing Flashcards
What does ServiceNow use as their scripting language?
JavaScript
Where does JavaScript execute?
- Client side (web browser)
- Server side (ServiceNow database)
UI Policies…
Are not about security, they are about managing the user experience and data integrity
UI Policies execute on the Client side, or Server side?
Client side
What is a UI Policy?
A rule that is applied to a form to dynamically change information or the form itself.
You can use UI Policies to immediately implement updates and changes to forms and lists
What are 3 things that determine what happens on the form? (UI Policy Actions)
- Mandatory
- Hidden
- Read-only
Where does a Data Policy execute?
It executes on the Server side, but it can also run as a UI Policy on the client side
What is a Data Policy?
It enforces data consistency by setting fields as mandatory and/ or read-only
Where are Data Policies applied?
Data Policies are applied to all data entered into the platform.
UI Policies only apply to data entered on a form through a standard broswer
UI Actions do what?
They add buttons, links and context menu items on forms and lists.
It makes the UI more interactive, customisable and specific to user activities
Where do Client scripts run?
On the Client side
What do Client Scripts do?
They make ‘real-time’ changes to the appearance of the user interface, especially forms
What types of Client Scripts are supported?
- onCellEdit
- onChange
- onLoad
- onSubmit
Where do Business Rules execute?
On the Server Side
When is a Business Rule configured to run?
When a record is:
-displayed
-inserted
-updated
-deleted
-when a table is queried