I know you can pass param to scenes but can you send the selected row fomr a list view to a scene? Something like this
local function SendParam( event )
local row = event.row
print("Row " …row.index)
local options =
{
effect = “fade”,
time = 400,
params =
{
billname = evacRecs[row.index].bname,
bill_id = evacRecs[row.index].id,
}
}
storyboard.gotoScene( “view1”, options )
end
Of course it doesn’t work because it doesn’t like row. With error “Attempts to index local ‘row’ (a nil value’)”
I am trying to send it from main.lua to a scene, is it possible? I am using a table listerner, is that the problem?