Hello all,
I am doing some exercises to strengthen my understanding of Outsystem currently. One exercise seems to be older and has this Action that does not provide any information on. If I open the action it seems to be getting an aggregate but I am just curious on to why its a different category (as it even has a different icon).
Thank you!
Hi Yasmin,Preparation, a dedicated server-side Action that loads initial data for Screens, does not exist in the client-side Reactive interface.https://success.outsystems.com/documentation/how_to_guides/development/introduction_to_migrating_traditional_web_to_reactive_web_apps/traditional_to_reactive_app_migration_reference/front_end_migration_introduction/screen_and_block_logic/Thanks,Vignesh Prakash.
In OutSystems, actions are categorized and represented by different icons to denote their purpose and behavior. When you mention that an action is getting an aggregate but has a different category and icon, it is likely a Server Action that includes a built-in aggregate.
Here's a breakdown of the different types of actions :
Server Actions:
Client Actions:
Aggregates:
Identifying the Different Actions:
Server Action with Aggregate: If the action you are looking at is categorized as a Server Action and includes an aggregate, it means the aggregate is being used within the server-side logic to fetch or manipulate data before performing further operations.
Why Different Icon?: The different icon helps developers quickly identify the nature of the action. A Server Action (cube with arrow) indicates it runs on the server, whereas a Client Action (cube with left arrow) indicates it runs on the client.
Example Scenario:
Suppose you have a Server Action named GetEmployeeDetails:
Understanding the Context:
When you see an action with a different icon, consider its context:
Hi ,
Added more Info.
Cet exercice est une application web traditional.
Hi @Yasmin Albaroudi ,
The action that you are looking at is called preparation. It's a special kind of a server action which is automatically executed before a screen is rendered and is mainly used to fetch the data to show on the screen. It is only available on traditional web apps.
You can visit here to know more about preparation.
Thanks,
Nikhil Kawde
Hi,
Preparation:
The action is called preparation. In Traditional Web Apps, the Preparation is a server-side Action that fetches the Screen data and prepares it for showing on the Screen. Before opening that Screen, you used to run server Actions and to create Aggregates to fetch the data needed. Typically, Preparation Actions include logic to fetch data from the database using Aggregates or Advanced SQL, perform calculations, or prepare variables that the screen will use. In Reactive Web, there's no Preparation, and you have to fetch all data using Aggregates and data Actions at each Screen.