Basic Customization > User Interface Customization > Presenting Information in the UI > Attribute Customization > Windchill Attribute Customization Overview > Common Attribute Customization Procedures > Customizing Data Acquisition
  
Customizing Data Acquisition
You want to customize the source of the data of an attribute.
Solution Elements
Element
Description
Data Utility ID
A property defined in the Type and Attribute Management utility or component builder. See “Data Utility Id” in Configuration Points for more information.
Need property
A property defined in the Type and Attribute Management utility. See “ Need“ in Configuration Points for more information.
Target Object property
A property defined in the Type and Attribute Management utility. See “Target object” in Configuration Points for more information.
Intended Outcome
The data for an attribute can be fetched from attributes other than the default.
Solution
The combinations of the solution elements required to achieve the different kinds of behavior are listed below:
If you want to….
Configuration
Specify the source of data for a composite attribute or a reference attribute
Example
The value of the state attribute actually comes from State.state. The attribute that is defined on the type is State. When defining the component configuration, to indicate that the source of data for this attribute is State.state, set the value of the Need property of the State attribute to State.state.
Specify a different source of data for a specific to the UI only
When defining the component configuration, set the value of the Need property of the attribute.
Use data from multiple attributes and assemble them using custom logic, to form the value to be displayed in the UI.
Wherever possible, define a calculated attribute.
If the required calculation is outside the scope of the current support provided for calculated attributes, use a custom data utility. When defining the component configuration, set the value of the Need property of the attribute to the list of attributes that need to be fetched for calculating the value.
Example:
attributeConfig.setNeed("name, number, creator");