Skip to main content
10-Marble
January 28, 2026
Solved

On Create Page, not able to grey out an attribute value using API

  • January 28, 2026
  • 1 reply
  • 191 views

Version: Windchill 13.0

 

Use Case: Unable to grey out an attribute using API


Description:

Wrote a Validator for the Color classification attribute to make the value Read only.  

KanchanaDutta_1-1769617718278.png

However, I want to make the Color Classification Attribute similar to Name Extension attribute.

KanchanaDutta_0-1769617591681.png

I did &jcaDebug on the attribute. DefaultDataUtility is showing. Checked for create page wizard jsp page. Also checked for GUIComponent.

Any suggestion on this?

Best answer by TDT

Read Only i.e Unassignable can be controlled using the Visibility feature in Type and Attribute Management.

If you want the attribute to be grayed out, it can be implemented through a data utility.

Use the following API to make the attribute non-editable

AttributeInputComponent attributeInputComponent =
 ((AttributeInputCompositeComponent) object).getValueInputComponent();
attributeInputComponent.setEditable(false);

 

1 reply

16-Pearl
January 28, 2026

Hi @KanchanaDutta,

Is there any specific reason for making the attribute read-only using a validator, when this can be achieved through configuration itself?

Do you want the attribute to be greyed out rather than unassignable?

10-Marble
January 28, 2026

Through Configuration, I checked it under Cascading rules. Was not able to do.

Yes, I want it greyed out rather than Unassignable 

TDT16-PearlAnswer
16-Pearl
January 28, 2026

Read Only i.e Unassignable can be controlled using the Visibility feature in Type and Attribute Management.

If you want the attribute to be grayed out, it can be implemented through a data utility.

Use the following API to make the attribute non-editable

AttributeInputComponent attributeInputComponent =
 ((AttributeInputCompositeComponent) object).getValueInputComponent();
attributeInputComponent.setEditable(false);