218
Views
10
Comments
Solved
 "Exploring Site Property Manipulation Across Modules in OutSystems"
Application Type
Traditional Web, Reactive

Greetings! I'm new to OutSystems, and I've learned that site properties cannot be accessed across different modules. I'm curious to know if, without relying on the Service Center, it's possible to programmatically change or access the value of a site property in a different module. 

2025-02-06 06-36-20
Faizan Qayyum Bhatti
Solution

Hi Fahad,


Welcome to the OutSystems community.
Yes, It is possible to access and change site property programmatically. 
Here is the steps:
1) Create an server action in the module where site property exist and set the public property to yes.
2) Consume that server action where you want.
3) Pass the value as input parameter and assign that value to site property inside the server action.

UserImage.jpg
Muhammad Fahad

I tried this one and work's fine.

Thank's for the help.

2021-09-06 15-09-53
Dorine Boudry
 
MVP
2024-09-09 08-44-46
BHUPENDRA SINGH
2024-09-17 08-54-53
Jerome Rajadurai J

Hi @Muhammad Fahad,

You can create  a wrapper server action to set Site properties and make the action public to be used it in another modules.

UserImage.jpg
Muhammad Fahad

If we can do this in such a way, so what's the difference between session and site.

So, I believe that there is no need of either session variable or site property.

2024-05-08 06-29-37
Prince Aadil Khan Panwar

Hi Fahad,

By creating a server function we can get the site property values. And can take the dependencies into the different modules. We can change the site properties but it's not recommended. 

Thanks

Prince

UserImage.jpg
Muhammad Fahad

If it's not recommended so why does the out-system provide this.

2024-05-08 06-29-37
Prince Aadil Khan Panwar

It never comes under the best practices. Suppose if someone got to know about the action and use it into the different module and change it. And whole system can be break. 

UserImage.jpg
Muhammad Fahad

I got the point. Thanks' for clearing my concepts.

2025-02-06 06-36-20
Faizan Qayyum Bhatti
Solution

Hi Fahad,


Welcome to the OutSystems community.
Yes, It is possible to access and change site property programmatically. 
Here is the steps:
1) Create an server action in the module where site property exist and set the public property to yes.
2) Consume that server action where you want.
3) Pass the value as input parameter and assign that value to site property inside the server action.

UserImage.jpg
Muhammad Fahad

I tried this one and work's fine.

Thank's for the help.

2021-09-06 15-09-53
Dorine Boudry
 
MVP
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.