TableView with composer

I seem to be running into an issue with tableView and groups. I can build a tableview without composer just fine. But when I add scenes the tableView creates the rows but all in the information in the row is blank.

Here is my code for rowRender

 

local tableView = widget.newTableView {     left = 5,     top = 5,     height = 330,     width = 300,     onRowRender = onRowRender,     onRowTouch = onRowTouch,     listener = scrollListener   }     sceneGroup:insert(tableView)   local function onRowRender( event ) -- Get reference to the row group local row = event.row -- Cache the row "contentWidth" and "contentHeight" because the row bounds can change as children objects are added local rowHeight = row.contentHeight local rowWidth = row.contentWidth local rowTitle = display.newText( row, j[row.index].imageName , 0, 0, nil, 14 ) rowTitle:setFillColor( 0 ) -- Align the label left and vertically centered rowTitle.anchorX = 0 rowTitle.x = 100 rowTitle.y = rowHeight \* 0.25 local rowTitle2 = display.newText( row, j[row.index].imageTwitter , 0, 0, nil, 14 ) rowTitle2:setFillColor( 0 ) -- Align the label left and vertically centered rowTitle2.anchorX = 0 rowTitle2.x = 100 rowTitle2.y = rowHeight \* 0.5 local rowTitle3 = display.newText( row, j[row.index].imageWeb , 0, 0, nil, 14 ) rowTitle3:setFillColor( 0 ) -- Align the label left and vertically centered rowTitle3.anchorX = 0 rowTitle3.x = 100 rowTitle3.y = rowHeight \* 0.75 local rowImage=display.newImageRect( row, j[row.index].imageUrl, system.TemporaryDirectory, 100, 100 ) rowImage.x=25 rowImage.y=rowHeight\*.5 end  

Am i missing something?

The function needs to be defined before you call widget.newTableView().

At the point in your code where widget.newTableView is called, “onRowRender” is nil.

Rob

Thanks Rob you are awesome.

The function needs to be defined before you call widget.newTableView().

At the point in your code where widget.newTableView is called, “onRowRender” is nil.

Rob

Thanks Rob you are awesome.