Best Practice Question, Form1 opens Form2, Form2 calls Form1.showBack()

9 views
Skip to first unread message

shop.servic...@gmail.com

unread,
Jul 5, 2019, 11:35:34 AM7/5/19
to CodenameOne Discussions
If you are experiencing an issue please mention the full platform your issue applies to:
IDE: NetBeans/Eclipse/IDEA Netbeans 8.2
Desktop OS Windows 10 Pro
Simulator Latest
Device PC, Android, IOS

In the interest of user experience and convienience, I have a Form 1 that is heavily loaded (Lots of stored data)
Form 1 can instanciate Form 2, do business and Upon Touching Back Arrow, I do my Form 2 close oue and execute Form 1.showBack();

This visually works well. 

Wondering in keeping a referance to Form 1 while Form 2 is instanciated, am I potentially overloading the mobile device or in general poor operational design. (Forcing the device to maintain resources of both populated Forms)


PS. The reason this method is preferable is that Form 1 loads lots of data that can be changed by a user.

Thoughts?

BestRegards

Shai Almog

unread,
Jul 6, 2019, 1:04:45 AM7/6/19
to CodenameOne Discussions
If you reload the data anyway then discard the form. Generally unless it's a HUGE amount of data you should keep it so the app can run smoothly.
Reply all
Reply to author
Forward
0 new messages