Community in read only mode June 18 & 19
This community will be set in READ ONLY mode for a while on Tuesday June 18 into Wednesday June 19 while we import content and users from our Micro Focus Forums community site. MORE INFORMATION
Highlighted
mike_se Contributor.
Contributor.
162 views

PPM Support Tip: For UI Rules to work, default for Field must be Visible

A new KCS article was published: KM00445964

 

When a Field is set to not Display, cannot use User Interface (UI) Rules to make Visible because the element does not exist


When using UI Rules in Project and Portfolio Management (PPM), the "setFieldVisible(true)" will only work if the Field is set to "Display:Yes" in the Status Dependencies tab.

This is because if the Status Dependency is set to "Display: No", the Field basically does not exist for the Rules, so no Rule can be run on it.

In order to circumvent this behavior (namely wanting to set a Field to not be Visible at some point and then set it to Visible again without playing with Status Dependencies), create a Rule, on Page Load for example, in which can use the parameter "setFieldVisible(false)". This would then make sure that the Field is always false on every Page Load unless another Rule sets it to Visible.

Both setFieldEditable and setFieldRequired will also behave the same if the Status Dependency of the Field is set to "Display:No". If it is set to "Display:Yes", will work as expected.

“HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.”
Labels (1)
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.