440
Views
7
Comments
function

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

2020-11-13 07-48-15
Khuong Truong

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

2022-02-08 09-40-14
Chandrashekhar Mankar

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


2022-12-07 04-24-30
Neha Lawange

Even in traditional web application, you can set server action as a function, but it should have at least one output parameter.

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Not at least, just one

UserImage.jpg
Preetam Vaidya

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

2021-03-05 13-56-11
Ricardo Pereira
 
MVP

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


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