I have a client variable in a module and I wanted to use and change its value in another module. It's possible?
It's possible, but it raises some concerns.
https://www.outsystems.com/forums/discussion/75072/how-to-persist-data-between-modules/
Check this post.
Kind Regards,
Márcio
Hi Sergio,
Yes it's possible.
1. You need to set the client variable by having an public client action where the client variable is created.(Passing the value to be set as Input parameter and assigning it to the client variable).
2. You can get the value present in the client variable by having an public client action where the output parameter of it assigned with the client variable value.
You can keep these kind of client variables in a common module, can create public get, set client actions to consume in your consumer.
In the post I shared above there is a reference to those points
Marcio
Okay Marcio, I did not check the post you shared, shared my experience. That's good.
If it already has that answer. :)