Hello! I'm sorry to disturb you.. I'm trying to invoke a service with input and output variables too. the output of the service is like this:
{
"account":0,
"message":"mpla mpla"
}
i have tried this code:
copied from a reply in the current topic
var onSuccess = function(data){
console.log(data);
var newData = data.data;
console.log("dataitems = " + newData.length);
//Iterate through data items:
for(var i = 0; i < newData.length; i++){
var id = newData.id;
alert("id[" + i + "] = " + id);
}
};
in this section I'm trying to pass the variables from the components of the page and manage the output variables of the service.
I have 5 input variables and 2 output variables.
Code: Select all
GetSeamanVerification.execute({body:
{"FLAG":"account_exists",
"FIRSTNAME":Appery('sFirstname').val(),
"LASTNAME":Appery('sLastname').val(),
"MOBILE":Appery('sMobile').val(),
"BDATE":Appery("sDOB").getAttr("defaultDateValue"),
},success: {success: onSuccess}});
Thank you in advance!
Best regards