Project and Portfolio Management Practitioners Forum
cancel

UI Rules in PPM 8.02

SOLVED
Go to solution
Highlighted
PPMRam
Super Contributor.

UI Rules in PPM 8.02

Hi,

 

How to apply UI rules in PPM for the below case: 

 

Field contains 3 drop down list of values. Depending on the field value other fields should be visible and non visible. Is there any way to write single rule to apply visibility and non visibility by writing as setFieldVisible(true); setFieldVisible(false); setFieldVisible(false) in logic section and selecting the other fields in Result Fields section. Please help on this.

 

 

1 REPLY
Jason Nichols K
Acclaimed Contributor.
Solution

Re: UI Rules in PPM 8.02

There's no way to do it with a single UI rule.  The whole point of the UI Rules is to apply the UI Rules (setFieldVisible, setFieldEditable, etc) to the target fields.  Whatever UI Rule(s) you put into the Logic box applies to all fields in the Results sections.  The UI Rules are just JavaScript functions that run in the order listed in the Logic box.  So, if you tried to use setFieldVisible(true); setFieldVisible(false) you would end up with all of the fields being hidden as this would have been the last function to run.  To acheive the results you are looking for, you will need a series of Rules created to handle the different conditions/results that you need.

 

Here are some possible Rules you would need to create:

Value 1 - Required Fields set (fc)

Value 1 - Hide other Fields (fc)

Value 1 - Required Field set (pl)

Value 1 - Hide other Fields (pl)

Value 2 - Required Fields set (fc)

Value 2 - Hide other Fields (fc)

Value 2 - Required Field set (pl)

Value 2 - Hide other Fields (pl)

Value 3 - Required Fields set (fc)

Value 3 - Hide other Fields (fc)

Value 3 - Required Field set (pl)

Value 3 - Hide other Fields (pl)