# Accesing data inside Rendered Rown.

**URL:** <https://forums.solar2d.com/t/accesing-data-inside-rendered-rown/335541>\
**Category:** Widgets\
**Created:** [August 30, 2015, 12:07pm UTC](https://forums.solar2d.com/t/accesing-data-inside-rendered-rown/335541 "2015-08-30T12:07:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DEBUG404](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/d/eb8c5e/32.png) [@DEBUG404](https://forums.solar2d.com/u/DEBUG404)\
**Post date:** [August 30, 2015, 12:07pm UTC](https://forums.solar2d.com/t/accesing-data-inside-rendered-rown/335541/1 "2015-08-30T12:07:04Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [August 30, 2015, 6:54pm UTC](https://forums.solar2d.com/t/accesing-data-inside-rendered-rown/335541/2 "2015-08-30T18:54:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [August 30, 2015, 6:54pm UTC](https://forums.solar2d.com/t/accesing-data-inside-rendered-rown/335541/3 "2015-08-30T18:54:18Z")

</div>

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
