How to access items created in a row of a tableView

I’m trying to create a table that contains a player name and a small image that indicates the “state” of a player.  All I want to do is to change the alpha value of the image that was added to the row each time the row is touched so that the image is either seen or not.

In my onRowRender event handler, I have added the image via the lines:

local row = event.row

local rowCheck = display.newImage( row, checkMark.png", false)

In my onRowTouch event listener how to I get access to rowCheck (or the image of the row that is touched) to alter its alpha value?  Actually, I have also added text using display.newText and I don’t know how to get access to that either.

Thanks!

I did this by creating a nested-table to store all these values (id, profile image, background image, etc), then access each individual item back based on the id ( event.target.index )

Example :

{

   { id = 1, profile_img = imageObject, background_img = imageBgObject },

   { id = 2, profile_img = imageObject, background_img = imageBgObject },

}

Thats exactly how I am doing it and it works fine. They keep promising a re-render for rows but until then I am storing a large table of references to the objects in the table row.

IIt works fine, have tested upto 1000 rows with multiple images etc in each table row

I did this by creating a nested-table to store all these values (id, profile image, background image, etc), then access each individual item back based on the id ( event.target.index )

Example :

{

   { id = 1, profile_img = imageObject, background_img = imageBgObject },

   { id = 2, profile_img = imageObject, background_img = imageBgObject },

}

Thats exactly how I am doing it and it works fine. They keep promising a re-render for rows but until then I am storing a large table of references to the objects in the table row.

IIt works fine, have tested upto 1000 rows with multiple images etc in each table row