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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Translate the entire conversation x

Use of getSpecialTableColumnsAttrDefinition Method While creating Table Views from Table Builders?

TDT
16-Pearl
16-Pearl

Use of getSpecialTableColumnsAttrDefinition Method While creating Table Views from Table Builders?

The PTC Help Center recommends overriding the getSpecialTableColumnsAttrDefinition() method to include new attributes.
However, when I click "Customize" in the table view, all attributes for the selected object type already appear under "Set Column Display."

Is there a specific reason or scenario where overriding getSpecialTableColumnsAttrDefinition() is needed?

 

 

1 REPLY 1
TDT
16-Pearl
16-Pearl
(To:TDT)

The getSpecialTableColumnsAttrDefinition method is used to define a custom table column that is not stored in or related to any object, and to display its value using a data utility

 

The getSpecialTableColumnsAttrDefinition is used along with getOOTBTableViews

 

@Override
public List<?> getSpecialTableColumnsAttrDefinition(Locale locale) {
 
ArrayList localArrayList = new ArrayList();
localArrayList.add(AttributeHelper.newStringAttribute("customAttribute",
WTMessage.getLocalizedMessage(TestResource.class.getName(), "CUSTOM_ATTRIBUTE", null, locale)));
return localArrayList;
}
 
The customAttribute is used as the selector value to register the data utility.
 
 
Announcements
Top Tags