cancel
Showing results for 
Search instead for 
Did you mean: 

TableView link

Former Member
0 Kudos

Hi gurus!

How to create a specific link for each cell of a column in a TableView?

ps. The elements of this column are placed automatically in the TableView by the following code:

ProxyListTableViewModel proxyList = new ProxyListTableViewModel(list, true);

TableView t = new TableView("Zhrf_Pesquisa_Servidor", proxyList);

where Zhrf_Pesquisa_Servidor is a "R3" RFC. The maximum I obtained was the following:

t.setOnCellClick(1,"onClick");

however this does not works on a cell separately, but in the whole column.

Best Regards!

Alex

Accepted Solutions (1)

Accepted Solutions (1)

deepa_prabhu
Participant
0 Kudos

Hi Alex,

Generally the 'onCellClick' event is set for an entire column. To solve this , I think you can get the column

in which you want each cell to act as a link and then

set the cell type for the column as LINK.

t.setCellType(int rowIndex,

int colIndex,

TableColumnType.LINK).

Hope this helps.

Please reward points if my suggestion helped you.

Thanks and regards

Deepa

Former Member
0 Kudos

Thank you Deepa, but it not solves my problem yet. The especific type cell was defined, but I do not write yet any link for it. What can I do for, when I click in this cell, the execution be directed to a especific method in my code?

Thank you!

Answers (1)

Answers (1)

Former Member
0 Kudos

Please, I need this answer as soon as possible. Somebody can help me?