Skip to main content
12-Amethyst
May 8, 2026
Question

Custom view for picker - Changing the label

  • May 8, 2026
  • 2 replies
  • 43 views

I have a created a picker for WTpart and also created a new view using jcaconfigurable table to show only name and number.

I am looking to change Number column to display as Similar Number,Is it possible to achive this?

Thank you

2 replies

avillanueva
23-Emerald I
23-Emerald I
May 8, 2026

Do you have a screen shot of the UI?

12-Amethyst
May 8, 2026

Hi

Please see attached,I want to change Number to Similar Number

17-Peridot
May 11, 2026

Hi ​@Srinivas_256 ,

Which method are you using to define the columns?

buildComponentConfig or getOOTBTableViews

12-Amethyst
May 13, 2026

Hi ​@TDT 

I used OOTBTableviews,attached code for reference.Yesterday I noticed those APIs are deprecated,but there documentation is not updated though.Now I am looking for replaced APIS to get custom views along with column name change.

 

package com.custom.utils;

import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.Vector;

import com.ptc.core.components.descriptor.DescriptorConstants;
import com.ptc.core.htmlcomp.components.JCAConfigurableTable;
import com.ptc.core.htmlcomp.tableview.TableColumnDefinition;
import com.ptc.core.htmlcomp.tableview.TableViewDescriptor;

import wt.part.WTPart;
import wt.util.WTException;

public class CustomizedClassificationView extends JCAConfigurableTable {

@Override
public Class<?>[] getClassTypes() {
return new Class<?>[] { WTPart.class };
}

@Override
public List<?> getSpecialTableColumnsAttrDefinition(Locale locale) {
return new ArrayList<Object>();
}

@Override
public List<TableViewDescriptor> getOOTBTableViews(String tableId, Locale locale) throws WTException {

List<TableViewDescriptor> result = new ArrayList<TableViewDescriptor>();

Vector<TableColumnDefinition> columns = new Vector<TableColumnDefinition>();

// Number FIRST
columns.add(TableColumnDefinition.newTableColumnDefinition(
DescriptorConstants.ColumnIdentifiers.NUMBER, false));

// Name SECOND
columns.add(TableColumnDefinition.newTableColumnDefinition(
DescriptorConstants.ColumnIdentifiers.NAME, false));

// Create view
result.add(TableViewDescriptor.newTableViewDescriptor(
"Custom Classification View",
tableId,
true,
true,
columns,
null,
true,
"Number and Name Classificationonly"));

return result;
}

/**
* Sort by NUMBER
*/
@Override
public String getDefaultSortColumn() {
return DescriptorConstants.ColumnIdentifiers.NUMBER;
}

@Override
public String getOOTBActiveViewName() {
return "Custom Classification View";
}

@Override
public String getLabel(Locale locale) {
return "Classification Search Results";
}
}