Hi,
How to share the values present in client variable of one module to another module?
Can anyone help on this?
Thanks
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.
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
Hi Akhila,
In addition to above answers , Please check below solution,
https://www.outsystems.com/forums/discussion/82062/share-and-use-client-variable/#:~:text=You%20can%20get%20the%20value,to%20consume%20in%20your%20consumer.
Thanks.
Please check this thread as well,
https://www.outsystems.com/forums/discussion/84354/passing-data-to-other-modules