Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
ServiceNow Application Development

You're reading from   ServiceNow Application Development Transform the way you build apps for enterprises

Arrow left icon
Product type Paperback
Published in Sep 2017
Publisher Packt
ISBN-13 9781787128712
Length 408 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Sagar Gupta Sagar Gupta
Author Profile Icon Sagar Gupta
Sagar Gupta
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Introduction to ServiceNow FREE CHAPTER 2. User Administration 3. Data Management 4. Application Scopes 5. Modules, Forms, and Views 6. Introduction to ServiceNow Scripting 7. Client-Side Scripting 8. Server-Side Scripting 9. Jelly Scripting 10. Events and Notifications 11. Workflow Development 12. Debugging in ServiceNow 13. Advanced Database Features 14. Job Scheduling and Data Export-Import

UI actions


Let us now create a server-side UI action. A UI action can be invoked from different UI elements, such as form buttons, form list context menus, form-related links, list of records header context menus, list actions menus, or list-related links. UI actions are usually server-side code, and can make use of script includes and other server-side client APIs. However, it is also possible to mark a UI action to run on client- and write- and use-only client-side glide APIs.

For the purpose of this book, we will create server-side UI actions. Our goal is to provide a button on the top of the form, in the form header and context menu, to allow users to set the state of a pending or open booking request as a work in progress.

To create a new UI action, open Studio, select Server Development | UI Action from the Create Application File wizard, and click Create:

Fill in the UI action New Record form with the following values:

  • Name: In Progress
  • Table: Booking Request
  • Action name: mark_in_progress...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image