03-09-2011 07:18 PM
a have a question i create a list after to load a screen but when i add this listfield i have that UiEngineImpl.assertHaveEventLock how i can refresh my screen???
03-09-2011 07:40 PM
This is not exactly "refresh" - this is more about making changes to the Screen which is already displayed. Such changes are best done on the Event Thread. Once you add your list to the screen, it will re-layout and refresh automatically.
Here is the most common way to get it done:
UiApplication.getUiApplication().invokeLater(new Runnable() {
public void run() {
yourScreen.add(yourList);
}
});