Scripting guide Scripting Guide Scripting for ServiceNow PDF generated using the open source mwlib toolkit See http code pediapress com for more information PDF generated at Sun Sep PST C Glide Glide Stack Overview Glide is an extensible Web development p

Scripting Guide Scripting for ServiceNow PDF generated using the open source mwlib toolkit See http code pediapress com for more information PDF generated at Sun Sep PST C Glide Glide Stack Overview Glide is an extensible Web development platform written in Java that facilitates rapid development of forms-based work ow applications work orders trouble ticketing and project management for example User Interface Stack Technology Map Java Packages Technologies Used User Interface Browser DHTML CSS JavaScript com glide ui GlideServlet com glide jelly Apache Jelly com glide script Business Rules Mozilla Rhino com glide db Persistence JDBC GlideServlet The primary driver of Glide and the only servlet in the system is found in GlideServlet java The GlideServlet ? Handles inbound action requests ? Renders pages ? Merges data with forms ? Presents to user ? Interfaces with script layer Business Rules ? ECMA JavaScript implementation based on Mozilla Rhino ? Interfaces with persistence layer using JDBC recordset interface ? Merges persistence layer meta-data with data for easy correlation Persistence ? Persistence means any store ? RDBMS ? LDAP ? File system ? Uniform access regardless of store type ? Provides QUID and meta-data capabilities ? Interfaces presented to callers CGlide Stack ? RecordSet ? TableDescriptor ? ElementDescriptor Diagram References http www mozilla org rhino CGlide Script Objects Glide Script Objects Note This functionality requires a knowledge of Javascript Overview There are several important objects that are exposed when writing business rules These objects are created when your script is called You may access objects using a shorthand notation These include ? gs - GlideSystem most of the utility functions may be found in this object ? system - Same as 'gs' ? current - Current GlideRecord read write only available when writing business rules ? previous - Previous GlideRecord values read only only available when writing business rules Some of the more important classes are documented along with the Glide Script Objects They can be created and used within a script or business rule or returned by one or more of the Script Object methods Glide provides full scripting support when writing business rules Business rules are written in Javascript and have access to the Glide scripting objects The majority of Glide functionality is accessed using JavaScript Using GlideRecord to Query Tables Note This functionality requires a knowledge of Javascript Overview In order to query a table ?rst create a ServiceNow object for the table This object is called a GlideRecord To create a GlideRecord create the following in script var target new GlideRecord 'incident' This creates a variable called target which is a GlideRecord object for the incident table The only parameter needed is the name of the table to be accessed To process all records from the incident table add the following script target query Issue the query to the database to get all records while target next add code here to process the incident record This issues the query to the database Each call to next would load

Documents similaires
modeles de presentations et astuces de design pour retenir l 1 0 0
Chapitre 9 revolution industrielle 0 0
Moretti 2004 REVIEW ARTICLE Adolescent-parent attachment Bonds that support healthy development Marlene M Moretti PhD Maya Peled MA Downloaded from https academic oup com pch article-abstract by guest on January MM Moretti M Peled Adolescent-parent attach 0 0
norme française NF P 82-201 janvier 1979 ascenseurs et monte-charge électriques 0 0
Gnayoro geocritique Comité de rédaction du site et de sa revue littéraire Une équipe d ? universitaires patronnée par M Henri Godard professeur émérite à Paris- IV supervise le site Elle est composée de Mme Sylvie Howlett professeure agrégée de lettres mo 0 0
Expose biodiesel Institut Supérieur de Biotechnologie de Sfax SUJET PRODUCTION DE BIODIESEL PAR BIOTECHNOLOGIE DES MICROALGUES Réalisé par KONE Vanessa SYLLA Amadou Professeur AMOURI Bahi a CPLAN Introduction Biodiesel Biotechnologie des microalgues pour 0 0
Oracle resume Table of Contents Structure Gestion d ? instance Démarrer une instance Arrêter une instance Créer une instance Tablespaces Généralités Rôles Commandes Journalisation Commandes mémo Gestion des utilisateurs Création d ? utilisateur Modi ?cati 0 0
Sur l x27 organisation du champ des mathematiques chinoises 0 0
GESTION DE PRODUCTION Master Génie Logistique – S7 2021/2022 Pr. Najat MESSAOUD 0 0
Annexe 1 Normes et pratiques recommandées internationales Annexe à la Convention relative à l ? aviation civile internationale Licences du personnel La présente édition comprend tous les amendements adoptés par le Conseil avant le mars elle annule et remp 0 0
  • 38
  • 0
  • 0
Afficher les détails des licences
Licence et utilisation
Gratuit pour un usage personnel Aucune attribution requise
Partager