Hi team,
I am struggling with this error when I am doing function onRowRender for the Tableview widget " attempt to index local ‘rowGroup’ (a nil value) stack traceback:"
the code issue error when I am using rowGroup. when I removed it, the code works fine. What is wrong in event.view ??
any help
[lua]
function onRowRender( event )
local row = event.row
local rowGroup = event.view
local idx = row.index or 0
local color = 0
--print(“test”)
row.textObj = display.newText(row, “Row #” … idx, 0, 0, “Helvetica”, 18 )
row.textObj:setTextColor( color )
row.textObj:setReferencePoint( display.CenterLeftReferencePoint )
row.textObj.x = 20
row.textObj.y = rowGroup.contentHeight * 0.35
rowGroup:insert(row.textObj)
end – onRowRender
[/lua]