how to identify if a field has ui policy or business rule etc. ??

sridharan
Giga Contributor

I am unable to find Web Services check box in a Business Rule form, however it can be seen in Form Layout list.

I feel like if it has any business rule or ui policy to appear in certain condition !!

Can someone let me know how to identify if a field has ui policy or business rule or any otherconditions   ??

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Just because a field is on the table, but not on the form doesn't mean there is something wrong. It may not be on the form at all.


Start by looking to see if the field is even placed on the form (use Configure> Form Design to check.)



If it is on the form and not being displayed (or you see it quickly and then it gets hidden) it is likely either a UI policy or client script. You'll have to do some manual inspection for that.



If it's on the form and then gets hidden after you do something, it's definitely a UI policy or client script and you can use the field watcher to get more info.


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


View solution in original post

6 REPLIES 6

pardhu3
Giga Contributor

Hi   Sridharan,



Please personalize your form and make sure that the specified field is in form.


randrews
Tera Guru

ok several ways to find the information you are looking for.. for UI policies i created a relationship..



UI Policy Action --> Dictionary Entry



applies to table dictionary Entry(sys_dictionary)


queries from table UI policy Action (sys_ui_policy_action)



query with



current.addQuery('field', parent.element);



_____________________________________________



now i added that as a related list to the dictionary entry for fields and arranged the columns this gives me IN THE VARIABLE a list of all ui policies it is in an action for.. makes it much easier to find when a field is misbehaving due to a show hide in a policy action...



___________________________________________________________



for br's and client scripts just open the table configure all and go to the appropriate tab add to the filter script contains and the field name.. this will show you all the br's/client scripts that directly affect the field...



if you STILL can't find it.. it might be in a script for a ui policy .. SO... go to the policy tab and add a filter of execute if true contains.. and the field name


then repeat looking in the execute if false



if you STILL can't find it.. export a list of all active br's client scripts and policies...


disable ALL br's/client scripts/ui policies



enable all br's and reload the form.. verify while it isn't right the field is behaving right...



enable all client scripts... see if the field behaves right



enable all policies...




somewhere in there the field SHOULD stop behaving right <hiding in your case when you enabled all client scripts>



when that happens i would have disabled half the client scripts... using elimination lock it down to the ONE client script that makes the field hide.. .and enable all policies to ensure that is the ONLY thing affecting it...



now you just have to figure out what that script is doing and why...



hope that helps.