Reloading the Table View

I am attempting to reload the TableView widget when the user selects a row. The table view is instantiated in the enterScene function. It is basically like this:

local table_view

local function on_row_touch(event)

    local row = event.target

    if row ~= nil then

        

            table_view:reloadData()

    end

end

I get the following error:

attempt to call ‘reloadData’ (a nil value)

Any idea what’s going on here?

What version of Corona SDK are you using?

Thanks

Rob

2013.1202

The reloadData() was not added until around build 2076.  If you are not committed to graphics 1.0, you should upgrade to build 2100 to get all of the latest widget fixes, but be aware you will probably run into positioning issues.  Many can be mitigated by doing:

graphicsCompatibility = 1

in your config.lua.  But 2100 has important fixes in it required for deploying on iOS 7, Google Play and Facebook. 

Rob

Thank you.

What version of Corona SDK are you using?

Thanks

Rob

2013.1202

The reloadData() was not added until around build 2076.  If you are not committed to graphics 1.0, you should upgrade to build 2100 to get all of the latest widget fixes, but be aware you will probably run into positioning issues.  Many can be mitigated by doing:

graphicsCompatibility = 1

in your config.lua.  But 2100 has important fixes in it required for deploying on iOS 7, Google Play and Facebook. 

Rob

Thank you.