Example 1

If the user sets the Priority field on a request of this type to "Critical," you want the field background to change to red to make it highly visible to users who view the request. To do this, you must configure four rules:

Rule 1:

The positive case, in which the Priority field value changes to Critical based on some other value.

Event: Apply on field change

Dependency: Priority = "Critical"

Rule logic: setFieldStyle("redBackground")

Result Fields: Priority

where "redBackground" is a CSS class defined in the RequestRulesUserCss.css file in the <PPM_Home>/server/<PPM_Server_Name>/deploy/itg.war/web/knta/crt/css directory on the PPM Server, as follows:

.redBackground { background:red; }

Rule 2:

The negative case, in which the Priority field changes from "Critical" to some other value.

Event: Apply on field change

Dependency: Priority != "Critical"

Rule logic: setFieldStyle("whiteBackground")

Result Fields: Priority

where "whiteBackground" is a CSS class defined in the RequestRulesUserCss.css file in the <PPM_Home>/server/<PPM_Server_Name>/deploy/itg.war/web/knta/crt/css directory on the PPM Server, as follows:

.whiteBackground { background:white; }

Rule 3:

Once the request detail page is reloaded, rules #1 and #2 no longer apply (since the Priority field is not changing). So, you must define the same rules for the "Apply on page load" event.

Event: Apply on page load

Dependency: Priority = "Critical"

Rule logic: setFieldStyle("redBackground")

Result Fields: Priority

where "redBackground" is a CSS class defined in the RequestRulesUserCss.css file in the <PPM_Home>/server/<PPM_Server_Name>/deploy/itg.war/web/knta/crt/css directory on the PPM Server, as follows:

.redBackground { background:red; }

Rule 4:

The negative case for rule 3.

Event: Apply on page load

Dependency: Priority != "Critical"

Rule logic: setFieldStyle("whiteBackground")

Result Fields: Priority

where "whiteBackground" is a CSS class defined in the RequestRulesUserCss.css file in the <PPM_Home>/server/<PPM_Server_Name>/deploy/itg.war/web/knta/crt/css directory on the PPM Server, as follows:

.whiteBackground { background:white; }

Note that the UI rules you configure apply only to fields. You cannot, for instance, set the style for an entire page. Any logic you add to the Logic text box applies to the fields listed in the Results Fields table. (The only exceptions are showing an alert and adding a resource, which do not apply to any field in particular.)