Universal Display File Issue
Posted: Mon May 07, 2018 2:06 pm
I know I'm missing something simple, but can't seem to locate it.
I have a universal display file that basically just returns the item description from the item number and location passed.
The UDF works fine in SOAPUI.
I'm basically getting the error that result is null. The actual error is "Cannot read property 'success' of null'.
Here is the javascript that I'm using to invoke the UDF.
I have a universal display file that basically just returns the item description from the item number and location passed.
The UDF works fine in SOAPUI.
I'm basically getting the error that result is null. The actual error is "Cannot read property 'success' of null'.
Here is the javascript that I'm using to invoke the UDF.
Code: Select all
debugger;
ajaxJSON({
url: "/profoundui/universal/facValidItem",
params: {
itemNumber: getObj("txtItemNumber").value,
location: "01"
},
method: "get",
async: true,
handler: function(result) {
if (result.success) {
changeElementValue("txtDescription",result.itemDesc);
}
else {
applyProperty("txtItemNumber","focus",true);
getObj("txtItemNumber").select();
alert(result.errorDesc);
}
}
});