Hi ! I'm new in outsystems, I want to make custom fuction that I can use in expression. I've searched it using google but I dont find it. Can someone tell me how to make custom function.
Thanks in advance
Hi @Yustisiarni G Manao ,
I think you can find this property of an Action and set it to Yes.
Then it becomes function action, and you can call it from expression.
Note that this is client action then you can use in expression (client).
You can define server action to use it as function as well but just can call in other server action.
Regards,
Khuong
In Reactive web Application, you can use Client Action as a function, though it will limit it to have only one Output parameter.
You can refer to the following documentation for a better understanding.
https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Logic/Implementing_Logic/Logic_Elements/Client_Action
Even in traditional web application, you can set server action as a function, but it should have at least one output parameter.
Not at least, just one
Yes .Okay.thank you.
Hi @Yustisiarni G Manao
You can create a server action and set its "Function" property to yes. Make sure that this server action has only 1 output parameter. Now this server action you can use it in any expression on the screen
Thanks,
Preetam Vaidya
Hi,
About the topic "can only have one output" don't worry. Create a structure with all the fields that you need to return in your function and define the output variable type as that structure. That way, you will have only one output, but with all the fields that you need to return.
Best regards,
Ricardo Pereira