Difference between Screen, Server and Client action and also service action.

Hi All,

Can someone help me in understanding the 4 different types of actions with examples and when they can be used? 


Regards, 

Ankita

Hi Ankita Kulkarni,

To add to the question you raised yesterday: 

Service actions - enforce separation of concerns and encapsulate logic (similar to server actions)

The other actions explanation you can see in Kilian post: 

https://www.outsystems.com/forums/discussion/49836/difference-between-screen-action-server-action-and-client-action/

Hi Ankita

Client Action: runs on the device. used for reusable logic. Callable from Client (Screen) Actions and Client Actions. Defined in the Logic tab of Service Studio.

Client (Screen) Action: runs on the device. Handles user interaction with an element on the screen. Defined on a Mobile Screen (in the Interface tab of Service Studio).

Screen Action: runs on the server. Handles user interaction with an element on the screen. Defined on a Web Screen (in the Interface tab of Service Studio).

Server Action: runs on the server. used for reusable logic. Callable from Screen Actions, Client actions and other Server Actions. Defined on the Logic tab of Service Studio.

Service Action: Similar to a Server Action and callable in the same circumstances. It is OutSystems' approach to micro-services, as the call is automatically made through REST and as such creates a weak dependency between modules.

Hope this helps

Just to add up, additional info about service actions is available in OS documentation here:

https://success.outsystems.com/Documentation/11/Developing_an_Application/Reuse_and_Refactor/Use_Services_to_Expose_Functionality

Regards,

Hi Ankita,

Given your question is related to a question you posted yesterday, why didn't you follow it up on that topic? If you didn't understand fully what was explained before, asking for extra clarification would make sense, no? And it would likely help more people in the future if the discussion was in one single place instead of several.