Zmiany pomiędzy wersją 83 and wersją 84 dla DeployerGuide/AdvancedConfiguration/CustomRegisters

Pokaż
Ignoruj:
Data i czas:
05/19/17 13:38:09 (8 years temu)
Autor:
JP (IP: 83.144.106.170)
Komentarz:

--

Legend:

Bez zmian
Dodane
Usunięte
Zmienione
  • DeployerGuide/AdvancedConfiguration/CustomRegisters

    v83 v84  
    360360Znacznik {FILTER_STRING} zostanie zastąpiony wartością z parametru "sql_filter" 
    361361 
    362 {{{ 
     362 
     363{{{ 
     364-- Lista użytkowników 
    363365{"sql":"select usr_id, usrnam, 'USER' as clsnam FROM users WHERE {FILTER_STRING}","sql_filter":"firnam ~* E'^{SEARCH_TEXT}'","valueField":"usr_id","labelField":"usrnam"} 
    364366 
     367-- Lista urządzeń 
    365368{"sql":"SELECT devcid, name__ || ' - ' || COALESCE(sernum) AS device FROM cregisters.creg_devices WHERE {FILTER_STRING}","sql_filter":"sernum ~* E'^{SEARCH_TEXT}' OR name__ ~* E'^{SEARCH_TEXT}'","valueField":"devcid","labelField":"device"} 
    366369 
     370-- Lista klientów z inicjowaniem domyślnej wartości z dokumentu 
     371{"sql": "SELECT contid,  name_1 || ' - ' || f_addr AS caption, 'CONTACT' as clsnam, contid AS keyval FROM contacts_view WHERE is_del IS FALSE AND {FILTER_STRING[AND]} ORDER BY caption", 
     372    "sql_filter": "(name_1 || ' ' || name_2) ~* E'{SEARCH_TEXT}'", 
     373    "valueField": "contid", 
     374    "labelField": "caption", 
     375    "defaultValue": "{SQL::select contid FROM doc_link_cont WHERE contid != 37 AND doc_id = COALESCE(NULLIF('{doc_id}',''),'0')::int }", 
     376    "widget": { 
     377        "width": "280px", 
     378        "top": "70px", 
     379        "left": "20px" 
     380    } 
     381} 
     382 
     383-- Lista klientów 
    367384{"sql":"SELECT contid, COALESCE(name_2, name_1) || ' ' || f_addr AS caption, 'CONTACT' as clsnam FROM contacts_view WHERE is_del IS FALSE AND {FILTER_STRING} ORDER BY caption","sql_filter":"name_1 ~* E'^{SEARCH_TEXT}' OR name_2 ~* E'^{SEARCH_TEXT}'","valueField":"contid","labelField":"caption", 
    368385    "manager": {