Book Image

ServiceNow Application Development

By : Sagar Gupta
Book Image

ServiceNow Application Development

By: Sagar Gupta

Overview of this book

ServiceNow provides service management for every department in the enterprise, including IT, Human Resources, Facilities, Field Service, and more. This book focuses on all the steps required to develop apps and workflows for any of your business requirements using ServiceNow. You will start with the first module, which covers the basics of ServiceNow and how applications are structured; how you can customize the dashboard as required; and also how to create users. After you get used to the dashboard, you will move on to the next module, Applications and Tables, where you will learn about working with different tables and how you can create a scope other than the global scope for your application. The next module is Scripting and APIs, where you will learn Scripting in ServiceNow and use powerful APIs to develop applications. The final module, Administration Essentials, covers debugging, advanced database features, and scheduled script creation. By the end of the book you will have mastered creating organized and customer-friendly applications
Table of Contents (21 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
Free Chapter
1
Introduction to ServiceNow

UI pages


Now let us create our first UI page that will show the statistics of the records stored in the Booking Request table. To create a new UI page, open Studio and in the Create Application File wizard, select Forms & UI | UI Page and click on the Create button, as shown here:

The UI page new record form will be shown. Now populate the field with the following values:

  • Name: app_properties (the name field must not contain any spaces)
  • Category: General
  • Endpoint: (This will be automatically generated when we enter a name)
  • HTML: (Use the code mentioned after the following screenshot)
  • Leave the Client script and Processing script empty for now

Use the following code in the HTML field:

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<g:ui_form>
   <table style="border-collapse: separate; border-spacing: 5px 5px;">
   <tr>
         <th></th>
         <th>Travel booking...