As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
var json = remote.call("/imaging/document/parentdoc"); if (json.status == 200) { //Do stuff } else { logger.log("Error ….."); //Manage error code json.status.message // here i want the backend message but empty :-( }
// business code if (contentNode.typeShort == "fds:content") { //business code } else { status.code = 400; status.message = "Bad request : node is not a content !"; status.redirect = true; }
json.status.message // it returns empty string json.status.redirect // return false where it should be true json.status.code // return correct response code like 'json.status'
var json = remote.call("/imaging/boxes/admin"); obj = eval("(" + json + ")"); if (json.status == 200) { model.result = obj; } else { status.code = 500; status.message = obj.message; //GOT it ! status.redirect = true; }