I can’t get all values from the id “queryForm2”
I only get the elements start, end and limit back.
What could be wrong
Kind regards,
Rolf
var queryResult = { view: "form", elements: [
{ view:"text", value:'',
id: "queryResult",
label:"Query-Result",
disabled:true,
height:100,
labelPosition:"top"
},
{ view:"button", type:"form", value:"Suchen", click:function(){
$$("queryResult").setValue(JSON.stringify( $$("queryForm2").getValues()));
}}
]};
var queryForm = { view:"form", id: "queryForm2", elements:[
{cols:[
{width:250, rows :[
{ view:"combo", width:200, label:"System", options:['bc','dt']},
{ view:"combo", label:"Host", options:['Host 1','Host 2']},
{ view:"text", value:'', label:"Referenz"}
]},
{margin:0, paddingX: 10, width: 200, rows:[
{ view:"checkbox", id:"event0", label:"Emergency", value:1},
{ view:"checkbox", id:"event1", label:"Alert", value:1},
{ view:"checkbox", id:"event2", label:"Critical", value:1},
{ view:"checkbox", id:"event3", label:"Error", value:1},
{ view:"checkbox", id:"event4", label:"Warning", value:1},
{ view:"checkbox", id:"event5", label:"Notice", value:0},
{ view:"checkbox", id:"event6", label:"Info", value:0},
{ view:"checkbox", id:"event7", label:"Debug", value:0}
]},
{ margin:10, rows:[
{view:"radio", label:"Branch", value:1,
options:[{id:1,value:"Live" },{id:2,value:"Test" },{id:3,value:"Alle" }]},
{ view:"datepicker", label:"Start", name:"start",
stringResult:true, format:"%d %M %Y" },
{ view:"datepicker", label:"Ende", name:"end",
stringResult:true, format:"%d %M %Y" },
{ view:"text", label:"Limit", name:"limit", value:"250"}
]}
]}
]}
webix.ui({
rows: [
{ view:"label", label: "Query-Form", align:"center"},
queryForm,
queryResult
]
});