Skip to Content
author's profile photo
Former Member

Links within the Table View Cells

Hello,

I want to put links in each cell of one of the columns of my tableview. Please see code below. For some reason, when I put the link on the header, it works fine. But when I but the link on the detail, it displays the link as a text on the cell.

Any help will be appreciated.

Thanks

Mike

-


int colCount;

colCount = 5;

AbstractDataType headerTable[] = new AbstractDataType[colCount];

headerTable[0] = new DataString(_res.getString("Cash Award Type"));

headerTable[1] = new DataString(_res.getString("Date Paid"));

headerTable[2] = new DataString(_res.getString("Amount"));

headerTable[3] = new DataString(_res.getString("Currency"));

headerTable[4] = new DataString(_res.getString("Description"));

headerTable[5] = new DataString(_res.getString(Google));

AbstractDataType dataTable[][] = new AbstractDataType[cMVP.size()][colCount];

for(int i = 0; i < cMVP.size(); i++)

{

String vLink = "Google";

Hrwpc_S_Al_MVPType mvprec = cMVP.getHrwpc_S_Al_MVPType(i);

dataTable<i>[0] = new DataString(mvprec.getSubid());

dataTable<i>[1] = new DataDate(mvprec.getZdate());

dataTable<i>[2] = new DataString(mvprec.getBetrg());

dataTable<i>[3] = new DataString(mvprec.getWaers());

dataTable<i>[4] = new DataString(mvprec.getCom0());

dataTable<i>[5] = new DataString(vLink);

}

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Jul 01, 2004 at 08:32 PM

    Try this..

    TableColumn myColumn = meetingRoomModel.getColumn("ColName");

    myColumn.setEncode(false);

    myColumn.setType(TableColumnType.LINK);

    Lakshmi

    Add comment
    10|10000 characters needed characters exceeded