2022.2

Table Of Contents
JavaScript/jQuery
e-find-data-entity.js
/* Entity Service - Find Data Entity Example */
(function ($, c) {
"use strict";
$(function () {
const
MSG_LOAD_RULE_FAIL = "Loading of Search Rules
Unsuccessful!\n\n" +
"Unable to load the search rules from the search rules
template. " +
"Searching is currently disabled.",
MSG_INCOMPAT_RULES = "The entity type selected isn't
compatible " +
"with some of the existing rules and these will need to
be " +
"removed.\n\nAre you sure you wish to continue ?",
MSG_MULTIPLE_RULES = "The rule set rule being removed
contains " +
"multiple rules.\n\nAre you sure you wish to continue
?",
MSG_RESET_RULES = "Are you sure you wish to continue
?";
c.setupExample();
var $allRules;
/* Load Rules */
(function () {
var $temp = $("<div>");
$temp.load("snippets/rules.html", function (response,
status) {
var success = (status === "success");
if (!success)
alert(MSG_LOAD_RULE_FAIL);
else {
Page 198