Skip to main content
4-Participant
February 9, 2024
Solved

Traffic attributes are not display correctly in custom table view its only showing number (1,2,3)

  • February 9, 2024
  • 2 replies
  • 2998 views

I am using Windchill PDMLink Release 11.1 and Datecode with CPS M020-CPS12

Hi Team,
I am able to create Traffic attribute and it is showing correctly on part information page but when i am using same attribute on customize table in a column it is only showing number (1,2,3) instead of graphical view. Please help to resolve it please find screen shots.

Best answer by HelesicPetr

Hi @VP_10061679 

DataUtility is com.ptc.core.components.factory.dataUtilities.GraphicalAttributeDataUtility

defined in a components properties as 

wt.services/svc/default/com.ptc.core.components.descriptor.DataUtility/graphicalAttribute/java.lang.Object/0=com.ptc.core.components.factory.dataUtilities.GraphicalAttributeDataUtility/duplicate

 

So use following dataUtilityID assign method

configRow.setDataUtilityId("graphicalAttribute");

 

PetrH

2 replies

avillanueva
23-Emerald I
23-Emerald I
February 9, 2024

You might have neglected to call for the right data utility. When viewing the correct view on the part info page, add "&jcaDebug=true" to URL. You should see a bunch of lady bugs appear. Look at the one next to the traffic attribute and it should show the data utility. That needs to be called out in your table definition.

4-Participant
February 9, 2024

Hi 

Thankyou for reply. That datautility is showing on multiple Lady Bugs. please see below two 

 

VP_10061679_2-1707481660563.png

 

VP_10061679_3-1707481755495.png

 

Data Utility :com.ptc.core.components.factory.dataUtilities.NBSPDataUtility  

avillanueva
23-Emerald I
23-Emerald I
February 9, 2024

Not sure that is the right one, NBSPDataUtility I think is just spaces.

HelesicPetr
22-Sapphire II
22-Sapphire II
February 9, 2024

HI @VP_10061679 

You need to use correct data utility in your custom table.

For example, If you use just default one, then the numbers are correctly shown. 

You need to use data utility that returns an image based on the values. 

So find the correct OOTB DU to show the lights or create own one.

PetrH

4-Participant
February 14, 2024

Thanks for reply.

I have created a table builder as below and configure the graphical attribute named "gdstate"

VP_10061679_0-1707924918099.pngVP_10061679_1-1707924977386.png

 here Graphical attribute "gdstate" is working correct with other ootb table but not working with custom table please see below screen shots.

working correct with below OOTB table

VP_10061679_4-1707925338242.png

 

but with custom table its not working please see below 

VP_10061679_3-1707925277223.png

 

Could you please let me know how can i extends the data utility so it should work