+ {
+ "alwaysQuery" : true,
+ "listWidth" : 400,
+ "triggerAction" : "all",
+ "fieldLabel" : "Campaign",
+ "forceSelection" : true,
+ "selectOnFocus" : true,
+ "pageSize" : 20,
+ "Number width" : 400,
+ "displayField" : "name",
+ "emptyText" : "Select Campaign",
+ "hiddenName" : "campaign_id",
+ "minChars" : 2,
+ "valueField" : "id",
+ "xtype" : "ComboBox",
+ "allowBlank" : false,
+ "typeAhead" : false,
+ "editable" : true,
+ "$ xns" : "Roo.form",
+ "name" : "campaign_id_name",
+ "qtip" : "Select campaign",
+ "queryParam" : "query[name]",
+ "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b></div>",
+ "loadingText" : "Searching...",
+ "items" : [
+ {
+ "listeners" : {
+ "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n \n}\n"
+ },
+ "xtype" : "Store",
+ "remoteSort" : true,
+ "$ sortInfo" : "{ direction : 'DESC', field: 'id' }",
+ "$ xns" : "Roo.data",
+ "* prop" : "store",
+ "items" : [
+ {
+ "$ url" : "baseURL + '/Roo/Projects.php'",
+ "method" : "GET",
+ "xtype" : "HttpProxy",
+ "$ xns" : "Roo.data",
+ "* prop" : "proxy"
+ },
+ {
+ "id" : "id",
+ "root" : "data",
+ "xtype" : "JsonReader",
+ "$ xns" : "Roo.data",
+ "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]",
+ "* prop" : "reader",
+ "totalProperty" : "total"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Boolean allowBlank" : false,
+ "fieldLabel" : "Keywords",
+ "hiddenName" : "keyword_filters",
+ "xtype" : "ComboBoxArray",
+ "width" : 410,
+ "$ xns" : "Roo.form",
+ "name" : "keyword_filters_name",
+ "items" : [
+ {
+ "alwaysQuery" : true,
+ "listWidth" : 400,
+ "triggerAction" : "all",
+ "fieldLabel" : "Keyword",
+ "forceSelection" : true,
+ "displayField" : "keyword",
+ "minChars" : 2,
+ "valueField" : "id",
+ "xtype" : "ComboBox",
+ "allowBlank" : true,
+ "editable" : true,
+ "width" : 400,
+ "$ xns" : "Roo.form",
+ "* prop" : "combo",
+ "queryParam" : "query[keyword]",
+ "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{keyword}</b> </div>",
+ "items" : [
+ {
+ "listeners" : {
+ "beforeload" : "function (_self, o){\n o.params = o.params || {};\n \n var s = _this.form.findField('campaign_id').getValue() * 1;\n \n if(isNaN(s) || s < 1){\n return false;\n }\n \n o.params.is_active = 1;\n o.params.is_keyword = 1;\n o.params.project_id = s;\n}\n"
+ },
+ "xtype" : "Store",
+ "remoteSort" : true,
+ "$ sortInfo" : "{ direction : 'ASC', field: 'display_name' }",
+ "$ xns" : "Roo.data",
+ "* prop" : "store",
+ "items" : [
+ {
+ "$ url" : "baseURL + '/Roo/clipping_keywords.php'",
+ "xtype" : "HttpProxy",
+ "method" : "GET",
+ "$ xns" : "Roo.data",
+ "* prop" : "proxy"
+ },
+ {
+ "id" : "code",
+ "root" : "data",
+ "xtype" : "JsonReader",
+ "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"keyword\",\"type\":\"string\"}]",
+ "$ xns" : "Roo.data",
+ "* prop" : "reader",
+ "totalProperty" : "total"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },