Basic Customization > User Interface Customization > Presenting Information in the UI > Creating Custom Graphical Representations > Performance Considerations
  
Performance Considerations
Please be aware that since graphical representations are rendered throughout the Windchill user interface, they have the potential to impact the performance of rendering attributes in the UI. In particular if you define many graphical attributes and then create a custom table view that contains many columns of graphical attributes, rendering performance of the table may potentially suffer.
For this reason it is recommended to keep performance in mind as you implement your custom graphical representation.
Customization Sample Code
There are example graphical attributes and example tables that support graphical representations.
There are two example tables in the customization area of Windchill that display graphical attributes. The graphical attributes are defined on the example sub types of Part, called “Novel” and “Slider”. Those example types and some example instances of those types are loaded automatically when the site admin visits a customization example that needs them.
You will see the instances of the example types in the configurable and non-configurable example tables available in the Windchill product by navigating to Customization > Component Catalog > Graphical Attributes.
The “exampleTrafficLight” calculated integer attribute is configured as a graphical attribute on both Novel and Slider types (subtypes of Document/Literature and Part/Widget). Both attributes are configured with the Graphical Representation of “Traffic Light” and with the formula
state.state=="INWORK"?1:((state.state=="CANCELLED")?0:2)
This means when the object is “in work” the traffic light is yellow, when it is “cancelled” the traffic light is red, anything else (ie. “Released”) and the traffic light is green.
Similarly the “exampleProgressBar” and “examplePercentComplete” attributes are configured to display as a progress bar and as a percent complete respectively.