Problem inserting tableview into sceneGroup

I’m building a scene with composer that has a tableview in it.

Creating the tableview goes with no problem, but when I try to insert it into the sceneGroup, the app crashes with an error:

ERROR: table expected. If this is a function call, you might have used '.' instead of ':'

Here is my code, called inside scene:create():

-- create tableview local tableView = widget.newTableView( { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; left = 0, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; top = 0, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width = display.actualContentWidth, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; height = display.actualContentHeight, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; onRowRender = onRowRender, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; onRowTouch = onRowTouch, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; listener = scrollListener }) -- Insert 40 rows &nbsp;&nbsp;&nbsp; for i = 1, 40 do &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; local isCategory = false &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; local rowHeight = 150 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; local rowColor = { default={1,1,1}, over={1,0.5,0,0.2} } &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; local lineColor = { 0.5, 0.5, 0.5 } &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Insert a row into the tableView &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tableView:insertRow( &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; isCategory = false, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rowHeight = rowHeight, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rowColor = rowColor, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lineColor = lineColor &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ) &nbsp;&nbsp;&nbsp; end &nbsp;&nbsp;&nbsp; sceneGroup:insert(tableview) -- \<--APP CRASHES HERE

Check your spelling.   Case matters. i.e. Lua is case-sensitive

Thanks! can’t believe i missed that

Check your spelling.   Case matters. i.e. Lua is case-sensitive

Thanks! can’t believe i missed that