Server Action for Visible property of a Container ?

Server Action for Visible property of a Container ?

  

Hi , 

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

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

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



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

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.