How to return a value from server action and catch in client action
Question
Application Type
Mobile

Hi All,

This is regarding Login Credentials Validation. 

I called a Client Action on button click and created a Server Action inside this Client action. The User name & Password were passed to this Server Action. I ran a SQL query to validate these credentials against a database

I intend to return a value from this server action back to client action based upon success or failure ( 1 or 0). Based upon the value returned , either a error message shall be displayed in client action or control shall be passed to another screen. Kindly advise :

a) How can I return a value from Server action

b) How to catch this value back in client action


Jayant

Thanks, issue solved with this thread for reference of other as well:

https://success.outsystems.com/Documentation/11_x_platform/Reference/OutSystems_Language/Data/Handling_Data/Variables/Output_Parameter

Hey there.

You should return values from the Server Action as OutputPparameters. Inside the Cliente Action, this outputs will be available to use.

Kind regards

Thanks, issue solved with this thread for reference of other as well:

https://success.outsystems.com/Documentation/11_x_platform/Reference/OutSystems_Language/Data/Handling_Data/Variables/Output_Parameter

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