Alex,
“event.target.parent._data” is not working for me inside of onRowTouch (ORT)
Here is what I’m doing:
local tv = widget.newTableView(tableParams)
tv._data = data – keep ref to the data passed
inside of ORT, I try:
local rowData = event.target.parent._data[event.row.index]
and I get:
attempt to index field ‘_data’ (a nil value)
I just downloaded the newest daily build so I know it’s not a version problem…about to dig through the source code now
ok, here is the problem:
from line 394 in widget_tableview.lua, you have:
local newEvent =
{
phase = “release”,
target = event.target,
row = self._targetRow,
}
event.target != tableview
and the row (self._targetRow) doesn’t have any attribute pointing to it’s parent either
I can fix my version but then I void the warrantee ;-)
feedback requested!!
Thx,
D
PS please use a function to create the event record so it’s consistent throughout the module and does not need to be edited in 6 different places…thanks, you guys rock!