cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

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

VP_10061679
4-Participant

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

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.

ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

11 REPLIES 11
avillanueva
22-Sapphire II
(To:VP_10061679)

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.

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
22-Sapphire II
(To:VP_10061679)

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

Then i did not find any lady bug for traffic lights, please see below screen shots all highlighted one is 'NBSPDataUtility' and for Traffic lights no lady bug Showing 😞

 

VP_10061679_0-1707482309028.png

 

Sometimes it is tricky to find the correct DU. 

PetrH

avillanueva
22-Sapphire II
(To:VP_10061679)

Check out page 715 of the customizer's guide. I think it talks about your use case. There should be some examples in carambola examples.

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

 

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

Thankyou ,

 

that's working now .

 

columnConfig = localComponentConfigFactory.newColumnConfig();

columnConfig.setDataUtilityId("graphicalAttribute");

columnConfig.setId("gdstate");

columnConfig.setAutoSize(true);

tableConfig.addComponent(columnConfig);

 

VP_10061679_1-1708076030324.png

 


 

 

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

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

 

 

Announcements


Top Tags