mistic100 / jQuery-QueryBuilder

jQuery plugin offering an interface to create complex queries
https://querybuilder.js.org
MIT License
1.68k stars 552 forks source link

Bootstrap tagsinput plugin not possible to edit values. #711

Closed landy2005 closed 6 years ago

landy2005 commented 6 years ago

Based on you suggestions in #659 I created rule(s) with this plugin. Add new rules, worked correctly, but not possible to edit. Stored values not passed into tagsinput field.

query_builder_edit_tagsinput

In this example, entity.ipv4_address (port.ipv4_address) is array, in setRules method:

  <script type="text/javascript">
  <!-- Begin

  var rules = {"condition":"AND","rules":[{"id":"device.disabled","field":"device.disabled","type":"integer","input":"select","operator":"equals","value":0},{"id":"entity.ipv4_address","field":"entity.ipv4_address","type":"string","input":"text","operator":"in","value":["10.0.0.0/24","192.168.0.0/24"]}],"valid":true};

  $('#rules-GcnlgGlI').queryBuilder('setRules', rules, { allow_invalid: true });

  $('#btn-set').on('click', function() {
    $('#rules-GcnlgGlI').queryBuilder('setRules', rules, { allow_invalid: true });
  });
  // End -->
  </script>

And main JS (sorry for long copy-paste, script generated):

