Client Variables


Is it true to say client variables are never deleted but can be overwritten.

Followed a video on them in one of the guided paths and they used a client variable to save a search key word enterd on a form via the users.

When I user enters a search word on the form, like in the above example, is this then also saved in outsystems as the new default?



Hi JayPea,

You are referring to an image, but probably you forget to add it to your post?

The client variable allows you to save something on the browser which is quite useful to avoid the need to go to the server (better performance and can be accessed offline), although it should be used with care and avoid storing sensitive information there.

To hold the values a user used a filter is a perfect and one of the most common examples on using client variables.

In this case, you would use it just like you would with a local variable, but unlike the local variable that gets its value reset when you navigate to another screen, the client variable holds the value until the session is reset (e.g. when the user logs out or logs in).

Kind Regards,

Thanks....and am I correct in thinking each subsequent search would overwrite the previous client variable?


Yes, just like a local variable.

If you have it as the input variable it will hold the value the user inputs. And you can also assign a value to it, just like a local variable.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.