How to set the default value for a Boolean attribute?
How to set the default value for a Boolean attribute? It is displaying "This Attribute does not support default values" but Boolean type support default values.

How to set the default value for a Boolean attribute? It is displaying "This Attribute does not support default values" but Boolean type support default values.

Hi Bhagirath,
I don't think you can change the default value from Type Manager for this attribute. If you want to customize, there is a specific dataUtility used to render the Boolean component you can extend PlanApprovalReqDataUtility and override the getDataValue method and cast the object to BooleanInputComponent and then setValue accordingly. Remember, if there are related changeactivities the value is set OOTB so you may want to check if the value is already set or not. OOTB dataUtlity is registered in com/ptc/qualitymanagement/capa/xconfs/CAPA.datautilities.properties.xconf.
Regards,
Bhushan
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.