justinmind-logo
 
Upvote 1

retain active panel after leaving and returning to screen

Solved David Hotard 5 years ago

I am developing an app that utilizes a slide menu. On one screen, I have a number of dynamic panels in which I would like to simulate adding individuals by inputting their name, date of birth, etc. I have been able to successfully do this using dynamic panels and either assigning variables or setting values; however, if I navigate to another screen via my slide menu and then return, the data is lost. Is there something I can do differently to retain this information or perhaps, have the screen load on the last active panel?

Thanks!

Replies (2)
photo
1

I've solved this problem.

I used my "add" button for adding an individual to change the value of my variable "individuals" from "0" to "1"

I then used an "on page load" event to "set active panel" and added the condition for "when variable (individuals) = 1"

photo
1

Glad you figured it out!

photo
1

Yes, the solution above worked for setting the correct active panel, but I am having trouble retaining the variables now. It appears that if I navigate away from the screen and then return, variables are reset to the default value. Is there a fix for this?

photo
1

Do you have an "On Page Load" event that sets the value of the variables? That would reset the value of the variable to its default value.

photo
Leave a Comment
 
Attach a file