12-17-2011 01:11 PM
Developing an SQLite based app on the simulator for a Bold 9700(6.0 bundle 2115) using Eclipse 3.6.2 with BB plug-18.104.22.168110141512.
After selecting a row (in the Listfield) which opens an editor Screen to modify the data contents of memory and flash disc according to the selection, I want to return to the List (close the editor screen) and see the rows contents updated.
Tried using :
- list.invalidate (this only re-paints the previously displayed data)
- getScreen().listScn.invalidateLayout (won't work, as the Listfield screen is still on the stack, underneath the Editscreen)
Currently using a kludge to re-run the listField screen from scratch (which works), but I would like to do it right..
I guess I'm missing a concept in the use of BB Listfields - have looked at most references/tutorials.
Does anything 'jump-out' as to what I need to do?
Solved! Go to Solution.
12-17-2011 01:21 PM
The invalidate on the selected row should work. It does just do a re-paint, however it calls drawListRow. So you need to make sure that the data that this row is painting in drawListRow is updated. I suspect that you have already extracted this data from the Table and put it in a more convenient format, like a Vector. So you need to update this Vector before you do the invalidate(..) on the row that has been updated.