{ "items" : [ { "$ xns" : "Roo", "autoCreate" : true, "closable" : false, "collapsible" : false, "draggable" : false, "height" : 400, "items" : [ { "$ xns" : "Roo", "* prop" : "center", "alwaysShowTabs" : false, "autoScroll" : false, "closeOnTab" : true, "hideTabs" : true, "titlebar" : false, "xtype" : "LayoutRegion" }, { "$ xns" : "Roo", "autoCreate" : true, "fitToFrame" : true, "items" : [ { "$ url" : "baseURL + '/Roo/core_company.php'", "$ xns" : "Roo.form", "fileUpload" : true, "items" : [ { "$ xns" : "Roo.form", "items" : [ { "$ xns" : "Roo.form", "allowBlank" : true, "fieldLabel" : "Company ID (for filing Ref.)", "name" : "code", "qtip" : "Enter code", "width" : 100, "xtype" : "TextField" }, { "$ xns" : "Roo.form", "Boolean allowBlank" : false, "alwaysQuery" : true, "displayField" : "display_name", "emptyText" : "Select Type", "fieldLabel" : "Type", "forceSelection" : true, "hiddenName" : "comptype_id", "items" : [ { "$ sortInfo" : "{ direction : 'ASC', field: 'id' }", "$ xns" : "Roo.data", "* prop" : "store", "items" : [ { "$ url" : "baseURL + '/Roo/core_enum.php'", "$ xns" : "Roo.data", "* prop" : "proxy", "method" : "GET", "xtype" : "HttpProxy" }, { "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]", "$ xns" : "Roo.data", "* prop" : "reader", "id" : "id", "root" : "data", "totalProperty" : "total", "xtype" : "JsonReader" } ], "listeners" : { "|beforeload" : [ "function (_self, o){", " o.params = o.params || {};", " // set more here", " //o.params['query[empty_etype]'] = 1;", " o.params.etype = 'COMPTYPE';", "}", "" ] }, "remoteSort" : true, "xtype" : "Store" } ], "listWidth" : 250, "listeners" : { "render" : [ "function (_self)", "{", " _this.etypeCombo = _self;", "}" ] }, "loadingText" : "Searching...", "minChars" : 2, "name" : "comptype_id_display_name", "pageSize" : 20, "qtip" : "Select type", "queryParam" : "query[name]", "selectOnFocus" : true, "tpl" : "