cancel
Showing results for 
Search instead for 
Did you mean: 

ViewConroller Context Lifecycle

Former Member
0 Kudos

I have an application that allows the user to traverse several views (backwards and forwards) during a session. When they leave a view after providing information and then return to the view -- their information is still there -- this is the desired result for my application. Is this always the case or should session data which spans multiple views be maintained in a custom controller?

I guess my question would be ...what is the lifecycle of a viewController context?

Much thanks,

Greg

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

have a look at:

it may be helpful for you.

Reward points for helpful answers.

Best regards,

Gianluca Barile

Former Member
0 Kudos

Thank you both.

/Greg

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi ,

Depends on how the "lifespan" property of view is defined.

Go to your view - > Properties -> Lifespan.

If you make it "When visible " then each time you navigate out , the values would be lost. In this case , you have to put the data in the component controller.. Otherwise , the view exists for the lifetime of the application.

Regards

Bharathwaj