Difference Between Data Action and Server Action in Reactive Web

Hi,

For Reactive Web:

What is the difference between creating a Data Action (Fetch Data From Other Sources) and creating a Server Action that does the same thing and then calling that from within a Client Action? They seem to have the same capabilities - although the Data Action you can create the logic straight from the Screen without having to create a specific Server Action - is this the only difference or does it have to do with Synchronous and Asynchronous things etc...?

Also, why is it wrong to call a server action upon initialize but having an aggregate run is fine - when they do the same thing often?

Kind regards

Solution

Hi Nicholas,

This is document related Server action and Data Action-

https://success.outsystems.com/Documentation/11/Developing_an_Application/Implement_Application_Logic/Actions_in_Reactive_Web_and_Mobile_Apps 

https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Logic/Implementing_Logic/Logic_Elements/Server_Action 

https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Interfaces/Adding_Data_and_Logic/Data_Action .

Also i provide some short answer.

1. Data action is used only within screen and Server action  can call multiple screens.

2. When you call multiple server action in client action OS will give warning 

3. You can use server side functionaliy in Data action which used diretly on screen


Regards

Rahul

Mahesh Manchala wrote:

https://success.outsystems.com/Documentation/11/Developing_an_Application/Implement_Application_Logic/Actions_in_Reactive_Web_and_Mobile_Apps 


You can get the exact info from the above documentation. Please go through it.. 

Hi Mahesh

Thanks so much for getting back to me! I greatly appreciate it. I had a look for some documentation but couldn't find this, thanks for pointing it out!

Kind regards

 

Its my pleasure Nick 

Rahul Sahu wrote:

Hi Nicholas,

This is document related Server action and Data Action-

https://success.outsystems.com/Documentation/11/Developing_an_Application/Implement_Application_Logic/Actions_in_Reactive_Web_and_Mobile_Apps 

https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Logic/Implementing_Logic/Logic_Elements/Server_Action 

https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Interfaces/Adding_Data_and_Logic/Data_Action .

Also i provide some short answer.

1. Data action is used only within screen and Server action  can call multiple screens.

2. When you call multiple server action in client action OS will give warning 

3. You can use server side functionaliy in Data action which used diretly on screen


Regards

Rahul

Hi Rahul

Thanks you so much for posting a fantastic solution to my question. Much appreciated. I will go through the documentation you linked.

Kind regards