Business Rule on Views
I was working on a business rule and noticed while it worked on the form it was not working on a system View.
The Business Rule Scope was set up for Entity so logically this had to work, to my surprise the BR was working as expected on the Form and was not taking effect on the System View.
I started doing some research and saw that many people are writing JavaScript to handle this issue, still I was not convinced that this can be done only with JavaScript.
I approach the problem going back to the basics, for a Business Rule to work on a Form the Condition must contain a field on the form. Why not apply the same logic for The System View?
Went through the System View to see if there was a field I can use for the condition, once I identified the right field I updated the Condition on my business Rule to a Field that was a column on the System View, upon activation of the BR I noticed it was working properly.
So when you face this kind of issue make sure that the fields that you refer on your Business Rule condition are columns on your View and the scope of the Business Rule is Entity.
Thanks for reading this :)
Comments
Post a Comment