Collapsable / Nested tableView demo

Hi Rob,

The codes as follows 

–Text to show which item we selected

local itemSelected = display.newText( “You selected”, 0, 0, native.systemFontBold, 24 )

itemSelected:setFillColor( 0 )

itemSelected.x = display.contentWidth + itemSelected.contentWidth * 0.5

itemSelected.y = display.contentCenterY

widgetGroup:insert( itemSelected )

FYI, I just download the earlier collapsingTableView.zip, unzipped it and run main.lua.

The error “main.lua:66: attempt to call method ‘setFillColor’ (a nil value)” pops up instanteously upon running main.lua 

No modification of codes are done.

I’m using corona 2013.1137 (2013.6.7)

Thank you in advance

regards,

Mok

Version 2013.1137 is really - really old. It’s from 2013. Today our public build is 2015.2731.  Between then and today, changed a bunch of things. Build 1137 doesn’t have a :setFillColor() option for display.newText() objects. Back then it was :setTextColor().  I highly recommend that you upgrade to the latest public build.

You won’t be able to deploy 1137 to Apple. You won’t be able to use many plugins for Android with a build that old either.

Rob

Hi Rob,

Thank you for the insight on the changes of coding in varous build version. Will take note of it and update to the latest build.

Thanks again

regards,

mok

Hello,

Is there a way to place a widget in the expanding rows? I tried placing a pickerwheel in the expanding rows, so when you click the Main row its expands and shows a pickerwheel. Is this possible, if yes, could I get some help with this?

Thanks 

Corona SDK’s widget.newTableView does not support expanding rows.

Rob

Hi Rob,

Wanna know if there’s any sample code for earlier build version like what i m using 2013.1137 (2013.6.7) for collapsing table view. I am trying to create a sub list menu as per listview example and not sure what to do as I am very new in programming.

Thank you in advance

regards,

Mok

Sorry, I’m not sure of anything that can help.

Rob