258
Views
4
Comments
Solved
Share and Use Client Variable

I have a client variable in a module and I wanted to use and change its value in another module. It's possible?

2021-06-02 20-50-04
Márcio Carvalho
Solution

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

2023-08-28 09-08-29
Venkatesh Sundarajan

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. 

2021-06-02 20-50-04
Márcio Carvalho

In the post I shared above there is a reference to those points

Kind Regards,

Marcio

2023-08-28 09-08-29
Venkatesh Sundarajan

Okay Marcio, I did not check the post you shared, shared my experience. That's good. 

If it already has that answer. :) 

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