I created a tableView list.
After list complete creation, I want to access each row in this list ,and to update all its “row.name” values.
How can I do it?
The code:
local function onRowRender( event )
local group = event.view
local row = event.target
local image2 = display.newImage (“assets/images/rate.png”)
group:insert(image2)
row.starObj = image2
row.name = data[event.index].user_id
end
for i=1, #data do
list:insertRow{
id = “unique-row-id”,
onRender = onRowRender,
listener = listListener
}
list = widget.newTableView{
} [import]uid: 144261 topic_id: 29457 reply_id: 329457[/import]