Table advice to get widget.newTableView working?

I’m trying my best to take advantage of these sweet new widgets, but I have to admit that for the life of me I just can’t get widget.newTableView working. At all.

Given this ridiculously simple table:

local tempitems = { { title="Scrap Cola" }, { title="Fooz Beer" }, { categoryName="Alcohol" } }

It seems like making the list view and injecting the table should be as simple as:

local itemlist = widget.newTableView{ rowHeight = 60 } itemlist:sync(tempitems)

However, I keep getting an errors in ‘renderItem’ and ‘sync’ about indexing nil values. (And I really have no idea what renderItem is in this situation…) I tried using the sample code instead but same deal. Any ideas? [import]uid: 41884 topic_id: 13456 reply_id: 313456[/import]

Well, I figured it out on my own. :wink: See the comments for widget.newTableView if you want to know what’s missing! [import]uid: 41884 topic_id: 13456 reply_id: 49649[/import]