329
Views
4
Comments
Solved
Passing client variables between modules
Question

Hi,

How to share the values present in client variable of one module to another module?

Can anyone help on this?

Thanks

2022-09-12 05-19-11
Apoorv Choubey
Solution

Hi @Akhila K Soman,

Greetings and welcome to the outsystems community.

If you want to share client variable value from one module to another module in same application simply you just need to create client action where client variable is created and assigned with values as show in image.

(a) Assign value to client variable into on application ready action or you can assign it into client variable default value property.


(b) Create client action in module where newly client variable created and create one output parameter with same data type as client variable. Make client action public property yes or as your usage make function property yes or no.

Now take dependency into another module where you want to use or you can take dependency into another application as well call that client action into expression if function property yes or call that action into another client action if function property no. Follow these steps you can easily access client variable value into another module or application.



2024-04-05 19-22-12
João Sousa
Solution

Hi there,

Have you read this piece of documentation? I think it can help out on your question:

https://success.outsystems.com/documentation/11/developing_an_application/use_data/share_a_client_variable_between_apps/

Kind Regards,

João

2023-08-28 09-08-29
Venkatesh Sundarajan
Solution
2024-04-05 19-22-12
João Sousa
Solution

Hi there,

Have you read this piece of documentation? I think it can help out on your question:

https://success.outsystems.com/documentation/11/developing_an_application/use_data/share_a_client_variable_between_apps/

Kind Regards,

João

2022-09-12 05-19-11
Apoorv Choubey
Solution

Hi @Akhila K Soman,

Greetings and welcome to the outsystems community.

If you want to share client variable value from one module to another module in same application simply you just need to create client action where client variable is created and assigned with values as show in image.

(a) Assign value to client variable into on application ready action or you can assign it into client variable default value property.


(b) Create client action in module where newly client variable created and create one output parameter with same data type as client variable. Make client action public property yes or as your usage make function property yes or no.

Now take dependency into another module where you want to use or you can take dependency into another application as well call that client action into expression if function property yes or call that action into another client action if function property no. Follow these steps you can easily access client variable value into another module or application.



2023-08-28 09-08-29
Venkatesh Sundarajan
Solution
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.