In aiming to use the tableview widget, I have copied the code from here,
http://coronalabs.com/blog/2014/03/04/tutorial-advanced-tableview-tactics/
and used this tutorial here from Corona,
https://www.youtube.com/watch?v=PXo4Rv5KPjo
But in both instances I get an empty table with lines, and that is all. Here is the code I was using in the latest instance,
local widget = require( "widget" ) require ("sqlite3") local path = system.pathForFile("data.db", system.DocumentsDirectory) local db = sqlite3.open( path ) local table\_options = { top = 0, onRowRender = onRowRender, } local tableView = widget.newTableView (table\_options) for row in db:nrows("SELECT \* FROM city LIMIT 8") do local rowParams = { ID = row.id, Name = row.city } tableView:insertRow ( { rowHeight = 50, params = rowParams, } ) end local function onRowRender (event) local row = event.row local font = native.systemFont local fontSize = 24 local rowHeight = row.height / 2 local options\_id = { parent = row, text = row.params.ID, x = 50, y = rowHeight, font = font, fontSize = fontSize } row.id = display.NewText (options\_id) row.id.anchorX = 0 row.id:setFillColor(1, 1, 1) local options\_name = { parent = row, text = row.params.Name, x = 100, y = rowHeight, font = font, fontSize = fontSize } row.name = display.NewText (options\_city) row.name.anchorX = 0 row.name:setFillColor(0, 0, 0) row:insert( row.ID ) row:insert( row.Name ) end