2021.1

Table Of Contents
"search": processRules(($("#search")))[0],
};
/* Process & Add Sorting & Grouping Rules */
["sort", "group"].forEach(function (type) {
var rules = (processRules($("#" + type
+"ing")))[0].rules;
if (rules.length)
search[type] = rules;
});
$.ajax({
type: "PUT",
url: "/rest/serverengine/entity/find",
data: JSON.stringify(search),
contentType: "application/json"
})
.done(function (response) {
c.displayStatus("Request Successful");
c.displayHeading("Input Parameters");
c.displaySubResult("JSON Search
Parameters", c.jsonPrettyPrint(search));
c.displayHeading("Search Results");
c.displaySubResult("Plain",
c.jsonIDListsWithSortKeyToTable(response));
c.displaySubResult("JSON Identifier Lists
(with Sort Key)", c.jsonPrettyPrint(response));
})
.fail(c.displayDefaultFailure);
})
/* Reset Form Rules Handler */
.on("click", "#reset", function (event) {
if (confirm(MSG_RESET_RULES))
$("div.sub-rules")
.find("div.rule")
.remove();
});
});
}(jQuery, Common));
Page 210