14
Views
2
Comments
Solved
 Behaviour of client action.
Question
Application Type
Reactive

A client action can call a server action, but not when the client action is a function. Why is this?

Rank: #93
Solution

Hello Danny,

Hope you're doing well.

Please check this post with the exact answer to your question: https://www.outsystems.com/forums/discussion/63402/actions-client-server-screen/#Post248389


Overall, the reason is because a client action defined as a function needs to run synchronously in order to be directly used on expressions inside screens and blocks.


Hope that this helps you!


Kind regards,

Rui Barradas

Rank: #65
Solution

Hi Danny

The reason is that client actions marked as functions must be synchronous and cannot perform server actions.

Rank: #93
Solution

Hello Danny,

Hope you're doing well.

Please check this post with the exact answer to your question: https://www.outsystems.com/forums/discussion/63402/actions-client-server-screen/#Post248389


Overall, the reason is because a client action defined as a function needs to run synchronously in order to be directly used on expressions inside screens and blocks.


Hope that this helps you!


Kind regards,

Rui Barradas

Rank: #65
Solution

Hi Danny

The reason is that client actions marked as functions must be synchronous and cannot perform server actions.