109
Views
2
Comments
Solved
2 questions: Site Properties and reseed table
Question
Application Type
Reactive

Hi!

I have 2 questions:

1. To use a Site Property in the client side (client variable) do I still need to make a server action and then a client action that calls that server action? There's nothing more straight forward?

2. To reseed a table (reset an ID to 0 again) I've seen the solution of cutting the entity and paste it after. Is this the best approach also?

Thanks! ;)

2023-01-26 16-03-24
Ana Agostinho
Solution

Hello Diogo, 

Regarding the first question

Site Properties exist in the server-side of the application. If you want to use the value of a Site Property in the client-side logic of a mobile/reactive application, you must add a Server Action to get the Site Property value and use that Server Action in your client-side logic. 

You can find some documentation here, on the following links: 

Regarding the second question:

The most used (at least the one I saw as mostly suggested as I usually use) is to cut paste the entity in your module. This will generate a new table in the database. However, I'm not 100% sure that it is the best way...

Best regards,
Ana

2025-01-12 10-53-58
MatheusLima

About the first question, its important to know client variable can be manipulated by the user, then take care to dont open security issues.

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