Accesing data inside Rendered Rown.

Hi guys, so im populating a some rowns with the ‘onRowRender’ function and its populating OK.

With the onRowTouch(event) function i can call and print the exact ‘row.index’ im Tapping, but i need to access what is really is INSIDE the row im tapping.

I can’t figure it out.

PS: my rows have 2 columns, one with String and the other With an INT. For now all i can do is just print the tapped row index.

local function onRowTouch( event ) local phase = event.phase local row = event.target if ( "release" == phase ) then print("Tapped "..row.index) --prints the tap row index , print( event.target.index ) -- prints the tap row index, print( event.target.id )--prints the tap row index end end

Thanks.

PD: Sorry spelled Row wrong… cant seem to edit title…

The “row” is a display.newGroup(). I generally add my objects to the row in addition to inserting them into the row:

row.title = display.newText(…)

row:insert( row.title )

Then you have a known reference to the title by accessing row.title (which you created).

Rob

The “row” is a display.newGroup(). I generally add my objects to the row in addition to inserting them into the row:

row.title = display.newText(…)

row:insert( row.title )

Then you have a known reference to the title by accessing row.title (which you created).

Rob