where will g_form, gliderecord, glide system is used.

sunnampalli
Kilo Contributor

where will   g_form, glide record, glide system is used. that means where will we use these in ui policies or client scripts or business rules or ui actions like this and please refer that are client side or server side scripting. Thanks in advance

4 REPLIES 4

Brad Tilton
ServiceNow Employee
ServiceNow Employee

g_form - client side and can be called from ui policies and client scripts


glidesystem - server side and called primarily from business rules and other server side scripts


gliderecord - primarily called from server side scripts, although there is a slimmed down client side gliderecord api.



https://developer.servicenow.com/app.do#!/api_doc?v=helsinki&id=c_GlideFormAPI


https://developer.servicenow.com/app.do#!/api_doc?v=helsinki&id=c_GlideSystemAPI


https://developer.servicenow.com/app.do#!/api_doc?v=helsinki&id=c_GlideRecordClientSideAPI


http://wiki.servicenow.com/index.php?title=Client_Side_GlideRecord


Rohini Peraval1
Tera Contributor

Hi SathyaNarayana,



1)g_form is always used at client side scripts.


2)GlideRecord to be used at server side scripts like script includes, Business Rules


3)Glide System to be used at server side.


Please find the below URL's for reference.


http://wiki.servicenow.com/index.php?title=GlideForm_(g_form)#gsc.tab=0


https://wiki.servicenow.com/?title=GlideRecord#gsc.tab=0


http://wiki.servicenow.com/?title=GlideSystem#gsc.tab=0


http://wiki.servicenow.com/index.php?title=Differences_Among_Scripts#gsc.tab=0



Hope this info will help you.


Thanks,


Rohini.P


dasthu1
Kilo Expert

Hi Sathya Narayan,



        g_form: can be used in client scripts.[GlideForm.js and g_form are only used on the client (for instance, the web browser)]



GlideRecord: GlideRecord is a special Java class (GlideRecord.java) that can be used in JavaScript exactly as if it was a native JavaScript class.


  • is used for database operations instead of writing SQL queries.
  • is an object that contains zero or more records from one table. Another way to say this is that a GlideRecord is an ordered list.


Glide System: The GlideSystem (referred to by the variable name 'gs' in Business Rules) provides a number of convenient methods to get information about the system, the current logged in user, etc. For example, the method addInfoMessage() permits communication with the user.



Mark Correct if it solved your issue or hit Like and Helpful if you find my response worthy.




Thanks & Regards,


Dasthagiri K


u will find some more information using this below links



http://wiki.servicenow.com/index.php?title=GlideForm_(g_form)#gsc.tab=0


https://wiki.servicenow.com/?title=GlideRecord#gsc.tab=0


http://wiki.servicenow.com/?title=GlideSystem#gsc.tab=0




Mark Correct if it solved your issue or hit Like and Helpful if you find my response worthy.




Thanks & Regards,


Dasthagiri K