<script>

  $('#rules-GcnlgGlI').queryBuilder({
    plugins: {
      'bt-selectpicker': {
        style: 'btn-inverse btn',
        width: '100%'
      },
      'sortable': null,
    },
    filters:  [ 
{ id: 'device.device_id',
field: 'device.device_id',
label: 'Device',
type: 'string',
optgroup: 'Device',
input: 'select',
plugin: 'selectpicker',
plugin_config: { width: '100%', iconBase: '', tickIcon: 'glyphicon glyphicon-ok', showTick: true, selectedTextFormat: 'count>2', liveSearch: true, actionsBox: true,  },
values:  [ { value: 278, label: "179.97.83.118", optgroup: "UP" }, { value: 273, label: "58.65.247.24", optgroup: "UP" }, { value: 22, label: "apc-8953.test", optgroup: "UP" }, { value: 50, label: "aruba1.test", optgroup: "UP" }, { value: 70, label: "breezemax.test", optgroup: "UP" }, { value: 235, label: "brocade-mlxe.test", optgroup: "UP" }, { value: 114, label: "cisco-3800.test", optgroup: "UP" }, { value: 143, label: "cisco-altiga.test", optgroup: "UP" }, { value: 194, label: "cisco-nexus5.test", optgroup: "UP" }, { value: 10, label: "ciscosb.test", optgroup: "UP" }, { value: 97, label: "dev.observium.ru", optgroup: "UP" }, { value: 123, label: "dlink-router.test", optgroup: "UP" }, { value: 240, label: "enlogic-pdu.test", optgroup: "UP" }, { value: 232, label: "extreme-poe.test", optgroup: "UP" }, { value: 230, label: "foundry-poe.test", optgroup: "UP" }, { value: 212, label: "ge-ups.test", optgroup: "UP" }, { value: 276, label: "geist-pdu-imd.test", optgroup: "UP" }, { value: 187, label: "gr4-the.clearip.net", optgroup: "UP" }, { value: 154, label: "h3c-sla.test", optgroup: "UP" }, { value: 285, label: "huawei-ne20e.test", optgroup: "UP" }, { value: 281, label: "huawei-s9312.test", optgroup: "UP" }, { value: 76, label: "hwg-ste.test", optgroup: "UP" }, { value: 255, label: "ibm-bladecenter.paid", optgroup: "UP" }, { value: 160, label: "idrac8.test", optgroup: "UP" }, { value: 197, label: "isilon.test", optgroup: "UP" }, { value: 149, label: "junos-boyard.test", optgroup: "UP" }, { value: 189, label: "liebert-ups.test", optgroup: "UP" }, { value: 205, label: "mge-ups-ex.test", optgroup: "UP" }, { value: 124, label: "mickael.test", optgroup: "UP" }, { value: 24, label: "nas.stupalov.ru", optgroup: "UP" }, { value: 120, label: "netapp-cluster.test", optgroup: "UP" }, { value: 73, label: "netapp.test", optgroup: "UP" }, { value: 226, label: "netgear-poe.test", optgroup: "UP" }, { value: 43, label: "nortel.test", optgroup: "UP" }, { value: 153, label: "np.tst.netping.ru", optgroup: "UP" }, { value: 126, label: "oneos5.test", optgroup: "UP" }, { value: 145, label: "openwrt.test", optgroup: "UP" }, { value: 174, label: "powerconnect-radlan.test", optgroup: "UP" }, { value: 175, label: "proliant.test", optgroup: "UP" }, { value: 214, label: "raritan-emx.test", optgroup: "UP" }, { value: 234, label: "raritan-pdu.test", optgroup: "UP" }, { value: 128, label: "shopik-adaptec.test", optgroup: "UP" }, { value: 101, label: "spb-off-gw1.net.p8.ru", optgroup: "UP" }, { value: 283, label: "spb-rad-sw1.net.p8.ru", optgroup: "UP" }, { value: 107, label: "sw-1916.net.p8.ru", optgroup: "UP" }, { value: 272, label: "synology-dsm.test", optgroup: "UP" }, { value: 133, label: "vds.coosm.net", optgroup: "UP" }, { value: 224, label: "vmware6.test", optgroup: "UP" }, { value: 244, label: "xppc-3phase.test", optgroup: "UP" }, { value: 275, label: "109.74.240.30", optgroup: "DISABLED" }, { value: 251, label: "141.255.191.124", optgroup: "DISABLED" }, { value: 203, label: "151.79.240.212", optgroup: "DISABLED" }, { value: 193, label: "185.12.128.1", optgroup: "DISABLED" }, { value: 201, label: "209.160.135.153", optgroup: "DISABLED" }, { value: 210, label: "5.148.148.178", optgroup: "DISABLED" }, { value: 217, label: "66.103.255.102", optgroup: "DISABLED" }, { value: 241, label: "94.199.173.205", optgroup: "DISABLED" }, { value: 121, label: "aix-2.test", optgroup: "DISABLED" }, { value: 105, label: "allied1.test", optgroup: "DISABLED" }, { value: 58, label: "aos.test", optgroup: "DISABLED" }, { value: 56, label: "aos7.test", optgroup: "DISABLED" }, { value: 12, label: "apc-ap9340-2.test", optgroup: "DISABLED" }, { value: 11, label: "apc-ap9340.test", optgroup: "DISABLED" }, { value: 215, label: "apc-netbotz.test", optgroup: "DISABLED" }, { value: 249, label: "apc-symmetra.test", optgroup: "DISABLED" }, { value: 147, label: "arista.test", optgroup: "DISABLED" }, { value: 144, label: "avaya-server.test", optgroup: "DISABLED" }, { value: 42, label: "avaya.test", optgroup: "DISABLED" }, { value: 99, label: "brocade-fws.test", optgroup: "DISABLED" }, { value: 140, label: "c01-jbt1-osl-no.nexthop.no", optgroup: "DISABLED" }, { value: 17, label: "calix-c7.test", optgroup: "DISABLED" }, { value: 168, label: "casa-100g.test", optgroup: "DISABLED" }, { value: 146, label: "casa.test", optgroup: "DISABLED" }, { value: 238, label: "chloride.test", optgroup: "DISABLED" }, { value: 103, label: "cisco-12k.test", optgroup: "DISABLED" }, { value: 94, label: "cisco-7600-pw2.test", optgroup: "DISABLED" }, { value: 92, label: "cisco-asr9k-pw.test", optgroup: "DISABLED" }, { value: 236, label: "cisco-mac.test", optgroup: "DISABLED" }, { value: 208, label: "cisco-nexus9.test", optgroup: "DISABLED" }, { value: 167, label: "cisco-nxos-ports.test", optgroup: "DISABLED" }, { value: 129, label: "cisco-nxos.test", optgroup: "DISABLED" }, { value: 131, label: "cisco-ubr.test", optgroup: "DISABLED" }, { value: 250, label: "cisco-ucs.test", optgroup: "DISABLED" }, { value: 14, label: "ciscosb-2.test", optgroup: "DISABLED" }, { value: 162, label: "ciscosb-4.test", optgroup: "DISABLED" }, { value: 163, label: "ciscosb-dom.test", optgroup: "DISABLED" }, { value: 122, label: "dlink-fw.test", optgroup: "DISABLED" }, { value: 111, label: "dlink1.test", optgroup: "DISABLED" }, { value: 112, label: "dlink2.test", optgroup: "DISABLED" }, { value: 227, label: "enterasys-poe.test", optgroup: "DISABLED" }, { value: 54, label: "extendair1.test", optgroup: "DISABLED" }, { value: 181, label: "extreme-x670.test", optgroup: "DISABLED" }, { value: 254, label: "f5-ha.test", optgroup: "DISABLED" }, { value: 159, label: "f5-ports.test", optgroup: "DISABLED" }, { value: 91, label: "f5.test", optgroup: "DISABLED" }, { value: 196, label: "ftos-dell.test", optgroup: "DISABLED" }, { value: 195, label: "ftos-s6000.test", optgroup: "DISABLED" }, { value: 21, label: "huawei-8505.test", optgroup: "DISABLED" }, { value: 231, label: "huawei-poe.test", optgroup: "DISABLED" }, { value: 282, label: "huawei-s9712.paid", optgroup: "DISABLED" }, { value: 51, label: "iosxe-4500.test", optgroup: "DISABLED" }, { value: 256, label: "iosxe-asr920.test", optgroup: "DISABLED" }, { value: 4, label: "iosxe-ipv6.test", optgroup: "DISABLED" }, { value: 5, label: "iosxe-ipv6bug.test", optgroup: "DISABLED" }, { value: 3, label: "iosxr-ipv6.test", optgroup: "DISABLED" }, { value: 200, label: "juniper-dom.test", optgroup: "DISABLED" }, { value: 158, label: "juniper-m20.test", optgroup: "DISABLED" }, { value: 100, label: "junos-ipv6.test", optgroup: "DISABLED" }, { value: 151, label: "junos-pw3.test", optgroup: "DISABLED" }, { value: 248, label: "liebert-pdu.test", optgroup: "DISABLED" }, { value: 25, label: "mediant-esbc.test", optgroup: "DISABLED" }, { value: 35, label: "mediant-mp118-2.test", optgroup: "DISABLED" }, { value: 26, label: "mediant-old.test", optgroup: "DISABLED" }, { value: 102, label: "mitel.test", optgroup: "DISABLED" }, { value: 47, label: "netgear1.test", optgroup: "DISABLED" }, { value: 49, label: "netgear3.test", optgroup: "DISABLED" }, { value: 274, label: "netonix.test", optgroup: "DISABLED" }, { value: 222, label: "nimble.test", optgroup: "DISABLED" }, { value: 191, label: "nos.test", optgroup: "DISABLED" }, { value: 138, label: "obs-ex.atomfried.dyndns.org", optgroup: "DISABLED" }, { value: 139, label: "obs-srx.atomfried.dyndns.org", optgroup: "DISABLED" }, { value: 13, label: "observium.net.gpt.ru", optgroup: "DISABLED" }, { value: 37, label: "omnistack.test", optgroup: "DISABLED" }, { value: 2, label: "openbsd.test", optgroup: "DISABLED" }, { value: 38, label: "openwrt-24.test", optgroup: "DISABLED" }, { value: 30, label: "packetflux.test", optgroup: "DISABLED" }, { value: 90, label: "peakflow.test", optgroup: "DISABLED" }, { value: 82, label: "pica8.test", optgroup: "DISABLED" }, { value: 172, label: "powerconnect.test", optgroup: "DISABLED" }, { value: 98, label: "procurve-ap.test", optgroup: "DISABLED" }, { value: 85, label: "procurve-kent.test", optgroup: "DISABLED" }, { value: 84, label: "procurve.test", optgroup: "DISABLED" }, { value: 44, label: "procurve3.test", optgroup: "DISABLED" }, { value: 40, label: "prtg.observium.ru", optgroup: "DISABLED" }, { value: 223, label: "quanta-ly.test", optgroup: "DISABLED" }, { value: 247, label: "raritan-env.test", optgroup: "DISABLED" }, { value: 66, label: "shopik-huawei.test", optgroup: "DISABLED" }, { value: 165, label: "shopik-qct.test", optgroup: "DISABLED" }, { value: 252, label: "snr-switch.test", optgroup: "DISABLED" }, { value: 86, label: "sonicwall.test", optgroup: "DISABLED" }, { value: 87, label: "timos-sas.test", optgroup: "DISABLED" }, { value: 57, label: "timos.test", optgroup: "DISABLED" }, { value: 152, label: "uniping-v3.test", optgroup: "DISABLED" }, { value: 41, label: "vmware.test", optgroup: "DISABLED" }, { value: 9, label: "windows2003.test", optgroup: "DISABLED" }, { value: 190, label: "xppc-ups.test", optgroup: "DISABLED" }, { value: 180, label: "zhone-malk.test", optgroup: "DISABLED" }, { value: 179, label: "zhone-mxk.test", optgroup: "DISABLED" }, { value: 216, label: "zte-switch.test", optgroup: "DISABLED" }, { value: 119, label: "zxr10.test", optgroup: "DISABLED" }, { value: 186, label: "123.176.37.12", optgroup: "DOWN" }, { value: 269, label: "145.253.90.172", optgroup: "DOWN" }, { value: 246, label: "202.188.31.178", optgroup: "DOWN" }, { value: 218, label: "206.172.16.198", optgroup: "DOWN" }, { value: 207, label: "208.124.112.60", optgroup: "DOWN" }, { value: 267, label: "210.119.219.157", optgroup: "DOWN" }, { value: 219, label: "74.143.95.21", optgroup: "DOWN" }, { value: 184, label: "80.156.183.198", optgroup: "DOWN" }, { value: 188, label: "83.69.220.154", optgroup: "DOWN" }, { value: 59, label: "aix-1.test", optgroup: "DOWN" }, { value: 106, label: "allied2.test", optgroup: "DOWN" }, { value: 33, label: "apc-ap7822.test", optgroup: "DOWN" }, { value: 32, label: "apc-ap7862.test", optgroup: "DOWN" }, { value: 31, label: "apc-ap8941.test", optgroup: "DOWN" }, { value: 113, label: "apc-ap9631.test", optgroup: "DOWN" }, { value: 271, label: "apc-netbotz2.test", optgroup: "DOWN" }, { value: 116, label: "aten-pdu.test", optgroup: "DOWN" }, { value: 142, label: "baytech.test", optgroup: "DOWN" }, { value: 183, label: "bintec1.test", optgroup: "DOWN" }, { value: 67, label: "breeze1.test", optgroup: "DOWN" }, { value: 68, label: "breeze2.test", optgroup: "DOWN" }, { value: 69, label: "breeze3.test", optgroup: "DOWN" }, { value: 71, label: "breeze4.test", optgroup: "DOWN" }, { value: 72, label: "breeze5.test", optgroup: "DOWN" }, { value: 237, label: "brocade-bgp.test", optgroup: "DOWN" }, { value: 110, label: "cc-plus.test", optgroup: "DOWN" }, { value: 77, label: "checkpoint.test", optgroup: "DOWN" }, { value: 96, label: "cisco-2960c.test", optgroup: "DOWN" }, { value: 93, label: "cisco-7600-pw.test", optgroup: "DOWN" }, { value: 136, label: "cisco-ace.test", optgroup: "DOWN" }, { value: 209, label: "cisco-asa.test", optgroup: "DOWN" }, { value: 284, label: "cisco-asr1000.test", optgroup: "DOWN" }, { value: 141, label: "cisco-bng.test", optgroup: "DOWN" }, { value: 166, label: "cisco-catos.test", optgroup: "DOWN" }, { value: 213, label: "cisco-nxos-vrf.test", optgroup: "DOWN" }, { value: 81, label: "cisco-ons.test", optgroup: "DOWN" }, { value: 135, label: "cisco-spa.test", optgroup: "DOWN" }, { value: 88, label: "cisco-wlc.test", optgroup: "DOWN" }, { value: 229, label: "ciscosb-poe.test", optgroup: "DOWN" }, { value: 239, label: "cs141.test", optgroup: "DOWN" }, { value: 19, label: "darwin-i386.test", optgroup: "DOWN" }, { value: 20, label: "darwin-ppc.test", optgroup: "DOWN" }, { value: 1, label: "demo.observium.ru", optgroup: "DOWN" }, { value: 170, label: "develop-ineo.test", optgroup: "DOWN" }, { value: 108, label: "dgs1.test", optgroup: "DOWN" }, { value: 109, label: "dgs2.test", optgroup: "DOWN" }, { value: 192, label: "draytek-adsl.test", optgroup: "DOWN" }, { value: 280, label: "edgeswitch-xp.test", optgroup: "DOWN" }, { value: 270, label: "eltek-smart.test", optgroup: "DOWN" }, { value: 164, label: "eltex-10g.test", optgroup: "DOWN" }, { value: 221, label: "eltex-mes.test", optgroup: "DOWN" }, { value: 53, label: "extendair2.test", optgroup: "DOWN" }, { value: 127, label: "fabos-sfp.test", optgroup: "DOWN" }, { value: 176, label: "fastpath.test", optgroup: "DOWN" }, { value: 55, label: "freebsd10.test", optgroup: "DOWN" }, { value: 204, label: "ftos-dell2.test", optgroup: "DOWN" }, { value: 36, label: "ftos-s.test", optgroup: "DOWN" }, { value: 156, label: "geist-watchdog.test", optgroup: "DOWN" }, { value: 155, label: "h3c-sla2.test", optgroup: "DOWN" }, { value: 225, label: "hh3c-poe.test", optgroup: "DOWN" }, { value: 171, label: "hp-ink.test", optgroup: "DOWN" }, { value: 65, label: "hps01.luna-it-systeme.de", optgroup: "DOWN" }, { value: 161, label: "huawei-vrp1.test", optgroup: "DOWN" }, { value: 169, label: "hwg-pwr.hwg.cz", optgroup: "DOWN" }, { value: 61, label: "hwg-ste-plus.hwg.cz", optgroup: "DOWN" }, { value: 83, label: "idrac.test", optgroup: "DOWN" }, { value: 117, label: "junos-1.test", optgroup: "DOWN" }, { value: 118, label: "junos-2.test", optgroup: "DOWN" }, { value: 130, label: "junos-pw.test", optgroup: "DOWN" }, { value: 150, label: "junos-pw2.test", optgroup: "DOWN" }, { value: 268, label: "junos-srx.test", optgroup: "DOWN" }, { value: 178, label: "kyocera.test", optgroup: "DOWN" }, { value: 115, label: "liebert-hvac.test", optgroup: "DOWN" }, { value: 34, label: "mediant-mp118.test", optgroup: "DOWN" }, { value: 206, label: "mge-ups.test", optgroup: "DOWN" }, { value: 6, label: "mgm-7600.test", optgroup: "DOWN" }, { value: 29, label: "mks.stupalov.ru", optgroup: "DOWN" }, { value: 211, label: "mrv-optiswitch.test", optgroup: "DOWN" }, { value: 157, label: "netping.test", optgroup: "DOWN" }, { value: 182, label: "netscaler.test", optgroup: "DOWN" }, { value: 89, label: "olivetti.test", optgroup: "DOWN" }, { value: 202, label: "onefs8.test", optgroup: "DOWN" }, { value: 125, label: "oneos9.test", optgroup: "DOWN" }, { value: 39, label: "openwrt-26.test", optgroup: "DOWN" }, { value: 64, label: "pi.stupalov.ru", optgroup: "DOWN" }, { value: 253, label: "portal.nadlinger.at", optgroup: "DOWN" }, { value: 63, label: "poseidon.hwg.cz", optgroup: "DOWN" }, { value: 173, label: "powerconnect-old.test", optgroup: "DOWN" }, { value: 228, label: "procurve-poe.test", optgroup: "DOWN" }, { value: 104, label: "radlan.test", optgroup: "DOWN" }, { value: 148, label: "rhel7.observium.ru", optgroup: "DOWN" }, { value: 177, label: "ricoh-c.test", optgroup: "DOWN" }, { value: 279, label: "rittal-iii.test", optgroup: "DOWN" }, { value: 7, label: "sentry3.test", optgroup: "DOWN" }, { value: 79, label: "sofaware.test", optgroup: "DOWN" }, { value: 245, label: "sophos-utm.paid", optgroup: "DOWN" }, { value: 134, label: "sophos.test", optgroup: "DOWN" }, { value: 198, label: "sub10.test", optgroup: "DOWN" }, { value: 199, label: "tripplite-pdu.test", optgroup: "DOWN" }, { value: 23, label: "ubiquiti.test", optgroup: "DOWN" }, { value: 220, label: "unifi-switch.test", optgroup: "DOWN" }, { value: 137, label: "vpn6.clearip.net", optgroup: "DOWN" }, { value: 185, label: "win.observium.ru", optgroup: "DOWN" }, { value: 95, label: "windows.test", optgroup: "DOWN" }, { value: 233, label: "wowza.test", optgroup: "DOWN" }, { value: 243, label: "xppc-env.test", optgroup: "DOWN" }, { value: 242, label: "xppc.test", optgroup: "DOWN" } ] ,
multiple: true,
operators: ['in', 'notin'] } , 
{ id: 'device.hostname',
field: 'device.hostname',
label: 'Device Hostname',
type: 'string',
optgroup: 'Device',
operators: ['equals', 'notequals', 'match', 'notmatch', 'regexp', 'notregexp', 'in', 'notin', 'isnull', 'isnotnull'] } , 
{ id: 'device.os',
field: 'device.os',
label: 'Device Operating System',
type: 'string',
optgroup: 'Device',
input: 'select',
plugin: 'selectpicker',
plugin_config: { width: '100%', iconBase: '', tickIcon: 'glyphicon glyphicon-ok', showTick: true, selectedTextFormat: 'count>2', liveSearch: true, actionsBox: true,  },
values:  [ { value: "3com", label: "3Com OS" }, { value: "a10-ax", label: "A10 ACOS" }, { value: "a10-ex", label: "A10 EX" }, { value: "adf-gw", label: "ADF Gateway" }, { value: "adtran-aos", label: "ADTRAN AOS" }, { value: "aix", label: "AIX" }, { value: "sensorprobe", label: "AKCP SensorProbe" }, { value: "securityprobe", label: "AKCP securityProbe" }, { value: "apc-kvm", label: "APC IP-KVM" }, { value: "apc-isx", label: "APC InfraStruXure" }, { value: "netbotz", label: "APC Netbotz" }, { value: "apc", label: "APC OS" }, { value: "atmedia-crypt", label: "ATMedia Encryptor" }, { value: "atto-storage", label: "ATTO Storage" }, { value: "roomalert", label: "AVTECH RoomAlert" }, { value: "axiscam", label: "AXIS Network Camera" }, { value: "axisdocserver", label: "AXIS Network Document Server" }, { value: "axisprintserver", label: "AXIS Network Print Server" }, { value: "axisencoder", label: "AXIS Network Video Encoder" }, { value: "acdos", label: "Accedian Networks" }, { value: "accuvimii", label: "Accuvim II" }, { value: "acme", label: "Acme Packet" }, { value: "actelis", label: "Actelis" }, { value: "adva-fsp150", label: "Adva Optical" }, { value: "adva", label: "Adva Optical" }, { value: "aerohive-os", label: "Aerohive Switch" }, { value: "atosnt", label: "Aethra ATOS-NT" }, { value: "aethra-dsl", label: "Aethra DSL" }, { value: "aethra-vcs", label: "Aethra VCS" }, { value: "airconsole", label: "Air Console" }, { value: "aosw", label: "Alcatel-Lucent AOS-W" }, { value: "aos", label: "Alcatel-Lucent OS" }, { value: "omnistack", label: "Alcatel-Lucent Omnistack" }, { value: "allied-radlan", label: "Allied Telesis (RADLAN)" }, { value: "allied", label: "AlliedWare" }, { value: "alliedwareplus", label: "AlliedWare Plus" }, { value: "alpha-cxcrmu", label: "Alpha" }, { value: "alpha-cordex", label: "Alpha Cordex" }, { value: "alteon-ad", label: "Alteon Application Director" }, { value: "breeze", label: "Alvarion Breeze" }, { value: "breezemax", label: "Alvarion BreezeMax" }, { value: "airport", label: "Apple AirPort" }, { value: "arbos", label: "ArbOS" }, { value: "areca", label: "Areca RAID Subsystem" }, { value: "arista_eos", label: "Arista EOS" }, { value: "arrayos", label: "Array OS" }, { value: "arris-c3", label: "Arris C3" }, { value: "arris-d5", label: "Arris D5" }, { value: "arris-e6000", label: "Arris E6000" }, { value: "arubaos", label: "ArubaOS" }, { value: "aten", label: "Aten" }, { value: "aten-pdu", label: "Aten PDU" }, { value: "audiocodes", label: "Audiocodes" }, { value: "avaya-eis", label: "Avaya EIS" }, { value: "avaya-g700", label: "Avaya G700" }, { value: "avaya-ipo", label: "Avaya IP Office" }, { value: "avaya-phone", label: "Avaya IP Phone" }, { value: "avaya-server", label: "Avaya Server" }, { value: "avaya-wl", label: "Avaya Wireless" }, { value: "avocent", label: "Avocent" }, { value: "bdcom-ios", label: "BDCOM" }, { value: "avaya-bsr", label: "BSR Software" }, { value: "bti7000", label: "BTI 7000" }, { value: "buffalo-bs", label: "BUFFALO Switch" }, { value: "terastation", label: "BUFFALO TeraStation" }, { value: "barracuda-lb", label: "Barracuda LB" }, { value: "barracuda-ma", label: "Barracuda Message Archiver" }, { value: "barracudangfw", label: "Barracuda NG Firewall" }, { value: "barracuda-sc", label: "Barracuda Security" }, { value: "nortel-baystack", label: "Baystack Software" }, { value: "baytech-pdu", label: "Baytech PDU" }, { value: "billion", label: "Billion" }, { value: "bintec-os", label: "BinTec OS" }, { value: "bintec-voip", label: "BinTec VoIP" }, { value: "servsensor", label: "BlackBox ServSensor" }, { value: "asg", label: "Blue Coat ASG" }, { value: "cas", label: "Blue Coat Content Analysis System" }, { value: "bcmc", label: "Blue Coat Management Center" }, { value: "packetshaper", label: "Blue Coat Packetshaper" }, { value: "proxyav", label: "Blue Coat ProxyAV" }, { value: "proxysg", label: "Blue Coat SGOS" }, { value: "bluecat-adonis", label: "BlueCat Adonis" }, { value: "bridgewave", label: "BridgeWave" }, { value: "broadcom_fastpath", label: "Broadcom (FastPath)" }, { value: "ironware-ap", label: "Brocade AP" }, { value: "fabos", label: "Brocade FabricOS" }, { value: "ironware", label: "Brocade FastIron\/IronWare" }, { value: "nos", label: "Brocade NOS" }, { value: "brocade-vtm", label: "Brocade VTM" }, { value: "brother-printer", label: "Brother Printer" }, { value: "ccpower", label: "C&C Power" }, { value: "casa-dcts", label: "CASA DCTS" }, { value: "cdata-swe-pon", label: "CDATA" }, { value: "cts-wl", label: "CTS Switch" }, { value: "cts-switch", label: "CTS Switch" }, { value: "calix", label: "Calix" }, { value: "calix-blc", label: "Calix BLC" }, { value: "canopy", label: "Cambium Canopy" }, { value: "cambium-ptp", label: "Cambium PTP" }, { value: "epmp", label: "Cambium ePMP" }, { value: "canon-printer", label: "Canon Printer" }, { value: "pcoweb-crac", label: "Carel pCOWeb (CRAC unit)" }, { value: "pcoweb-chiller", label: "Carel pCOWeb (Chiller unit)" }, { value: "ceragon", label: "Ceragon FibeAir" }, { value: "sofaware", label: "Check Point Embedded NGX" }, { value: "gaia", label: "Check Point GAiA" }, { value: "gaia-embedded", label: "Check Point GAiA Embedded" }, { value: "ipso", label: "Check Point IPSO" }, { value: "splat", label: "Check Point SecurePlatform" }, { value: "ciena-6500", label: "Ciena 6500" }, { value: "ciscosb-rv", label: "Cisco (Linksys) Router" }, { value: "ciscosb-wl", label: "Cisco (Linksys) Wireless" }, { value: "acsw", label: "Cisco ACE" }, { value: "cisco-acns", label: "Cisco ACNS" }, { value: "cisco-ade", label: "Cisco ADE" }, { value: "asa", label: "Cisco ASA" }, { value: "cisco-acano", label: "Cisco Acano" }, { value: "cisco-css", label: "Cisco CSS" }, { value: "catos", label: "Cisco CatOS" }, { value: "cisco-ons", label: "Cisco Cerent ONS" }, { value: "cisco-dmn", label: "Cisco DMN" }, { value: "cisco-firepower", label: "Cisco FirePOWER" }, { value: "fwsm", label: "Cisco Firewall Service Module" }, { value: "ios", label: "Cisco IOS" }, { value: "iosxe", label: "Cisco IOS-XE" }, { value: "iosxr", label: "Cisco IOS-XR" }, { value: "cisco-ise", label: "Cisco Identity Services Engine" }, { value: "cimc", label: "Cisco Integrated Management Controller" }, { value: "asyncos", label: "Cisco IronPort" }, { value: "meraki", label: "Cisco Meraki" }, { value: "nxos", label: "Cisco NX-OS" }, { value: "pixos", label: "Cisco PIX-OS" }, { value: "cisco-prime", label: "Cisco Prime" }, { value: "cisco-lms", label: "Cisco Prime LMS" }, { value: "sanos", label: "Cisco SAN-OS" }, { value: "ciscosb-nss", label: "Cisco SB Storage" }, { value: "cisco-spa", label: "Cisco SPA" }, { value: "cisco-srp", label: "Cisco SRP" }, { value: "cisco-acs", label: "Cisco Secure ACS" }, { value: "ciscoscos", label: "Cisco Service Control Engine" }, { value: "ciscosb", label: "Cisco Small Business" }, { value: "cisco-tp", label: "Cisco TelePresence" }, { value: "cisco-uc", label: "Cisco Unified Communications" }, { value: "cisco-altiga", label: "Cisco VPN Concentrator" }, { value: "wlc", label: "Cisco WLC" }, { value: "netscaler", label: "Citrix Netscaler" }, { value: "clavister-cos", label: "Clavister cOS" }, { value: "cometsystem-p85xx", label: "Comet System P85xx" }, { value: "cradlepoint-router", label: "CradlePoint Router" }, { value: "cumulus-os", label: "Cumulus Linux" }, { value: "cyan", label: "Cyan" }, { value: "cyberpower-ups", label: "Cyberpower UPS" }, { value: "cyclades", label: "Cyclades" }, { value: "dlinkap", label: "D-Link Access Point" }, { value: "dlink-dsl", label: "D-Link DSL" }, { value: "dlink-generic", label: "D-Link Device" }, { value: "dlinkfw", label: "D-Link Firewall" }, { value: "dlink-cam", label: "D-Link IP-Camera" }, { value: "dlink-mc", label: "D-Link MediaConverter" }, { value: "dlinkdpr", label: "D-Link Print Server" }, { value: "dlink-ios", label: "D-Link Router" }, { value: "dlink-nas", label: "D-Link Storage" }, { value: "dlink", label: "D-Link Switch" }, { value: "dlinkvoip", label: "D-Link VoIP Gateway" }, { value: "dasan-nos", label: "DASAN NOS" }, { value: "datadomain", label: "DD OS" }, { value: "ddwrt", label: "DD-WRT" }, { value: "dps-ng", label: "DPS NetGuardian" }, { value: "dse892", label: "DSE892" }, { value: "ddn", label: "DataDirect Networks" }, { value: "dlb-wl", label: "Deliberant Wireless" }, { value: "dell-laser", label: "Dell Laser" }, { value: "dnos6", label: "Dell Networking OS" }, { value: "dell-pdu", label: "Dell PDU" }, { value: "powerconnect-fastpath", label: "Dell PowerConnect (FastPath)" }, { value: "powerconnect-old", label: "Dell PowerConnect (OLD)" }, { value: "powerconnect-radlan", label: "Dell PowerConnect (RADLAN)" }, { value: "powervault", label: "Dell PowerVault" }, { value: "dell-ups", label: "Dell UPS" }, { value: "drac", label: "Dell iDRAC" }, { value: "ftos", label: "Dell\/Force10 NOS" }, { value: "deltaups", label: "Delta UPS" }, { value: "develop", label: "Develop Printer" }, { value: "digi-anyusb", label: "Digi AnywhereUSB" }, { value: "digios", label: "Digi OS" }, { value: "digipower-pdu", label: "Digipower PDU" }, { value: "digipower-ups", label: "Digipower UPS" }, { value: "dcn-os", label: "Digital China IOS" }, { value: "dragonfly", label: "DragonflyBSD" }, { value: "draytek", label: "Draytek" }, { value: "efi-fiery", label: "EFI Print Controller" }, { value: "emc-flare", label: "EMC Flare OS" }, { value: "emc-snas", label: "EMC SNAS" }, { value: "eppc-ups", label: "EPPC UPS" }, { value: "avaya-ers", label: "ERS Software" }, { value: "mgepdu", label: "Eaton (MGE) PDU" }, { value: "mgeups", label: "Eaton (MGE) UPS" }, { value: "eaton-sc", label: "Eaton SC" }, { value: "eaton-epdu", label: "Eaton ePDU" }, { value: "edgecore-os", label: "Edgecore OS" }, { value: "ekinops-360", label: "Ekinops 360" }, { value: "eltek", label: "Eltek" }, { value: "eltek-smartpack", label: "Eltek SmartPack" }, { value: "eltex-gpon", label: "Eltex GPON" }, { value: "eltex-switch", label: "Eltex Switch" }, { value: "eltex-voip", label: "Eltex VoIP" }, { value: "engenius-switch", label: "EnGenius Managed Switch" }, { value: "engenius", label: "EnGenius Wireless" }, { value: "endian", label: "Endian Firewall" }, { value: "enlogic-pdu", label: "Enlogic PDU" }, { value: "epson-printer", label: "Epson Printer" }, { value: "ipos", label: "Ericsson IPOS" }, { value: "ericsson-switch", label: "Ericsson-LG Switch" }, { value: "ericsson-ucp", label: "Ericsson-LG UCP" }, { value: "exalt", label: "Exalt" }, { value: "exinda-os", label: "Exinda OS" }, { value: "enterasys", label: "Extreme (Enterasys) OS" }, { value: "enterasys-wl", label: "Extreme Wireless Controller" }, { value: "extreme-wlc", label: "Extreme Wireless Controller" }, { value: "xos", label: "Extreme XOS" }, { value: "extremeware", label: "Extremeware" }, { value: "f5", label: "F5 BIG-IP" }, { value: "fsfmt", label: "FS FMT" }, { value: "liberator", label: "Fastback Wireless" }, { value: "fiberroad-mc", label: "FiberRoad Media Converter" }, { value: "firebrick", label: "Firebrick" }, { value: "fireeye", label: "Fireeye" }, { value: "forcepoint-firewall", label: "Forcepoint Firewall" }, { value: "forti-wl", label: "Fortinet (Meru) Wireless" }, { value: "forti-adc", label: "Fortinet ADC" }, { value: "fortiswitch", label: "Fortinet FortiSwitch" }, { value: "fortivoice", label: "Fortinet FortiVoice" }, { value: "fortigate", label: "Fortinet Fortigate" }, { value: "forti-os", label: "Fortinet OS" }, { value: "freebsd", label: "FreeBSD" }, { value: "freenas", label: "FreeNAS" }, { value: "fuji-xerox-printer", label: "Fuji Xerox Printer" }, { value: "gcom", label: "GCOM" }, { value: "gta-gb", label: "GTA GB-OS" }, { value: "gamatronicups", label: "Gamatronic UPS Stack" }, { value: "geist-climate", label: "Geist Environmental" }, { value: "geist-pdu", label: "Geist PDU" }, { value: "geist-watchdog", label: "Geist Watchdog" }, { value: "ge-ups", label: "General Electric UPS" }, { value: "generex-ups", label: "Generex UPS Adapter" }, { value: "generic", label: "Generic Device" }, { value: "generic-ups", label: "Generic UPS Device" }, { value: "gude-pdu", label: "Gude Expert PDU" }, { value: "gude-epc", label: "Gude Expert Power Control" }, { value: "h3c", label: "H3C Comware" }, { value: "jetdirect", label: "HP Printer" }, { value: "hpux", label: "HP-UX" }, { value: "hpmsm", label: "HPE Colubris" }, { value: "hh3c", label: "HPE Comware" }, { value: "hp-gbe2c", label: "HPE GbE2c" }, { value: "hpoa", label: "HPE Onboard Administrator" }, { value: "hppdu", label: "HPE PDU" }, { value: "procurve", label: "HPE ProCurve" }, { value: "procurve-ap", label: "HPE ProCurve Access Point" }, { value: "hp-proliant", label: "HPE ProLiant" }, { value: "hpstorage", label: "HPE StorageWorks" }, { value: "hpups", label: "HPE UPS" }, { value: "hpuww", label: "HPE Unified Wired-WLAN Appliance" }, { value: "hpvc", label: "HPE Virtual Connect" }, { value: "hpilo", label: "HPE iLO Management" }, { value: "hwg-pwr", label: "HWg-PWR" }, { value: "hwg-ste", label: "HWg-STE" }, { value: "halon-mail", label: "Halon Mail Gateway" }, { value: "hikvision-dvr", label: "Hikvision DVR" }, { value: "hikvision-cam", label: "Hikvision Network Camera" }, { value: "hirschmann-os", label: "Hirschmann HiOS" }, { value: "hirschmann-security", label: "Hirschmann Security OS" }, { value: "hirschmann-switch", label: "Hirschmann Switch" }, { value: "hiveos", label: "HiveOS" }, { value: "huawei-ias", label: "Huawei IAS" }, { value: "huawei-ism", label: "Huawei Storage" }, { value: "huawei-ups", label: "Huawei UPS" }, { value: "vrp", label: "Huawei VRP" }, { value: "huawei-vsp", label: "Huawei VSP" }, { value: "huawei-vp", label: "Huawei ViewPoint" }, { value: "huawei-wl", label: "Huawei Wireless" }, { value: "huawei-imana", label: "Huawei iMana" }, { value: "ibm-amm", label: "IBM BladeCenter AMM" }, { value: "ibm-infoprint", label: "IBM Infoprint" }, { value: "ibmnos", label: "IBM NOS" }, { value: "ibm-cmm", label: "IBM PureFlex CMM" }, { value: "ibm-svc", label: "IBM SAN Volume Controller" }, { value: "ibmi", label: "IBM System i" }, { value: "ibm-tape", label: "IBM Tape Library" }, { value: "ict-pdu", label: "ICT Distribution Panel" }, { value: "ict-power", label: "ICT Power" }, { value: "wxgoos", label: "ITWatchDogs Goose" }, { value: "iqnos", label: "Infinera IQ" }, { value: "infoblox", label: "Infoblox" }, { value: "infratec-rms", label: "Infratec RMS" }, { value: "ipoman", label: "Ingrasys iPoMan" }, { value: "innacomm", label: "Innacomm Router" }, { value: "innovaphone", label: "Innovaphone" }, { value: "onefs", label: "Isilon OneFS" }, { value: "iskratel-fb", label: "Iskratel Fiberblade" }, { value: "iskratel-linux", label: "Iskratel Server" }, { value: "jdsu_edfa", label: "JDSU OEM Erbium Dotted Fibre Amplifier" }, { value: "interseptor", label: "Jacarta InterSeptor" }, { value: "janitza", label: "Janitza Electronics" }, { value: "juniper-ex", label: "Juniper EX Switch" }, { value: "jwos", label: "Juniper JWOS" }, { value: "junos", label: "Juniper JunOS" }, { value: "junose", label: "Juniper JunOSe" }, { value: "screenos", label: "Juniper ScreenOS" }, { value: "trapeze", label: "Juniper Wireless" }, { value: "kemp-lb", label: "KEMP Load Balancer" }, { value: "kerio-control", label: "Kerio Control" }, { value: "kerio-operator", label: "Kerio Operator" }, { value: "knuerr-rms", label: "Knuerr RMS" }, { value: "konica-printer", label: "Konica-Minolta Printer\/Copier" }, { value: "korenix-jetnet", label: "Korenix Jetnet" }, { value: "kyocera", label: "Kyocera Printer" }, { value: "lcos", label: "LCOS" }, { value: "lcos-old", label: "LCOS (OLD)" }, { value: "lg-printer", label: "LG Printer" }, { value: "lenovo-cnos", label: "Lenovo CNOS" }, { value: "ibm-flexswitch", label: "Lenovo\/IBM Flex Switch" }, { value: "ibm-imm", label: "Lenovo\/IBM IMM" }, { value: "lexmark", label: "Lexmark Printer" }, { value: "liebert", label: "Liebert OS" }, { value: "ligo-wl", label: "LigoWave Wireless" }, { value: "linux", label: "Linux" }, { value: "mlnx-os", label: "MLNX-OS" }, { value: "mrvnbs", label: "MRV" }, { value: "mrvld", label: "MRV LambdaDriver" }, { value: "mrvos", label: "MRV Optiswitch" }, { value: "darwin", label: "Mac OS X" }, { value: "maipu-ios", label: "Maipu IOS" }, { value: "maipu-mpsec", label: "Maipu MPSec" }, { value: "maipu-mypower", label: "Maipu MyPower" }, { value: "manageups", label: "ManageUPS Adapter" }, { value: "mcafee-meg", label: "McAfee MEG Appliance" }, { value: "meinberg-lantime", label: "Meinberg LANTIME" }, { value: "mlnx-ufm", label: "Mellanox UFM" }, { value: "aruba-meshos", label: "MeshOS" }, { value: "messpc-ethernetbox", label: "MessPC Ethernetbox" }, { value: "metrolinq", label: "MetroLinq" }, { value: "microsens", label: "Microsens" }, { value: "microsens-g6", label: "Microsens G6" }, { value: "windows", label: "Microsoft Windows" }, { value: "routeros", label: "Mikrotik RouterOS" }, { value: "mikrotik-swos", label: "Mikrotik SwOS" }, { value: "mimosa-backhaul", label: "Mimosa Backhaul Radio" }, { value: "minkelsrms", label: "Minkels RMS" }, { value: "minuteman", label: "Minuteman UPS" }, { value: "mcd", label: "Mitel Controller" }, { value: "mitsubishi-ups", label: "Mitsubishi UPS" }, { value: "netopia", label: "Motorola Netopia" }, { value: "moxa-np5000", label: "Moxa NP5000" }, { value: "moxa-router", label: "Moxa Router" }, { value: "moxa-serial", label: "Moxa Serial Terminal" }, { value: "moxa-switch", label: "Moxa Switch" }, { value: "nas4free", label: "NAS4Free" }, { value: "nrg", label: "NRG Printer" }, { value: "nxp-mqx-rtcs", label: "NXP MQX RTOS\/RTCS" }, { value: "nimbra", label: "Net Insight Nimbra" }, { value: "netagent", label: "NetAgent" }, { value: "netapp", label: "NetApp" }, { value: "netbsd", label: "NetBSD" }, { value: "netman", label: "NetMan" }, { value: "netmanplus", label: "NetMan Plus" }, { value: "netping-pwr3", label: "NetPing 8\/PWRv3\/SMS" }, { value: "netping-pwr2", label: "NetPing 8\/PWRv3\/SMS" }, { value: "netgear", label: "Netgear OS" }, { value: "netgear-readyos", label: "Netgear ReadyOS" }, { value: "netonix-switch", label: "Netonix Switch" }, { value: "nexenta", label: "NexentaOS" }, { value: "nestos", label: "Nexsan NST" }, { value: "nimble-os", label: "Nimble Storage" }, { value: "timos", label: "Nokia Networks SROS" }, { value: "netware", label: "Novell Netware" }, { value: "nutanix", label: "Nutanix" }, { value: "oec", label: "OEC PDU" }, { value: "okilan", label: "OKI Printer" }, { value: "opnsense", label: "OPNsense" }, { value: "olivetti-printer", label: "Olivetti Printer" }, { value: "omnitron-iconverter", label: "Omnitron iConverter" }, { value: "oneos", label: "OneAccess OneOS" }, { value: "dss", label: "Open-E DSS" }, { value: "openbsd", label: "OpenBSD" }, { value: "openindiana", label: "OpenIndiana" }, { value: "openwrt", label: "OpenWrt" }, { value: "opengear", label: "Opengear" }, { value: "teradici-pcoip", label: "PCoIP" }, { value: "sitemonitor", label: "PacketFlux SiteMonitor" }, { value: "plos", label: "PacketLogic" }, { value: "panos", label: "PanOS" }, { value: "panasas-panfs", label: "Panasas ActiveStor" }, { value: "panasonic-printer", label: "Panasonic Printer" }, { value: "papouch", label: "Papouch Probe" }, { value: "smartware", label: "Patton Smartnode" }, { value: "peplink-balance", label: "Peplink Balance" }, { value: "peplink-apone", label: "Pepwave AP One" }, { value: "perle-mcr", label: "Perle MCR-MGT" }, { value: "picos", label: "Pica8 OS" }, { value: "plugandtrack", label: "Plug&Track v2" }, { value: "poseidon", label: "Poseidon" }, { value: "powerware", label: "Powerware UPS" }, { value: "proxim", label: "Proxim Wireless" }, { value: "juniperive", label: "Pulse Connect Secure" }, { value: "qnap", label: "QNAP TurboNAS" }, { value: "quanta-switch", label: "Quanta Switch" }, { value: "racktivity", label: "Racktivity EnergySwitch" }, { value: "radware", label: "Radware DefensePro" }, { value: "radware-os", label: "Radware OS" }, { value: "raisecom-iscom", label: "Raisecom ISCOM" }, { value: "raritan-emx", label: "Raritan EMX" }, { value: "raritan-kvm", label: "Raritan KVM" }, { value: "raritan", label: "Raritan PDU" }, { value: "rdl", label: "Redline" }, { value: "ricoh", label: "Ricoh Printer" }, { value: "rittalcmc3_lcp", label: "Rittal CMC-III-LCP" }, { value: "rittalcmc3_pu", label: "Rittal CMC-III-PU" }, { value: "rittalcmc_lcp", label: "Rittal CMC-LCP" }, { value: "rittalcmc_pu", label: "Rittal CMC-PU" }, { value: "steelhead", label: "Riverbed Steelhead" }, { value: "zeustm", label: "Riverbed Stingray" }, { value: "ruckus-scg", label: "Ruckus SmartCellGateway" }, { value: "ruckus-sz", label: "Ruckus SmartZone" }, { value: "ruckus-wl", label: "Ruckus Wireless" }, { value: "ruckus-zd", label: "Ruckus ZoneDirector" }, { value: "ruckus-zf", label: "Ruckus ZoneFlex" }, { value: "saf-ipradio", label: "SAF Radio" }, { value: "ciena", label: "SAOS" }, { value: "sindoh", label: "SINDOH Printer" }, { value: "snr-switch", label: "SNR" }, { value: "snr-erd-2", label: "SNR ERD-2" }, { value: "snr-erd-4", label: "SNR ERD-4" }, { value: "samsung-printer", label: "Samsung Printer" }, { value: "sensatronics", label: "Sensatronics" }, { value: "sensorgateway", label: "ServerRoom Sensor Gateway" }, { value: "sentry-pdu", label: "ServerTech Sentry PDU" }, { value: "sentry3", label: "ServerTech Sentry3" }, { value: "sharp-printer", label: "Sharp Printer" }, { value: "shoretelos", label: "ShoreTel OS" }, { value: "siklu-wl", label: "Siklu EtherHaul" }, { value: "seos", label: "SmartEdge OS" }, { value: "smartos", label: "SmartOS" }, { value: "netvision", label: "Socomec Net Vision" }, { value: "sonicwall", label: "SonicOS" }, { value: "sonicwall-ssl", label: "SonicOS SSL" }, { value: "sophos", label: "Sophos UTM" }, { value: "equallogic", label: "Storage Array Firmware" }, { value: "compellent", label: "Storage Center" }, { value: "ns-bsd", label: "Stormshield NS-BSD" }, { value: "summitd-wl", label: "Summit Developlment" }, { value: "sun-ilom", label: "Sun ILOM" }, { value: "opensolaris", label: "Sun OpenSolaris" }, { value: "solaris", label: "Sun Solaris" }, { value: "supermicro-switch", label: "Supermicro Switch" }, { value: "symbol", label: "Symbol Wireless" }, { value: "dsm", label: "Synology DSM" }, { value: "srm", label: "Synology SRM" }, { value: "tplink-router", label: "TP-LINK Router" }, { value: "tplink", label: "TP-LINK Switch" }, { value: "tplinkap", label: "TP-LINK Wireless" }, { value: "tsl-mdu12", label: "TSL MDU12" }, { value: "teltonika", label: "Teltonika" }, { value: "tempalert", label: "TempAlert" }, { value: "teracom", label: "Teracom TCW" }, { value: "speedtouch", label: "Thomson Speedtouch" }, { value: "tippingpoint-ips", label: "TippingPoint IPS" }, { value: "tippingpoint-sms", label: "TippingPoint SMS" }, { value: "topaz-switch", label: "Topaz Switch" }, { value: "toshiba-printer", label: "Toshiba Printer" }, { value: "trango-apex", label: "Trango Apex" }, { value: "tranzeo", label: "Tranzeo" }, { value: "tl-mgmt", label: "Tripp Lite Management" }, { value: "poweralert", label: "Tripp Lite PowerAlert" }, { value: "truen-video", label: "Truen Camera\/Server" }, { value: "airos-af", label: "Ubiquiti AirFiber" }, { value: "airos", label: "Ubiquiti AirOS" }, { value: "edgemax", label: "Ubiquiti EdgeMAX" }, { value: "edgeos", label: "Ubiquiti EdgeOS" }, { value: "ubnt-edgepower", label: "Ubiquiti EdgePower" }, { value: "unifi-switch", label: "Ubiquiti UniFi Switch" }, { value: "unifi", label: "Ubiquiti UniFi Wireless" }, { value: "uniping", label: "UniPing" }, { value: "uniping-server", label: "UniPing Server" }, { value: "uniping-server-v3", label: "UniPing Server" }, { value: "vmware", label: "VMware" }, { value: "vivotek-encoder", label: "Vivotek Video Server" }, { value: "vubiq-wl", label: "Vubiq HaulPass" }, { value: "vyos", label: "VyOS" }, { value: "vyatta", label: "Vyatta Core" }, { value: "wti-rsm-tsm", label: "WTI" }, { value: "firebox", label: "WatchGuard Fireware" }, { value: "ciena-waveserveros", label: "Waveserver OS" }, { value: "ibos", label: "Waystream iBOS" }, { value: "wipg", label: "WePresent WiPG" }, { value: "wut", label: "Web-Thermograph" }, { value: "wowza-engine", label: "Wowza Streaming Engine" }, { value: "xerox-printer", label: "Xerox Printer" }, { value: "zxa10", label: "ZTE ZXA10" }, { value: "zxip10", label: "ZTE ZXIP10" }, { value: "zxr10", label: "ZTE ZXR10" }, { value: "zxv10", label: "ZTE ZXV10" }, { value: "zebra-printer", label: "Zebra Printer" }, { value: "zhonedslam", label: "Zhone DLSAM" }, { value: "zhone-ethx", label: "Zhone EtherXtend" }, { value: "zhone-malc", label: "Zhone MALC" }, { value: "zhone-mxk", label: "Zhone MXK" }, { value: "zhone-znid", label: "Zhone ZNID" }, { value: "zyxelnwa", label: "ZyXEL NWA" }, { value: "prestige", label: "ZyXEL Prestige" }, { value: "ies", label: "ZyXEL Router" }, { value: "zyxeles", label: "ZyXEL Switch" }, { value: "zywall", label: "ZyXEL ZyWALL" }, { value: "ecos", label: "eCos" }, { value: "irz-os", label: "iRZ Linux" }, { value: "jetnexus-lb", label: "jetNexus LB" }, { value: "monowall", label: "m0n0wall" }, { value: "pfsense", label: "pfSense" } ] ,
multiple: true,
operators: ['in', 'notin'] } , 
{ id: 'device.os.free',
field: 'device.os',
label: 'Device Operating System (Free)',
type: 'string',
optgroup: 'Device',
operators: ['equals', 'notequals', 'match', 'notmatch', 'regexp', 'notregexp', 'in', 'notin', 'isnull', 'isnotnull'] } , 
{ id: 'device.type',
field: 'device.type',
label: 'Device Type',
type: 'string',
optgroup: 'Device',
input: 'select',
plugin: 'selectpicker',
plugin_config: { width: '100%', iconBase: '', tickIcon: 'glyphicon glyphicon-ok', showTick: true, selectedTextFormat: 'count>2', liveSearch: true, actionsBox: true,  },
values:  [ { value: "communication", label: "Communication" }, { value: "environment", label: "Environment" }, { value: "firewall", label: "Firewalls" }, { value: "loadbalancer", label: "Load Balancers" }, { value: "management", label: "Management" }, { value: "network", label: "Network" }, { value: "power", label: "Power" }, { value: "printer", label: "Printers" }, { value: "radio", label: "Radio" }, { value: "security", label: "Security" }, { value: "blade", label: "Server Blades" }, { value: "server", label: "Servers" }, { value: "storage", label: "Storage" }, { value: "video", label: "Video" }, { value: "voip", label: "VoIP" }, { value: "wireless", label: "Wireless" }, { value: "workstation", label: "Workstations" } ] ,
multiple: true,
operators: ['in', 'notin'] } , 
{ id: 'device.type.free',
field: 'device.type',
label: 'Device Type (Free)',
type: 'string',
optgroup: 'Device',
operators: ['equals', 'notequals', 'match', 'notmatch', 'regexp', 'notregexp', 'in', 'notin', 'isnull', 'isnotnull'] } , 
{ id: 'device.distro',
field: 'device.distro',
label: 'Device Distro',
type: 'string',
optgroup: 'Device',
input: 'select',
plugin: 'selectpicker',
plugin_config: { width: '100%', iconBase: '', tickIcon: 'glyphicon glyphicon-ok', showTick: true, selectedTextFormat: 'count>2',  },
values:  [ { value: "Ubuntu", label: "Ubuntu" } ] ,
multiple: true,
operators: ['in', 'notin'] } , 
{ id: 'device.distro.free',
field: 'device.distro',
label: 'Device Distro (Free)',
type: 'string',
optgroup: 'Device',
operators: ['equals', 'notequals', 'match', 'notmatch', 'regexp', 'notregexp', 'in', 'notin', 'isnull', 'isnotnull'] } , 
{ id: 'device.distro_ver',
field: 'device.distro_ver',
label: 'Device Distro Version',
type: 'string',
optgroup: 'Device',
input: 'select',
plugin: 'selectpicker',
plugin_config: { width: '100%', iconBase: '', tickIcon: 'glyphicon glyphicon-ok', showTick: true, selectedTextFormat: 'count>2',  },
values:  [ { value: "16.04", label: "16.04" } ] ,
multiple: true,
operators: ['in', 'notin'] } , 
{ id: 'device.distro_ver.free',
field: 'device.distro_ver',
label: 'Device Distro Version (Free)',
type: 'string',
optgroup: 'Device',
operators: ['equals', 'notequals', 'match', 'notmatch', 'regexp', 'notregexp', 'in', 'notin', 'isnull', 'isnotnull'] } , 
{ id: 'device.hardware',
field: 'device.hardware',
label: 'Device Hardware',
type: 'string',
optgroup: 'Device',
operators: ['equals', 'notequals', 'match', 'notmatch', 'regexp', 'notregexp', 'in', 'notin', 'isnull', 'isnotnull'] } , 
{ id: 'device.serial',
field: 'device.serial',
label: 'Device Serial',
type: 'string',
optgroup: 'Device',
operators: ['equals', 'notequals', 'match', 'notmatch', 'regexp', 'notregexp', 'in', 'notin', 'isnull', 'isnotnull'] } , 
{ id: 'device.purpose',
field: 'device.purpose',
label: 'Device Purpose',
type: 'string',
optgroup: 'Device',
operators: ['equals', 'notequals', 'match', 'notmatch', 'regexp', 'notregexp', 'in', 'notin', 'isnull', 'isnotnull'] } , 
{ id: 'device.sysname',
field: 'device.sysname',
label: 'Device sysName',
type: 'string',
optgroup: 'Device',
operators: ['equals', 'notequals', 'match', 'notmatch', 'regexp', 'notregexp', 'in', 'notin', 'isnull', 'isnotnull'] } , 
{ id: 'device.sysdescr',
field: 'device.sysdescr',
label: 'Device sysDescr',
type: 'string',
optgroup: 'Device',
operators: ['equals', 'notequals', 'match', 'notmatch', 'regexp', 'notregexp', 'in', 'notin', 'isnull', 'isnotnull'] } , 
{ id: 'device.sysobjectid',
field: 'device.sysobjectid',
label: 'Device sysObjectID',
type: 'string',
optgroup: 'Device',
operators: ['equals', 'notequals', 'match', 'notmatch', 'regexp', 'notregexp', 'in', 'notin', 'isnull', 'isnotnull'] } , 
{ id: 'device.syscontact',
field: 'device.syscontact',
label: 'Device sysContact',
type: 'string',
optgroup: 'Device',
operators: ['equals', 'notequals', 'match', 'notmatch', 'regexp', 'notregexp', 'in', 'notin', 'isnull', 'isnotnull'] } , 
{ id: 'device.group_id',
field: 'device.group_id',
label: 'Device Group',
type: 'string',
optgroup: 'Device',
input: 'select',
plugin: 'selectpicker',
plugin_config: { width: '100%', iconBase: '', tickIcon: 'glyphicon glyphicon-ok', showTick: true, selectedTextFormat: 'count>2',  },
values:  [ { value: 1, label: "All devices" }, { value: 2, label: "Cisco IOS" }, { value: 11, label: "Cisco IOS (new)" }, { value: 10, label: "DEV" }, { value: 4, label: "Many ports devices" }, { value: 16, label: "Test IP\/Network" }, { value: 12, label: "Test derp" } ] ,
multiple: true,
operators: ['in', 'notin'] } , 
{ id: 'device.group',
field: 'device.group',
label: 'Device Group (Free)',
type: 'string',
optgroup: 'Device',
operators: ['match', 'notmatch'] } , 
{ id: 'device.location_id',
field: 'device.location_id',
label: 'Device Location',
type: 'string',
optgroup: 'Device',
input: 'select',
plugin: 'selectpicker',
plugin_config: { width: '100%', iconBase: '', tickIcon: 'glyphicon glyphicon-ok', showTick: true, selectedTextFormat: 'count>2', liveSearch: true, actionsBox: true,  },
values:  [ { value: 0, label: "" }, { value: 1, label: "###5153382-2#" }, { value: 2, label: "(none)" }, { value: 3, label: "1111 W. 35th St., Chicago IL, 60609" }, { value: 4, label: "1111 W. 35th St., Chicago, IL 60609" }, { value: 5, label: "2 Piso SISEI" }, { value: 6, label: "4-5-3" }, { value: 7, label: "4199 Jericho Turnpike, East Northport, NY 11731" }, { value: 8, label: "4655 Great America Parkway,Santa Clara,CA 95054" }, { value: 9, label: "AU Row 2" }, { value: 10, label: "Alphalink TelcoCenter (PAR02)" }, { value: 11, label: "Association Avocats Esquirol" }, { value: 12, label: "Aulario, Segundo piso, Salon 103" }, { value: 13, label: "BayTech  Bay St. Louis, MS  USA" }, { value: 14, label: "Beijing China" }, { value: 15, label: "Bocholt" }, { value: 16, label: "Bos van AA, 1980 Zemst, Belgium" }, { value: 17, label: "Brur Hail" }, { value: 18, label: "CBJ2" }, { value: 19, label: "CWind-Tehachapi" }, { value: 20, label: "Calwind-Row2" }, { value: 21, label: "Computer Center" }, { value: 22, label: "Computer Room" }, { value: 23, label: "Customer: Lotte" }, { value: 24, label: "DC RADUGA-2" }, { value: 25, label: "DC SDN" }, { value: 26, label: "DC Stack" }, { value: 27, label: "EADC" }, { value: 28, label: "Elmhurst" }, { value: 29, label: "Eltel, Polyustrovskiy 59, Saint-Petersburg, Russia" }, { value: 30, label: "Eltex" }, { value: 31, label: "Equinix AM2,Amsterdam,Netherlands" }, { value: 32, label: "FLG" }, { value: 33, label: "GHH94,GHHome,FR" }, { value: 34, label: "Germany, Berlin" }, { value: 35, label: "Grafton UPS" }, { value: 36, label: "HQ:WP:1st Floor:Data Center" }, { value: 37, label: "Hangzhou, China" }, { value: 38, label: "Hill of Difficulty, Adamstown, Pitcairn Island" }, { value: 39, label: "Hwamien in Sanchong" }, { value: 40, label: "INSH 401up\/up" }, { value: 41, label: "InterXion3" }, { value: 42, label: "JH9516" }, { value: 43, label: "Kazan" }, { value: 44, label: "Krasnoyarsk" }, { value: 45, label: "LUIZ ALVES" }, { value: 46, label: "LevelIP-RackB6" }, { value: 47, label: "Location - Santa Maria Palutordera" }, { value: 48, label: "M1-L81-5" }, { value: 49, label: "MMR Duren Tiga" }, { value: 50, label: "MMTC9, Floor 7" }, { value: 51, label: "MMU.B.B06" }, { value: 52, label: "Mike home" }, { value: 53, label: "Mike's Home" }, { value: 54, label: "Moscow, Russia" }, { value: 55, label: "Moskow" }, { value: 56, label: "My Office" }, { value: 57, label: "Nadlinger" }, { value: 58, label: "Nymburk" }, { value: 59, label: "OVH, Roubaix, France" }, { value: 60, label: "Office SPB" }, { value: 61, label: "PAERIA, LLEIDA" }, { value: 62, label: "POP (default)" }, { value: 63, label: "PR3 5LD [53.803686, -2.711126]" }, { value: 64, label: "Pomorzany MCD" }, { value: 65, label: "Pop Comat" }, { value: 66, label: "REWRITE old" }, { value: 67, label: "REWRITE regexp" }, { value: 68, label: "Radio B" }, { value: 69, label: "Raum 115a" }, { value: 70, label: "Robert Weslyn College" }, { value: 71, label: "Rue de la Métallurgie, 4530 Villers-le-Bouillet, België" }, { value: 72, label: "San Jose, CA" }, { value: 73, label: "ServerRoom" }, { value: 74, label: "Sitting on the Dock of the Bay" }, { value: 75, label: "Skyline Tank5b-Naf" }, { value: 76, label: "Somewhere" }, { value: 77, label: "Suedwestpark 43, 90449 Nuernberg, Germany" }, { value: 78, label: "System Location" }, { value: 79, label: "System location" }, { value: 80, label: "TCR-MAN" }, { value: 81, label: "THE" }, { value: 82, label: "TV Repeater" }, { value: 83, label: "Taiwan office" }, { value: 84, label: "Uninitialized" }, { value: 85, label: "Unknown" }, { value: 86, label: "Unknown (edit \/etc\/snmp\/snmpd.conf)" }, { value: 87, label: "WDLDWA02" }, { value: 88, label: "Walla Walla, WA" }, { value: 89, label: "Wezembeekstraat 2, 1930 Zaventem, Belgium" }, { value: 90, label: "[n4]" }, { value: 91, label: "balzaka14f" }, { value: 92, label: "cejl.brq" }, { value: 93, label: "cphc FTP" }, { value: 94, label: "iMG616_v018" }, { value: 95, label: "istanbul" }, { value: 96, label: "location" }, { value: 97, label: "muskogee" }, { value: 98, label: "myLoc Duesseldorf" }, { value: 99, label: "office" }, { value: 100, label: "snmplocation" }, { value: 101, label: "unknown" } ] ,
multiple: true,
operators: ['in', 'notin'] } , 
{ id: 'device.location',
field: 'device.location',
label: 'Device Location (Free)',
type: 'string',
optgroup: 'Device',
operators: ['equals', 'notequals', 'match', 'notmatch', 'regexp', 'notregexp', 'in', 'notin', 'isnull', 'isnotnull'] } , 
{ id: 'device.ignore',
field: 'device.ignore',
label: 'Device Ignored',
type: 'integer',
optgroup: 'Device',
input: 'select',
plugin: 'selectpicker',
plugin_config: { width: '100%', iconBase: '', tickIcon: 'glyphicon glyphicon-ok', showTick: true, selectedTextFormat: 'count>2',  },
values:  [ { value: 0, label: "False" }, { value: 1, label: "True" } ] ,
multiple: false,
operators: ['equals', 'notequals'] } , 
{ id: 'device.disabled',
field: 'device.disabled',
label: 'Device Disabled',
type: 'integer',
optgroup: 'Device',
input: 'select',
plugin: 'selectpicker',
plugin_config: { width: '100%', iconBase: '', tickIcon: 'glyphicon glyphicon-ok', showTick: true, selectedTextFormat: 'count>2',  },
values:  [ { value: 0, label: "False" }, { value: 1, label: "True" } ] ,
multiple: false,
operators: ['equals', 'notequals'] } , 
{ id: 'device.ipv4_address',
field: 'device.ipv4_address',
label: 'Device IPv4',
type: 'string',
optgroup: 'Device',
input: 'select',
plugin: 'tagsinput',
plugin_config: { trimValue: true, tagClass: function(item) { return 'label label-default'; } },
value_separator: '|',
multiple: true,
operators: ['in', 'notin'] } , 
{ id: 'device.ipv6_address',
field: 'device.ipv6_address',
label: 'Device IPv6',
type: 'string',
optgroup: 'Device',
input: 'select',
plugin: 'tagsinput',
plugin_config: { trimValue: true, tagClass: function(item) { return 'label label-default'; } },
value_separator: '|',
multiple: true,
operators: ['in', 'notin'] } , 
{ id: 'entity.ifSpeed',
field: 'entity.ifSpeed',
label: 'Port ifSpeed',
type: 'integer',
optgroup: 'Port',
operators: ['equals', 'notequals', 'le', 'ge', 'lt', 'gt', 'in', 'notin'] } , 
{ id: 'entity.ifAlias',
field: 'entity.ifAlias',
label: 'Port ifAlias',
type: 'string',
optgroup: 'Port',
operators: ['equals', 'notequals', 'match', 'notmatch', 'regexp', 'notregexp', 'in', 'notin', 'isnull', 'isnotnull'] } , 
{ id: 'entity.ifDescr',
field: 'entity.ifDescr',
label: 'Port ifDescr',
type: 'string',
optgroup: 'Port',
operators: ['equals', 'notequals', 'match', 'notmatch', 'regexp', 'notregexp', 'in', 'notin', 'isnull', 'isnotnull'] } , 
{ id: 'entity.ifName',
field: 'entity.ifName',
label: 'Port ifName',
type: 'string',
optgroup: 'Port',
operators: ['equals', 'notequals', 'match', 'notmatch', 'regexp', 'notregexp', 'in', 'notin', 'isnull', 'isnotnull'] } , 
{ id: 'entity.ifType',
field: 'entity.ifType',
label: 'Port ifType',
type: 'string',
optgroup: 'Port',
operators: ['equals', 'notequals', 'match', 'notmatch', 'regexp', 'notregexp', 'in', 'notin', 'isnull', 'isnotnull'] } , 
{ id: 'entity.ifPhysAddress',
field: 'entity.ifPhysAddress',
label: 'Port ifPhysAddress',
type: 'string',
optgroup: 'Port',
operators: ['equals', 'notequals', 'match', 'notmatch', 'regexp', 'notregexp', 'in', 'notin', 'isnull', 'isnotnull'] } , 
{ id: 'entity.ifVlan',
field: 'entity.ifVlan',
label: 'Port ifVlan',
type: 'integer',
optgroup: 'Port',
operators: ['equals', 'notequals', 'le', 'ge', 'lt', 'gt', 'in', 'notin'] } , 
{ id: 'entity.port_label',
field: 'entity.port_label',
label: 'Port Label',
type: 'string',
optgroup: 'Port',
operators: ['equals', 'notequals', 'match', 'notmatch', 'regexp', 'notregexp', 'in', 'notin', 'isnull', 'isnotnull'] } , 
{ id: 'entity.port_short_label',
field: 'entity.port_short_label',
label: 'Port Short Label',
type: 'string',
optgroup: 'Port',
operators: ['equals', 'notequals', 'match', 'notmatch', 'regexp', 'notregexp', 'in', 'notin', 'isnull', 'isnotnull'] } , 
{ id: 'entity.port_label_base',
field: 'entity.port_label_base',
label: 'Port Label Base',
type: 'string',
optgroup: 'Port',
operators: ['equals', 'notequals', 'match', 'notmatch', 'regexp', 'notregexp', 'in', 'notin', 'isnull', 'isnotnull'] } , 
{ id: 'entity.port_label_num',
field: 'entity.port_label_num',
label: 'Port Label Numeric',
type: 'string',
optgroup: 'Port',
operators: ['equals', 'notequals', 'match', 'notmatch', 'regexp', 'notregexp', 'in', 'notin', 'isnull', 'isnotnull'] } , 
{ id: 'entity.port_descr_type',
field: 'entity.port_descr_type',
label: 'Port Parsed Type',
type: 'string',
optgroup: 'Port',
operators: ['equals', 'notequals', 'match', 'notmatch', 'regexp', 'notregexp', 'in', 'notin', 'isnull', 'isnotnull'] } , 
{ id: 'entity.port_descr_descr',
field: 'entity.port_descr_descr',
label: 'Port Parsed Descr',
type: 'string',
optgroup: 'Port',
operators: ['equals', 'notequals', 'match', 'notmatch', 'regexp', 'notregexp', 'in', 'notin', 'isnull', 'isnotnull'] } , 
{ id: 'entity.port_descr_speed',
field: 'entity.port_descr_speed',
label: 'Port Parsed Speed',
type: 'string',
optgroup: 'Port',
operators: ['equals', 'notequals', 'match', 'notmatch', 'regexp', 'notregexp', 'in', 'notin', 'isnull', 'isnotnull'] } , 
{ id: 'entity.port_descr_circuit',
field: 'entity.port_descr_circuit',
label: 'Port Parsed Circuit ID',
type: 'string',
optgroup: 'Port',
operators: ['equals', 'notequals', 'match', 'notmatch', 'regexp', 'notregexp', 'in', 'notin', 'isnull', 'isnotnull'] } , 
{ id: 'entity.port_descr_notes',
field: 'entity.port_descr_notes',
label: 'Port Parsed Note',
type: 'string',
optgroup: 'Port',
operators: ['equals', 'notequals', 'match', 'notmatch', 'regexp', 'notregexp', 'in', 'notin', 'isnull', 'isnotnull'] } , 
{ id: 'entity.port_mcbc',
field: 'entity.port_mcbc',
label: 'Port Port has MC/BC',
type: 'integer',
optgroup: 'Port',
input: 'select',
plugin: 'selectpicker',
plugin_config: { width: '100%', iconBase: '', tickIcon: 'glyphicon glyphicon-ok', showTick: true, selectedTextFormat: 'count>2',  },
values:  [ { value: 0, label: "False" }, { value: 1, label: "True" } ] ,
multiple: false,
operators: ['equals', 'notequals'] } , 
{ id: 'entity.ignore',
field: 'entity.ignore',
label: 'Port Ignored',
type: 'integer',
optgroup: 'Port',
input: 'select',
plugin: 'selectpicker',
plugin_config: { width: '100%', iconBase: '', tickIcon: 'glyphicon glyphicon-ok', showTick: true, selectedTextFormat: 'count>2',  },
values:  [ { value: 0, label: "False" }, { value: 1, label: "True" } ] ,
multiple: false,
operators: ['equals', 'notequals'] } , 
{ id: 'entity.disabled',
field: 'entity.disabled',
label: 'Port Disabled',
type: 'integer',
optgroup: 'Port',
input: 'select',
plugin: 'selectpicker',
plugin_config: { width: '100%', iconBase: '', tickIcon: 'glyphicon glyphicon-ok', showTick: true, selectedTextFormat: 'count>2',  },
values:  [ { value: 0, label: "False" }, { value: 1, label: "True" } ] ,
multiple: false,
operators: ['equals', 'notequals'] } , 
{ id: 'entity.ipv4_address',
field: 'entity.ipv4_address',
label: 'Port IPv4',
type: 'string',
optgroup: 'Port',
input: 'select',
plugin: 'tagsinput',
plugin_config: { trimValue: true, tagClass: function(item) { return 'label label-default'; } },
value_separator: '|',
multiple: true,
operators: ['in', 'notin'] } , 
{ id: 'entity.ipv6_address',
field: 'entity.ipv6_address',
label: 'Port IPv6',
type: 'string',
optgroup: 'Port',
input: 'select',
plugin: 'tagsinput',
plugin_config: { trimValue: true, tagClass: function(item) { return 'label label-default'; } },
value_separator: '|',
multiple: true,
operators: ['in', 'notin'] }  ] ,

      //operators: $.fn.queryBuilder.constructor.DEFAULTS.operators.concat([
      operators: ([
      { type: 'le',           nb_inputs: 1, multiple: false, apply_to: ['string'] },
      { type: 'ge',           nb_inputs: 1, multiple: false, apply_to: ['string'] },
      { type: 'lt',           nb_inputs: 1, multiple: false, apply_to: ['string'] },
      { type: 'gt',           nb_inputs: 1, multiple: false, apply_to: ['string'] },
      { type: 'equals',       nb_inputs: 1, multiple: false, apply_to: ['string'] },
      { type: 'notequals',  nb_inputs: 1, multiple: false, apply_to: ['string'] },
      { type: 'match',        nb_inputs: 1, multiple: false, apply_to: ['string'] },
      { type: 'notmatch',     nb_inputs: 1, multiple: false, apply_to: ['string'] },
      { type: 'regexp',       nb_inputs: 1, multiple: false, apply_to: ['string'] },
      { type: 'notregexp',  nb_inputs: 1, multiple: false, apply_to: ['string'] },
      { type: 'in',           nb_inputs: 1, multiple: true,  apply_to: ['string'] },
      { type: 'notin',        nb_inputs: 1, multiple: true,  apply_to: ['string'] },
      { type: 'isnull',           nb_inputs: 0,  apply_to: ['string'] },
      { type: 'isnotnull',        nb_inputs: 0,  apply_to: ['string'] }
    ]),
    lang: {
      operators: {
        le:         'less or equal',
        ge:         'greater or equal',
        lt:         'less than',
        gt:         'greater than',
        equals:     'equals',
        notequals:  'not equals',
        match:      'match',
        notmatch:   'not match',
        regexp:     'regexp',
        notregexp:  'not regexp',
        in:         'in',
        notin:      'not in',
        isnull:     'is null',
        isnotnull:    'not null'
      }
    },
  });

