Great! Thanks much for your contribution.
Hi ksan!
Do you have an improved version to what primoz did? The current one looks nice but will crash when i collapse/expand in quick succession.
Regards,
Vincent
@vincent.form This was just an exercise into possible bug fixes/improvements. It has not been updated in a long time and uses old corona widgets source code. What you are experiencing is probably due to starting a new collapse/expand operation before the last one has finished and this should be disabled (made impossible until the last one finished) in code or possibly update it so that it handles more than one event at the same time. I’m talking off the top of my head here but that’s probably what’s happening. If you want to use this code you should test it thoroughly and fix any bugs or optimize it.
Regards,
Primoz
Yup thanks for the contribution on this primoz! I’ve been editing and meddling with it but is running into some problem in preventing the events from double activating. Wanted to check if theres any updates on this before i delve into it deeper . Thanks!
Improved the current one to fix the crashes that comes with quick succession of expanding/collapsing. Would love to hear from any one whom have developed their own Collapsable/Nested TableView widget.
Hi ksan!
Do you have an improved version to what primoz did? The current one looks nice but will crash when i collapse/expand in quick succession.
Regards,
Vincent
@vincent.form This was just an exercise into possible bug fixes/improvements. It has not been updated in a long time and uses old corona widgets source code. What you are experiencing is probably due to starting a new collapse/expand operation before the last one has finished and this should be disabled (made impossible until the last one finished) in code or possibly update it so that it handles more than one event at the same time. I’m talking off the top of my head here but that’s probably what’s happening. If you want to use this code you should test it thoroughly and fix any bugs or optimize it.
Regards,
Primoz
Yup thanks for the contribution on this primoz! I’ve been editing and meddling with it but is running into some problem in preventing the events from double activating. Wanted to check if theres any updates on this before i delve into it deeper . Thanks!
Improved the current one to fix the crashes that comes with quick succession of expanding/collapsing. Would love to hear from any one whom have developed their own Collapsable/Nested TableView widget.
Hi,
Running in corona give me error "main.lua:66: attempt to call method ‘setFillColor’ (a nil value)
Appreciate if anyone can help me on this
thank you in advance
Mok
@mok0208, you’re going to need to post some code, in particular around main.lua’s line 66.
Make sure to use the <> button in the edit bar (same row with Bold, Italics, Underline, etc.) to post your code properly.
Rob
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
Hi,
Running in corona give me error "main.lua:66: attempt to call method ‘setFillColor’ (a nil value)
Appreciate if anyone can help me on this
thank you in advance
Mok
@mok0208, you’re going to need to post some code, in particular around main.lua’s line 66.
Make sure to use the <> button in the edit bar (same row with Bold, Italics, Underline, etc.) to post your code properly.
Rob