I am attempting to reload the TableView widget when the user selects a row. The table view is instantiated in the enterScene function. It is basically like this:
local table_view
local function on_row_touch(event)
local row = event.target
if row ~= nil then
table_view:reloadData()
end
end
I get the following error:
attempt to call ‘reloadData’ (a nil value)
Any idea what’s going on here?