# Using self inside a Tableview callback

**URL:** <https://forums.solar2d.com/t/using-self-inside-a-tableview-callback/343509>\
**Category:** Widgets\
**Created:** [March 18, 2017, 11:14am UTC](https://forums.solar2d.com/t/using-self-inside-a-tableview-callback/343509 "2017-03-18T11:14:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lsoaresesilva7](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/l/c5a1d2/32.png) [@lsoaresesilva7](https://forums.solar2d.com/u/lsoaresesilva7)\
**Post date:** [March 18, 2017, 11:14am UTC](https://forums.solar2d.com/t/using-self-inside-a-tableview-callback/343509/1 "2017-03-18T11:14:46Z")

</div>

Hello, I have the folowing code (just wrote, might have coding problemas, but to explain the problem is ok):

```
t = { } function t:new() &nbsp; &nbsp; local myobj = {} &nbsp; &nbsp;&nbsp;myobj.exampleAttribute = 2 &nbsp; &nbsp; myobj.datatable = widget.newTableView{ ... onRowRender = renderRow} &nbsp; &nbsp; setmetamodel(myobj, {\_\_index=t}) end function renderRow() &nbsp; &nbsp; -- How to access exampleAttribute ? &nbsp; &nbsp; -- I cannot access self here as it is not a metamethod&nbsp; &nbsp; &nbsp; -- I can access t, but I'm working with metamodels, and wanted to use the "instance" return by new end

```

How to provide access to self as the callback is not a metamethod?
