38
Views
6
Comments
Solved
Unspecified Action

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!

2024-05-22 06-12-56
Vignesh Prakash
Solution

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.

2021-11-12 04-59-31
Manikandan Sambasivam
AI Generated

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 :

  1. Server Actions:

    • Icon: A cube with a right-pointing arrow.
    • Purpose: These actions are executed on the server side. They can contain aggregates, advanced SQL queries, or other server-side logic.
    • Usage: Typically used for data manipulation, business logic, and complex operations that need to be performed on the server.
  2. Client Actions:

    • Icon: A cube with a left-pointing arrow.
    • Purpose: These actions are executed on the client side (browser or mobile app). They are used for operations that do not require server interaction, such as UI logic, local variable manipulation, or simple client-side calculations.
    • Usage: Used for actions that can be handled within the user's device without needing to communicate with the server.
  3. Aggregates:

    • Icon: A table with rows.
    • Purpose: Aggregates are used to fetch data from the database using a visual query builder. They are optimized for retrieving and manipulating data in a straightforward manner.
    • Usage: Used within Server Actions, Client Actions, or even directly on screens to fetch data from entities.

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:

  • Icon: Cube with a right-pointing arrow.
  • Contains: An aggregate named FetchEmployeeData that retrieves employee details from the Employee entity.
  • Purpose: The Server Action GetEmployeeDetails might fetch data using the aggregate and then perform additional logic like filtering, calculations, or transformations before returning the result.

Understanding the Context:

When you see an action with a different icon, consider its context:

  • Server Actions: Usually involve database operations, business logic, and interactions that require server processing.
  • Client Actions: Involve UI interactions, simple computations, and local data manipulations.
  • Aggregates: Used to visually design queries that fetch data from entities.
This answer was AI-generated. Please read it carefully and use the forums for clarifications
2025-10-18 11-13-53
Ramesh subramanian

Hi ,

Added more Info.


2018-09-11 21-09-40
Helena Lameiro
 
MVP

Cet exercice est une application web traditional. 

2024-02-22 07-37-50
Nikhil Kawde

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

2022-12-30 09-46-57
Deepika Patel

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. 

Thanks,

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