$('#btn-reset').on('click', function() {
  $('#rules-GcnlgGlI').queryBuilder('reset');
});

$('#btn-get').on('click', function() {
  var result = $('#rules-GcnlgGlI').queryBuilder('getRules');

  if (!$.isEmptyObject(result)) {
    bootbox.alert({
      title: $(this).text(),
      message: '<pre class="code-popup">' + format4popup(result) + '</pre>'
    });
  }
});

function format4popup(object) {
  return JSON.stringify(object, null, 2).replace(/</g, '&lt;').replace(/>/g, '&gt;')
}

</script>
landy2005 commented 6 years ago

Hrm, seems this happen because that field not have filter values, taginput is select but with empty initial array.

mistic100 commented 6 years ago

Could you create a simple repro ? I won't try the find the interesting stuff in your script.

landy2005 commented 6 years ago

Hrm, I tried to reproduce in jsfiddle, but I did not succeed, I'm not js expert. I can give access (privately) to my dev wui, where I can show example.

But bassically trouble in that bs-tagsinput plugin allow insert freestring as select item (not known in advance). setRules - not allowed to set "unknown before by filter" select items.

Tagsinput have methods for add items, but I not know how use it for QB: https://github.com/bootstrap-tagsinput/bootstrap-tagsinput

mistic100 commented 6 years ago

I'm sorry I don't have time to investigate from scratch.

For what I see you probably need to use the "valueGetter" and "valueSetter" filter methods to synchronize the plugin with the builder, check the examples.

landy2005 commented 6 years ago

Yah, seems as I fixed for self by valueSetter:

valueSetter: function(rule, value) {
          var rule_container = rule.\$el.find('.rule-value-container select');
          for (i = 0; i < value.length; ++i) { rule_container.tagsinput('add', value[i]); }
        }