You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to codenameone...@googlegroups.com
How do you pass data to a form so that the form can receive it and behave appropriately? A classic example is using the same form for both adding an item and updating an item. For update. the form handler needs tom populate the form fields with data.
For example, if you select a list item you might want to pass details of the item selected to the form. I tried putClientProperty to the Form object returned by showForm. Both the before and post event handlers had a null value for the client property.
To clarify, the Android SDK uses a Bundle to pass data to an Activity.
Shai Almog
unread,
Mar 8, 2013, 11:56:45 AM3/8/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to codenameone...@googlegroups.com
I'm assuming you are using the GUI builder since you mentioned showForm(). You can just store variables in the state machine class and then initialize the form appropriately in the before show event from these variables.
We don't have anything like the activities in Android since that is very android specific, think of our entire hierarchy as being View's only (similar to Swing in a sense).
Rizvan
unread,
Mar 8, 2013, 10:39:38 PM3/8/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to codenameone...@googlegroups.com
You could work around with storing using vector using list index or use storage.getinstance().writeobject("PreFormData",Data);
And Read it next form - storage.getinstance().readobject("PreFormData");