If both client script and business rule are applied on a table, which one will get executed first?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-03-2020 02:29 PM
I read the answer as a business rule first. I feel it does not makes sense unless we know the context. I want to make sure this is right.
For example, if I query for the incident, these are things happens in the order
1. Before query business rule 2. After query business rule 3 After page loads onload() and other client scripts.
So if business rules displays a message, it should display the message from before query, the message from after query, alert from onload
For the second scenario after the submission of the update of a record
1. onsubmit() from client script 2. Before update of business rule 3. After update of business rule
Is it correct? So the answer could be
1. First business rule and then client scritp code IN THE CASE OF DISPLAYING RECORD
2. First client script and then business rule IN THE CASE OF UPDATE OF RECORD.
Let me know if you agree. Appreciate it.
- 2,282 Views

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-03-2020 02:41 PM
Yes Giri your understanding for both the scenarios are correct.
Only thing would like to update is there isn't anything as After Query Business rule its only Before Query business rule whilst rest of your understanding is correct.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-03-2020 02:46 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-03-2020 03:25 PM
Hi Giri,
Want to add 2 points, one was already added by Jaspal, There is no After Query business rule. You fill find the option to create one but that doesn't make any sense because records are already queried and displayed in the list.
Second one is Display Business Rule which was missed and which get's executed when user requests a form record, so just before onLoad client script executes, Display business rule gets executed. To know more about Display business rule you can navigate to the below link:
Hope it helps...!
Regards,
Alok