• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dialog updates database - how to update other screens' combos/lists/tables?

 
Peter Dennis
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a dialog that modifies records within my database. But when I go to a different screen where the combo box has data from that table displayed it isn't updated with the new record that has been added.

If I close my program and restart it then the combo box appears updated but I can't imagine many users wanting to do this on a regular basis.

Is someone able to tell me how I can update the combo boxes/lists/tables on other screens that use this data?

Many thanks,

Peter.
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cant say much with the existing details.
One way of doing it is to obtain a reference to the appropriate combo/list/table model and locally modify it if the DB call is successful.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic