Going back to previous screen -Reloading the page which causing me loosing selection

Why the screen is reloading the page when transition back to previous screen.??

Scenario - 

  • Home Page - I have some input data, drop down selection.
  • I go forward and comes back and all the selection and inputs just disappears.

Forward to next screen i use -

Coming to previous screen-

But is resets the page and all inputs and selection to originals states.

Hi,


Are you using client variables to store your inputs? Or are you using local variables, forms,...

Can you share a little bit more of detail?

Thanks!


Best regards,

Ricardo M Pereira

Hi Satish,

when you nevigate to page page life cycle run. 

it mean first page load/ initialize and after dom load that why all variables is in defualt state.

if you want maintent variables value you need to additional logic for that.


Regards

Rahul Sahu

Ricardo Pereira wrote:

Hi,


Are you using client variables to store your inputs? Or are you using local variables, forms,...

Can you share a little bit more of detail?

Thanks!


Best regards,

Ricardo M Pereira

Hello, 

It's local variable of an input field.


Rahul Sahu wrote:

Hi Satish,

when you nevigate to page page life cycle run. 

it mean first page load/ initialize and after dom load that why all variables is in defualt state.

if you want maintent variables value you need to additional logic for that.


Regards

Rahul Sahu

Hello, Rahul,

What logic do you suggest holding the variables into local/session storage ?


Satish Kumar wrote:

Ricardo Pereira wrote:

Hi,


Are you using client variables to store your inputs? Or are you using local variables, forms,...

Can you share a little bit more of detail?

Thanks!


Best regards,

Ricardo M Pereira

Hello, 

It's local variable of an input field.


Did you already try to use client variables?

Take a look at this:

https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Data/Handling_Data/Client_Variable


Best regards,

Ricardo M Pereira