Book Image

Learning ServiceNow. - Second Edition

5 (1)
Book Image

Learning ServiceNow. - Second Edition

5 (1)

Overview of this book

This book is an updated version of Learning ServiceNow, that will cover the new and updated features of the ServiceNow platform. It will show you how to put important ServiceNow features to work in the real world, while introducing key concepts via examples of managing and automating IT services. It'll help you build a solid foundation of knowledge, and will demonstrate how to effectively implement and configure modules within ServiceNow. We'll show you how to configure and administer your instance, and then move on to building strong user interfaces and creating powerful workflows. We also cover other key elements of ServiceNow, such as notifications, security, reporting, and custom development. You will learn how to improve and automate your business' workflow and processes. By the end of this book, you will be able to successfully configure and manage ServiceNow like a pro.
Table of Contents (19 chapters)
Learning ServiceNow Second Edition

UI scripts

UI scripts are quite similar to script includes. While script includes are blocks of server-side code, accessible to any server-side script, UI scripts are blocks of code that are available to any client-side script on a page on which they load.

Global UI scripts are relatively simple. They are available on any form in the system, as they are sent from the server to the browser along with all of the other relevant information (the record data, client scripts, and other data). When the UI script is set to Global, any other client-side script can access the code within it. For example, imagine that we have a UI script with the following code in it:

function sayHello() { 

If we mark this UI script as global, then on any client script or UI policy script, we can call sayHello(), and the user will see an alert message that says Hello!, even though the function that does that action isn't defined anywhere in the script that calls it.

Furthermore, if we don't wrap...