Hi Team,
I have a simple data entry screen which is built using K2 Forms, let us say, it has 4 controls, (Name, Age, Gender & DOB).
on click of button (Save button) in K2 form, can i create instance of class with above mentioned input values from user and call a WebAPI which takes this class object as argument.
Is there a way to map, these fields to SmartObject (K2 SmartObject with 4 properties as above) and serialize the smartobject to invoke a WebAPI which is hosted on server.
let us say,
WebAPI signature looks like this;
public HttpResponseMessage K2UIExample(User userInstance):
I am able to invoke a Web API from smart object, with primitive values as parameters, but how to convert a smart object and request a Web Api, i am facing difficulties.
Any pointers or suggestion will be of great help.
Thanks,
Nanda Kumar.K