Skip to Content

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 a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

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

    Try this..

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

    myColumn.setEncode(false);

    myColumn.setType(TableColumnType.LINK);

    Lakshmi

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.