Use of Display and Query business rule

snowlearner
Kilo Expert

Can anyone tell me the use of display and query business rule.

Also whats the difference between the two?

Thanks.

6 REPLIES 6

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Snow,



Please go through the below blog for more info.


If I Wanted A Sink, I'd Go To Home Depot!


Thats about the async, but i am looking for examples over display and query rules


Hi Snow,



  • Display BR runs before the form loads
  • Query BR are used to restrict the records. Ex here.

http://www.servicenowguru.com/scripting/business-rules-scripting/controlling-record-access-before-qu...


srinivasthelu
Tera Guru

Hi Snowlearner,



Display Business Rules are used to reduce the overhead of Ajax calls at client side.Basically you will put all the values in a g_scrachpad object using the display business rules.You can access them at client side.



Where as query business rules are used to restrict the user access to some of the records in a table.Look at this example Scripting in Business Rules - ServiceNow Wiki



Thanks


Srinivas