Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
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.
Solved! Go to Solution.
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
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
Data Utility :com.ptc.core.components.factory.dataUtilities.NBSPDataUtility
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 😞
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"
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
but with custom table its not working please see below
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);
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"
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
but with custom table its not working please see below
Could you please let me know how can i extends the data utility so it should work