                          // Sets Datapoint and device name automatically
                            var sDevName = ui.item.label.split("#")[1].trim();
                            try {
                                sDevName = sDevName.substr(sDevName.indexOf(")") + 1).trim();
                                orowRuleDeviceName.val(sDevName);
                            } catch (error) {
                            }
                            var optVal = $(".rowRuleDPT option:contains('" + ui.item.labe