How to Access Client Variable Values inside Server Action ? Please not refer tutorial of outsystem.
Hi ,
You are not able to access client variable inside server action directly.
But you can make your own way like.
1. Create a server action with input_parameter.
2. Use this server action on client action and pass the client variable value in this input parameter and write you logic inside server action.
Hope this will help you.
how do i pass the value of input parametre of client side to thhe server side input parametre
Hi,
Find the attached oml for your reference .
also see the working example - Demo
Hi Sangam , here is what you were expect of !
Regards :-
Aman Vishwakarma
Hi Everyone,
Is it possible to pass an object data type from client to server action, I am getting error for the same.
Why other variables are allowed but not object?
Service Studio will tell you "Invalid Client Action. Server Actions with 'Object' type parameters are not allowed in Client Actions" without any more clues.
In summary, Server Actions are a lot more powerful than Client Actions. Client Actions expect a straightforward logic and minimum work interpreting the data. They may convert Integer to Text and other small changes, but Client Actions don't work with Objects.
If you want to send an Object, Client Action will need to convert 'something' into Object. And again, a Client Action doesn't know at Object is.
What is expected is that you have a in-between Server Action that can receive Client data, turn it into an Object, and send it to the server action that uses objects.