129
Views
4
Comments
Server Action for Visible property of a Container ?
Question

Hi , 

   Can I have  a  Server action ( which takes two input parameters) in visible property of a container ? 

2022-09-27 05-23-26
Mohammad Shoeb

Hi Gagan,

Due to the nature of functions it's not possible to use a server action as a function or call a server action inside a local function. If you try to do so, you get the following TrueChange error:

(Where 'ServerDataSync' will be the name of your Server Action, and 'TestFunc' the name of your local function.) Iirc, this has to do with the way Server Actions are called (asynchronously) vs. the way Functions are handled (Synchronously).


Refer 

https://www.outsystems.com/forums/discussion/30776/how-to-use-server-action-in-screen-as-function-mobile/


Regards

Shoeb

UserImage.jpg
Gagan Chohan

Shoeb Khan wrote:

   I posted similar problem in other post, so someone quite helpful pointed out that server action can be used . 

 https://www.outsystems.com/forums/discussion/42572/apply-if-statement-for-container-visibility-out-systems/#Post153794

Hi Gagan,

Due to the nature of functions it's not possible to use a server action as a function or call a server action inside a local function. If you try to do so, you get the following TrueChange error:

(Where 'ServerDataSync' will be the name of your Server Action, and 'TestFunc' the name of your local function.) Iirc, this has to do with the way Server Actions are called (asynchronously) vs. the way Functions are handled (Synchronously).


Refer 

https://www.outsystems.com/forums/discussion/30776/how-to-use-server-action-in-screen-as-function-mobile/


Regards

Shoeb



2022-09-27 05-23-26
Mohammad Shoeb

Hi Gagan,

It Would be really interested if this happen so...

But i still able to see you are not able to find function in expression created with Function property to true.

I also try but not able to find server action in user function section.

Regards 

Shoeb

2019-09-24 18-41-25
Jorge Martins
 
MVP

Hi all,

The original post didn't mention anywhere that it was regarding a Mobile App.

With this extra clarification from the screenshot above, Kilian's remark is correct, you cannot call a Server Action from a Client Function.

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