Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Developer
sporter63
Posts: 7
Registered: ‎08-24-2010
My Carrier: Cable & Wireless
Accepted Solution

Listfield updating previously modified content

Developing an SQLite based app on the simulator for a Bold 9700(6.0 bundle 2115) using Eclipse 3.6.2 with BB plug-1.5.0.201110141512.

 

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?

 

Thx

Please use plain text.
Developer
peter_strange
Posts: 17,638
Registered: ‎07-14-2008

Re: ListField updating previously modified content

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.

Please use plain text.
Developer
jonberry
Posts: 484
Registered: ‎07-17-2008

Re: Listfield updating previously modified content

setSize()
Please use plain text.