what is the relation b/w UI Scripts, UI Pages, UI Macro and formatter ? Please explain clearly and don't mention wiki.servicenow

gangasatishgurr
Kilo Expert

UI Scripts, UI Pages

1 ACCEPTED SOLUTION

Harish Murikina
Tera Guru

Ui Script : can call each and every page


suppose: jquery.min is ui script it cotains jquery library so when ever you call $j . the ui script can call.



Ui Pages : we can use it for display glide window



Ui Formatter and ui macro : we dont have data type "Macro" on tables like incident, problem change


so create a macro then create formatter in that give macro name as formatter so you can able to add that macro on incident table.


View solution in original post

3 REPLIES 3

Harish Murikina
Tera Guru

Ui Script : can call each and every page


suppose: jquery.min is ui script it cotains jquery library so when ever you call $j . the ui script can call.



Ui Pages : we can use it for display glide window



Ui Formatter and ui macro : we dont have data type "Macro" on tables like incident, problem change


so create a macro then create formatter in that give macro name as formatter so you can able to add that macro on incident table.


Brad Tilton
ServiceNow Employee
ServiceNow Employee

The wiki really is a great resource for this info, but here's a quick overview:



UI Script: Client side javascript that is callable in different places in ServiceNow. Mainly from a jelly page.



UI Pages, UI Macros, and Formatters are all XML/Jelly pages and the different is how they're called.


UI Pages - You call this page through a url: pagename.do


UI Macro - You call this from a ui page, other macro, or formatter, or from a catalog item or record producer.


Formatter - You call this from a form in SerivceNow.


Mukesh Sharma
Giga Expert

well, the definition and the uses of these components you can find it in wiki.since you are asking for a relation in these, then .



UI Script : UI Script is a javascript that you can call from other script like client side scripting and HTML and jelly content like UI pages and UI Macro. so we can say that its a reusable code.



UI pages : as Brad Tilton (Cloud Sherpas)said you can call these pages with pagename .do .you can Include your UI Scripts here for some   desired output .



UI Macro : Macros are basically not a full UI page but they will be a component.These components you can add in catalog items , record producers, othe UI pages. so basically they are reusable components.




Thanks,


Mukesh