Copy link to clipboard
Copied
Hi,
I have the following requirement:
In mobile application, the home view screen has a text input and button controls. Text input will contain a service URL (value provided at run time), on click of the button, the given URL (specified in text box) will be executed using HTTPService component. The resultant value will be bound to a List component. On select of the list item, next view (details view) will be launched with the selectedItem value. The details view has 'Back' button, on press of back button the home view will be launched. On launch of Home view from the details view i need to maintain the previous state (resultant value) as it is. How can i implement this?
Note: I don't want to allow user to give input and fire a service on each time return back from 'Details view'
I just tried and can able to pass and return the URL value using 'navigator.poppedViewReturnedObject' but it requires need to fire a HTTPservice again on launch of 'Home view' from 'Details view'. How i overcome this? or am i understood wrongly?
Can you help me with your knowledge and experince?
Thanks and Regards,
Manikandan
Hi Mani,
You can use persistence manager.
If I have understood you correct.These two links can help you achive what you want.
http://help.adobe.com/en_US/flex/mobileapps/WSb0a29bf92525419c-54dd253312afbec3ecb-8000.html
http://cookbooks.adobe.com/post_Simple_data_persistence_in_a_Flex_4_5_mobile_appli-18856.html
hope this helps
cheers
Copy link to clipboard
Copied
It depends where you are in the flow and what you want to achieve...
For example, if it was a main index page, you could simply set destructionPolicy="never" (that's from memory - check the docs for actual setting) to keep the view in memory and then popView to return to it.
G
Copy link to clipboard
Copied
Hey Mani,
Here is a sample Employee Directory application.
http://www.adobe.com/devnet/flex/articles/employee-directory-android-flex.html
hope this helps.
-Hari
Copy link to clipboard
Copied
Hi Mani,
You can use persistence manager.
If I have understood you correct.These two links can help you achive what you want.
http://help.adobe.com/en_US/flex/mobileapps/WSb0a29bf92525419c-54dd253312afbec3ecb-8000.html
http://cookbooks.adobe.com/post_Simple_data_persistence_in_a_Flex_4_5_mobile_appli-18856.html
hope this helps
cheers
Copy link to clipboard
Copied
Hi,
Thanks for your reference URLs. This is was fulfilled my requirement.
Thanks and Regards,
- Mani