How change Colors and Text label in protected state

book

Article ID: 103229

calendar_today

Updated On:

Products

CA Plex

Issue/Introduction

PLEX doesn't allow me to change the colors of the labels and text on protected state.

Not able to change the colors of the labels and text on protected state.

Environment

Windows

Resolution

Change the Panel field’s disable property ,within protected state in your standard layer, as follows: 
Set Disabled property to ‘No’ for Non-Key fields. 
Field -> Disabled (No) 
Field.Edit -> Disabled (No) 
Re-generating modified function after above changes done. 

Note: ‘Non-Key Field’, changing the ‘Disabled’ property to ‘No’ for ‘Key Field’ will fix the problem. But this is intended to make ‘Key Field’ protected if a user is not supposed to update the ‘Key Field’ value. ‘Key Field’ gets protected state properties (e.g. Disabled=Yes, Mode=Read Only etc. as default values) applied, and this guards the key field(s) from being updated by mistake. So, it’s recommended to keep the ‘Key Field’ as is and apply the aforementioned workaround to ‘Non-Key Field’ only.

Additional Information

Panel’s field is getting disabled property set to ‘Yes’ – this happens for field and field’s edit control as well. As control’s disable property is overriding the text color property for protected state, control gets disabled and text color does not show as expected. 
‘Non-Key Field’, changing the ‘Disabled’ property to ‘No’ for ‘Key Field’ will fix the problem. But this is intended to make ‘Key Field’ protected if a user is not supposed to update the ‘Key Field’ value. ‘Key Field’ gets protected state properties (e.g. Disabled=Yes, Mode=Read Only etc. as default values) applied, and this guards the key field(s) from being updated by mistake. So, it’s recommended to keep the ‘Key Field’ as is and apply the aforementioned workaround to ‘Non-Key Field’ only.