BlackBerry Forums Support Community

Closed Thread
LinkBack Thread Tools
Old 03-19-2010, 05:25 AM   #1 (permalink)
New Member
Join Date: Feb 2010
Model: Storm
Carrier: AT&T
Posts: 8
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Help in refreshing the screen

Please Login to Remove!


I am getting some problem with refreshing the screen..
What i am doing is i am generating some checkboxefield instances dynamically depending upon the no. of items in the list. for example if i have 5 items in list then 5 checkboxes are created. This is working very fine. by using the managers screen is showing the checkboxes and listfield items. when i go to another screen to add some items to the list i want on coming back to the original screen when i reload the list, number of instances of the checkboxfield should be increased by the no. of items added and screen should display the new no. of checkboxes and new items of the listfield.

Items are being displayed but the new checkboxes are not created.

Is there any way to refresh the screen so that when i come back to the screen, the no. of fields on the screen must be changed according to the situation.

I hope i am able to explain my problem...Please suggest some solution.
Old 03-19-2010, 09:49 AM   #2 (permalink)
Knows Where the Search Button Is
Join Date: Mar 2010
Model: N/A
Carrier: Fledge
Posts: 43
Post Thanks: 0
Thanked 0 Times in 0 Posts

You can override the Screen's onExposed() method. Make sure you invoke the superclass's onExposed method as well.

Copyright 2004-2016
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.