• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Reg - How to remind previous view state?

Explorer ,
Dec 15, 2012 Dec 15, 2012

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

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Deleted User
Dec 17, 2012 Dec 17, 2012

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

Votes

Translate

Translate
Enthusiast ,
Dec 17, 2012 Dec 17, 2012

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Dec 17, 2012 Dec 17, 2012

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 17, 2012 Dec 17, 2012

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 30, 2012 Dec 30, 2012

Copy link to clipboard

Copied

LATEST

Hi,

Thanks for your reference URLs. This is was fulfilled my requirement.

Thanks and Regards,

- Mani

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines