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

We are happy to announce the new Windchill Customization board! Learn more.

How to add checkbox "select rows" in customized table.

FelipeOliveira
1-Newbie

How to add checkbox "select rows" in customized table.

Friends,

I need add checkbox "select rows" in my customized table:

checkbox.jpg

The class that I'm moving is as follows:

@Override

public ComponentConfig buildComponentConfig(ComponentParams componentParams)

throws WTException {

ComponentConfigFactory factory = getComponentConfigFactory();

TableConfig table = factory.newTableConfig();

table.setLabel("Lista dos Fornecedores");

table.setView("/../../netmarkets/jsp/t3827/tableFornecedor.jsp");

table.addComponent(factory.newColumnConfig("number", true));

table.addComponent(factory.newColumnConfig("name", true));

table.setMenubarName ("forntablemenubar");

return table;

Can you help me?

Felipe Oliveira.

1 ACCEPTED SOLUTION

Accepted Solutions

table.setSelectable(true);

View solution in original post

2 REPLIES 2

table.setSelectable(true);

Thank you Vasiliy,

Besides this, I also added the counter:


table.setShowCount(true);

It was perfect .

Felipe.

Top Tags