Ver código fonte

修改查询视图

unknown 5 anos atrás
pai
commit
1c69e5df84

+ 1 - 3
o2web/source/x_component_process_FormDesigner/Module/Statement/statement.html

@@ -161,9 +161,7 @@
 			</div>
 			</div>
 			<div class="actionAreaNode_vf"></div>
 			<div class="actionAreaNode_vf"></div>
 			<div style="height: 20px; line-height: 20px; text-align:center; background-color: #eeeeee">默认过滤条件</div>
 			<div style="height: 20px; line-height: 20px; text-align:center; background-color: #eeeeee">默认过滤条件</div>
-			<div class="listAreaNode_vf" style="min-height: 56px; border-bottom:1px solid #CCCCCC; overflow: hidden;"></div>
-			<div style="display:none; height: 20px; line-height: 20px; text-align:center; background-color: #eeeeee">自定义过滤数据</div>
-			<div class="fieldListAreaNode_vf" style="display:none; min-height: 56px; border-bottom:1px solid #CCCCCC; overflow: hidden;"></div>
+			<div class="filterListAreaNode_vf" style="min-height: 56px; border-bottom:1px solid #CCCCCC; overflow: hidden;"></div>
 		</div>
 		</div>
 		<div class="MWFScriptArea" name="defaultSelectedScript" title="默认选中行脚本"></div>
 		<div class="MWFScriptArea" name="defaultSelectedScript" title="默认选中行脚本"></div>
 		<div class="MWFScriptArea" name="selectedAbleScript" title="允许选择行脚本" id="text{$.pid}selectedAbleScript"
 		<div class="MWFScriptArea" name="selectedAbleScript" title="允许选择行脚本" id="text{$.pid}selectedAbleScript"

+ 3 - 3
o2web/source/x_component_process_FormDesigner/Module/StatementSelector/StatementSelector.html

@@ -191,9 +191,9 @@
             </div>
             </div>
             <div class="actionAreaNode_vf"></div>
             <div class="actionAreaNode_vf"></div>
             <div style="height: 20px; line-height: 20px; text-align:center; background-color: #eeeeee">默认过滤条件</div>
             <div style="height: 20px; line-height: 20px; text-align:center; background-color: #eeeeee">默认过滤条件</div>
-            <div class="listAreaNode_vf" style="min-height: 56px; border-bottom:1px solid #CCCCCC; overflow: hidden;"></div>
-            <div style="display:none; height: 20px; line-height: 20px; text-align:center; background-color: #eeeeee">自定义过滤数据</div>
-            <div class="fieldListAreaNode_vf" style="display:none; min-height: 56px; border-bottom:1px solid #CCCCCC; overflow: hidden;"></div>
+            <div class="filterListAreaNode_vf" style="min-height: 56px; border-bottom:1px solid #CCCCCC; overflow: hidden;"></div>
+<!--            <div style="display:none; height: 20px; line-height: 20px; text-align:center; background-color: #eeeeee">自定义过滤数据</div>-->
+<!--            <div class="fieldListAreaNode_vf" style="display:none; min-height: 56px; border-bottom:1px solid #CCCCCC; overflow: hidden;"></div>-->
         </div>
         </div>
     </div>
     </div>
 
 

+ 2 - 2
o2web/source/x_component_process_FormDesigner/Property.js

@@ -525,12 +525,12 @@ MWF.xApplication.process.FormDesigner.Property = MWF.FCProperty = new Class({
         nodes.each(function(node){
         nodes.each(function(node){
             MWF.xDesktop.requireApp("query.StatementDesigner", "widget.ViewFilter", function(){
             MWF.xDesktop.requireApp("query.StatementDesigner", "widget.ViewFilter", function(){
                 var _slef = this;
                 var _slef = this;
-                this.viewFilter = new MWF.xApplication.query.StatementDesigner.widget.ViewFilter(node, this.form.designer, {"filtrData": filtrData, "customData": null}, {
+                this.viewFilter = new MWF.xApplication.query.StatementDesigner.widget.ViewFilter(node, this.form.designer, {"filtrData": filtrData, "customData": null, "parameterData": null}, {
                     "statementId" : this.data.queryStatement ? this.data.queryStatement.id : "",
                     "statementId" : this.data.queryStatement ? this.data.queryStatement.id : "",
                     "withForm" : true,
                     "withForm" : true,
                     "onChange": function(ids){
                     "onChange": function(ids){
                         var data = this.getData();
                         var data = this.getData();
-                        _slef.changeJsonDate(["filterList"], data.data);
+                        _slef.changeJsonDate(["filterList"], data.filterData);
                         //_slef.changeJsonDate(["data", "customFilterEntryList"], data.customData);
                         //_slef.changeJsonDate(["data", "customFilterEntryList"], data.customData);
                     }
                     }
                 });
                 });

+ 6 - 4
o2web/source/x_component_query_Query/Statement.js

@@ -157,11 +157,13 @@ MWF.xApplication.query.Query.Statement = MWF.QStatement = new Class({
         ( data.filterList || [] ).each( function (d) {
         ( data.filterList || [] ).each( function (d) {
             var parameterName = d.path.replace(/\./g, "_");
             var parameterName = d.path.replace(/\./g, "_");
             var value = d.value;
             var value = d.value;
-            if( d.code && d.code.code ){
-                value = this.Macro.exec( d.code.code, this);
-            }
+            // if( d.code && d.code.code ){
+            //     value = this.Macro.exec( d.code.code, this);
+            // }
             if( d.comparison === "like" || d.comparison === "notLike" ){
             if( d.comparison === "like" || d.comparison === "notLike" ){
-                this.parameter[ parameterName ] = "%"+value+"%";
+                if( value.substr(0, 1) !== "%" )value = "%"+value;
+                if( value.substr(value.length-1,1) !== "%" )value = value+"%";
+                this.parameter[ parameterName ] = value; //"%"+value+"%";
             }else{
             }else{
                 if( d.formatType === "dateTimeValue" || d.formatType === "datetimeValue"){
                 if( d.formatType === "dateTimeValue" || d.formatType === "datetimeValue"){
                     value = "{ts '"+value+"'}"
                     value = "{ts '"+value+"'}"

+ 2 - 2
o2web/source/x_component_query_StatementDesigner/$Statement/view.html

@@ -343,9 +343,9 @@
             </div>
             </div>
             <div class="actionAreaNode_vf"></div>
             <div class="actionAreaNode_vf"></div>
             <div style="height: 20px; line-height: 20px; text-align:center; background-color: #eeeeee">默认过滤条件</div>
             <div style="height: 20px; line-height: 20px; text-align:center; background-color: #eeeeee">默认过滤条件</div>
-            <div class="listAreaNode_vf" style="min-height: 56px; border-bottom:1px solid #CCCCCC; overflow: hidden;"></div>
+            <div class="parameterListAreaNode_vf" style="min-height: 56px; border-bottom:1px solid #CCCCCC; overflow: hidden;"></div>
             <div style="height: 20px; line-height: 20px; text-align:center; background-color: #eeeeee">自定义过滤数据</div>
             <div style="height: 20px; line-height: 20px; text-align:center; background-color: #eeeeee">自定义过滤数据</div>
-            <div class="fieldListAreaNode_vf" style="min-height: 56px; border-bottom:1px solid #CCCCCC; overflow: hidden;"></div>
+            <div class="customFilterListAreaNode_vf" style="min-height: 56px; border-bottom:1px solid #CCCCCC; overflow: hidden;"></div>
         </div>
         </div>
     </div>
     </div>
 
 

+ 3 - 3
o2web/source/x_component_query_StatementDesigner/Property.js

@@ -58,18 +58,18 @@ MWF.xApplication.query.StatementDesigner.Property = MWF.SDProperty = new Class({
     },
     },
     loadViewFilter: function () {
     loadViewFilter: function () {
         var nodes = this.propertyContent.getElements(".MWFViewFilter");
         var nodes = this.propertyContent.getElements(".MWFViewFilter");
-        var filtrData = this.view.data.data.filterList;
+        var parameterData = this.view.data.data.parameterList;
         var customData = this.view.data.data.customFilterList;
         var customData = this.view.data.data.customFilterList;
         nodes.each(function (node) {
         nodes.each(function (node) {
             MWF.xDesktop.requireApp("query.StatementDesigner", "widget.ViewFilter", function () {
             MWF.xDesktop.requireApp("query.StatementDesigner", "widget.ViewFilter", function () {
                 var _slef = this;
                 var _slef = this;
                 this.viewFilter = new MWF.xApplication.query.StatementDesigner.widget.ViewFilter(node, this.view.designer, {
                 this.viewFilter = new MWF.xApplication.query.StatementDesigner.widget.ViewFilter(node, this.view.designer, {
-                    "filtrData": filtrData,
+                    "parameterData": parameterData,
                     "customData": customData
                     "customData": customData
                 }, {
                 }, {
                     "onChange": function (ids) {
                     "onChange": function (ids) {
                         var data = this.getData();
                         var data = this.getData();
-                        _slef.changeJsonDate(["data", "filterList"], data.data);
+                        _slef.changeJsonDate(["data", "parameterList"], data.parameterData);
                         _slef.changeJsonDate(["data", "customFilterList"], data.customData);
                         _slef.changeJsonDate(["data", "customFilterList"], data.customData);
                     }
                     }
                 });
                 });

+ 71 - 77
o2web/source/x_component_query_StatementDesigner/widget/ViewFilter.js

@@ -50,21 +50,21 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
         }
         }
     },
     },
     loadData: function () {
     loadData: function () {
-        if (this.filtrData.parameterData && this.filtrData.parameterData.length) {
+        if (this.filtrData.parameterData && this.filtrData.parameterData.length && this.parameterListAreaNode) {
             this.filtrData.parameterData.each(function (data) {
             this.filtrData.parameterData.each(function (data) {
                 data.type = "parameter";
                 data.type = "parameter";
                 this.items.push(new MWF.xApplication.query.StatementDesigner.widget.ViewFilter.ItemParameter(this, data));
                 this.items.push(new MWF.xApplication.query.StatementDesigner.widget.ViewFilter.ItemParameter(this, data));
             }.bind(this));
             }.bind(this));
         }
         }
 
 
-        if (this.filtrData.filtrData && this.filtrData.filtrData.length) {
+        if (this.filtrData.filtrData && this.filtrData.filtrData.length && this.filterListAreaNode ) {
             this.filtrData.filtrData.each(function (data) {
             this.filtrData.filtrData.each(function (data) {
                 data.type = "filter";
                 data.type = "filter";
                 this.items.push(new MWF.xApplication.query.StatementDesigner.widget.ViewFilter.ItemFilter(this, data));
                 this.items.push(new MWF.xApplication.query.StatementDesigner.widget.ViewFilter.ItemFilter(this, data));
             }.bind(this));
             }.bind(this));
         }
         }
 
 
-        if (this.filtrData.customData && this.filtrData.customData.length) {
+        if (this.filtrData.customData && this.filtrData.customData.length && this.customFilterListAreaNode ) {
             this.filtrData.customData.each(function (data) {
             this.filtrData.customData.each(function (data) {
                 data.type = "custom";
                 data.type = "custom";
                 this.items.push(new MWF.xApplication.query.StatementDesigner.widget.ViewFilter.ItemCustom(this, data));
                 this.items.push(new MWF.xApplication.query.StatementDesigner.widget.ViewFilter.ItemCustom(this, data));
@@ -138,8 +138,10 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
         this.inputAreaNode = this.node.getElement(".inputAreaNode_vf");
         this.inputAreaNode = this.node.getElement(".inputAreaNode_vf");
         this.actionAreaNode = this.node.getElement(".actionAreaNode_vf");
         this.actionAreaNode = this.node.getElement(".actionAreaNode_vf");
         this.actionAreaNode.setStyles(this.css.actionAreaNode);
         this.actionAreaNode.setStyles(this.css.actionAreaNode);
-        this.listAreaNode = this.node.getElement(".listAreaNode_vf");
-        this.fieldListAreaNode = this.node.getElement(".fieldListAreaNode_vf");
+
+        this.filterListAreaNode = this.node.getElement(".filterListAreaNode_vf");
+        this.parameterListAreaNode = this.node.getElement(".parameterListAreaNode_vf");
+        this.customFilterListAreaNode = this.node.getElement(".customFilterListAreaNode_vf");
 
 
         this.restrictViewFilterTable = this.node.getElement(".restrictViewFilterTable_vf");
         this.restrictViewFilterTable = this.node.getElement(".restrictViewFilterTable_vf");
 
 
@@ -156,6 +158,7 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
         this.datatypeInput = this.inputAreaNode.getElement(".datatypeInput_vf");
         this.datatypeInput = this.inputAreaNode.getElement(".datatypeInput_vf");
 
 
         this.restrictParameterInput = this.inputAreaNode.getElement(".restrictParameterInput_vf");
         this.restrictParameterInput = this.inputAreaNode.getElement(".restrictParameterInput_vf");
+        this.restrictFilterInput = this.inputAreaNode.getElement(".restrictFilterInput_vf");
         this.customFilterInput = this.inputAreaNode.getElement(".customFilterInput_vf");
         this.customFilterInput = this.inputAreaNode.getElement(".customFilterInput_vf");
 
 
         // this.logicInput = this.inputAreaNode.getElement(".logicInput_vf");
         // this.logicInput = this.inputAreaNode.getElement(".logicInput_vf");
@@ -272,8 +275,8 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
                         case "date":
                         case "date":
                             t = "dateTimeValue";
                             t = "dateTimeValue";
                             break;
                             break;
-                            // t = "dateValue";
-                            // break;
+                        // t = "dateValue";
+                        // break;
                         case "time":
                         case "time":
                             t = "timeValue";
                             t = "timeValue";
                             break;
                             break;
@@ -520,15 +523,19 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
     },
     },
     modifyOrAddFilterItem: function () {
     modifyOrAddFilterItem: function () {
         var flag;
         var flag;
+        var type;
         if (this.currentItem) {
         if (this.currentItem) {
             flag = this.modifyFilterItem();
             flag = this.modifyFilterItem();
         } else {
         } else {
-            if( this.options.withForm ){
-                flag = this.addFilterItemWithForm();
-            }else if (this.restrictParameterInput.checked) {
+            if( this.restrictFilterInput && this.restrictFilterInput.checked ){ //this.options.withForm this.restrictParameterInput
+                flag = this.addFilterItem();
+                type = "filter"
+            }else if ( this.restrictParameterInput && this.restrictParameterInput.checked) {
                 flag = this.addParameterItem();
                 flag = this.addParameterItem();
+                type = "parameter"
             } else {
             } else {
                 flag = this.addCustomFilterItem();
                 flag = this.addCustomFilterItem();
+                type = "custom"
             }
             }
         }
         }
         if( flag ){
         if( flag ){
@@ -537,7 +544,7 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
                 "path": "",
                 "path": "",
                 "parameter" : "",
                 "parameter" : "",
                 "title": "",
                 "title": "",
-                "type": this.restrictParameterInput.checked ? "parameter" : "custom",
+                "type": type,
                 "comparison": "equals",
                 "comparison": "equals",
                 "formatType": "textValue",
                 "formatType": "textValue",
                 "value": "",
                 "value": "",
@@ -548,14 +555,14 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
     },
     },
     modifyFilterItem: function () {
     modifyFilterItem: function () {
         var data = this.getInputData();
         var data = this.getInputData();
-        if( this.options.withForm ){
+        if( this.restrictFilterInput && this.restrictFilterInput.checked ){ //this.options.withForm
             if (this.verificationDataWithForm(data)) {
             if (this.verificationDataWithForm(data)) {
                 this.currentItem.reload(data);
                 this.currentItem.reload(data);
                 this.currentItem.unSelected();
                 this.currentItem.unSelected();
                 this.fireEvent("change");
                 this.fireEvent("change");
                 return true;
                 return true;
             }
             }
-        }else if( this.restrictParameterInput.checked ){
+        }else if( this.restrictParameterInput && this.restrictParameterInput.checked ){
             if (this.verificationData(data)) {
             if (this.verificationData(data)) {
                 this.currentItem.reload(data);
                 this.currentItem.reload(data);
                 this.currentItem.unSelected();
                 this.currentItem.unSelected();
@@ -750,8 +757,11 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
         var parameter = this.parameterInput ? this.parameterInput.get("value") : "";
         var parameter = this.parameterInput ? this.parameterInput.get("value") : "";
 
 
         var title = this.titleInput.get("value");
         var title = this.titleInput.get("value");
-        if (this.restrictParameterInput.checked) var type = "parameter";
-        if (this.customFilterInput.checked) var type = "custom";
+
+        var type = "custom";
+        if ( this.restrictFilterInput && this.restrictFilterInput.checked) type = "filter";
+        if ( this.restrictParameterInput && this.restrictParameterInput.checked) type = "parameter";
+        if (this.customFilterInput.checked) type = "custom";
 
 
         // var comparison = this.comparisonInput.options[this.comparisonInput.selectedIndex].value;
         // var comparison = this.comparisonInput.options[this.comparisonInput.selectedIndex].value;
         var comparison = "";
         var comparison = "";
@@ -800,7 +810,7 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
                 //}
                 //}
                 break;
                 break;
         }
         }
-        if (this.options.withForm ) {
+        if ( type === "filter" ) { //this.options.withForm
             return {
             return {
                 // "logic": "and",
                 // "logic": "and",
                 "path": path,
                 "path": path,
@@ -898,9 +908,7 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
         } catch (e) {
         } catch (e) {
         }
         }
 
 
-        if( this.options.withForm ){
-            this.switchInputDisplay();
-        }else{
+        if (data.type === "parameter"){
             switch (data.formatType) {
             switch (data.formatType) {
                 case "textValue":
                 case "textValue":
                     this.valueTextInput.set("value", data.value);
                     this.valueTextInput.set("value", data.value);
@@ -937,66 +945,52 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter = new Class({
                             break;
                             break;
                         }
                         }
                     }
                     }
-                    //if (this.valueBooleanInput2){
-                    //    for (var i=0; i<this.valueBooleanInput2.options.length; i++){
-                    //        var v = this.valueBooleanInput2.options[i].value;
-                    //        if (v=="true"){
-                    //            v = true;
-                    //        }else{
-                    //            v = false;
-                    //        }
-                    //        if (v===data.otherValue){
-                    //            this.valueBooleanInput2.options[i].set("selected", true);
-                    //            break;
-                    //        }
-                    //    }
-                    //}
                     break;
                     break;
             }
             }
+        }
 
 
-            if (data.type === "custom") {
-                this.customFilterValueTypes.each(function (radio) {
-                    if (data.valueType) {
-                        if (data.valueType === radio.get("value")) radio.set("checked", true);
-                    } else {
-                        if ("input" === radio.get("value")) radio.set("checked", true);
-                    }
-                });
-                if (this.customFilterValueScriptArea) {
-                    if (!data.valueType || data.valueType === "input") {
-                        this.customFilterValueScriptDiv.hide();
-                        this.customFilterValueScriptData = "";
-                        this.customFilterValueScriptArea.editor.setValue("");
-                    } else {
-                        this.customFilterValueScriptDiv.show();
-                        this.customFilterValueScriptData = data.valueScript;
-                        this.customFilterValueScriptArea.editor.setValue(data.valueScript ? data.valueScript.code : "");
-                    }
+        if (data.type === "custom") {
+            this.customFilterValueTypes.each(function (radio) {
+                if (data.valueType) {
+                    if (data.valueType === radio.get("value")) radio.set("checked", true);
+                } else {
+                    if ("input" === radio.get("value")) radio.set("checked", true);
+                }
+            });
+            if (this.customFilterValueScriptArea) {
+                if (!data.valueType || data.valueType === "input") {
+                    this.customFilterValueScriptDiv.hide();
+                    this.customFilterValueScriptData = "";
+                    this.customFilterValueScriptArea.editor.setValue("");
+                } else {
+                    this.customFilterValueScriptDiv.show();
+                    this.customFilterValueScriptData = data.valueScript;
+                    this.customFilterValueScriptArea.editor.setValue(data.valueScript ? data.valueScript.code : "");
                 }
                 }
             }
             }
+        }
 
 
-            if (data.type === "parameter") {
-                this.parameterValueType.each(function (radio) {
-                    if (data.valueType) {
-                        if (data.valueType === radio.get("value")) radio.set("checked", true);
-                    } else {
-                        if ("input" === radio.get("value")) radio.set("checked", true);
-                    }
-                });
-                if (this.parameterValueScriptArea) {
-                    if (!data.valueType || data.valueType === "input") {
-                        this.parameterValueScriptDiv.hide();
-                        this.parameterValueScriptData = "";
-                        this.parameterValueScriptArea.editor.setValue("");
-                    } else {
-                        this.parameterValueScriptDiv.show();
-                        this.parameterValueScriptData = data.valueScript;
-                        this.parameterValueScriptArea.editor.setValue(data.valueScript ? data.valueScript.code : "");
-                    }
+        if (data.type === "parameter") {
+            this.parameterValueType.each(function (radio) {
+                if (data.valueType) {
+                    if (data.valueType === radio.get("value")) radio.set("checked", true);
+                } else {
+                    if ("input" === radio.get("value")) radio.set("checked", true);
+                }
+            });
+            if (this.parameterValueScriptArea) {
+                if (!data.valueType || data.valueType === "input") {
+                    this.parameterValueScriptDiv.hide();
+                    this.parameterValueScriptData = "";
+                    this.parameterValueScriptArea.editor.setValue("");
+                } else {
+                    this.parameterValueScriptDiv.show();
+                    this.parameterValueScriptData = data.valueScript;
+                    this.parameterValueScriptArea.editor.setValue(data.valueScript ? data.valueScript.code : "");
                 }
                 }
             }
             }
-            this.switchInputDisplay();
         }
         }
+        this.switchInputDisplay();
 
 
         if (this.datatypeInput.onchange) {
         if (this.datatypeInput.onchange) {
             this.datatypeInput.onchange();
             this.datatypeInput.onchange();
@@ -1032,7 +1026,7 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter.ItemParameter = new C
     initialize: function (filter, data) {
     initialize: function (filter, data) {
         this.filter = filter;
         this.filter = filter;
         this.data = data;
         this.data = data;
-        this.container = this.filter.listAreaNode;
+        this.container = this.filter.parameterListAreaNode;
         this.css = this.filter.css;
         this.css = this.filter.css;
         this.app = this.filter.app;
         this.app = this.filter.app;
         this.load();
         this.load();
@@ -1099,7 +1093,7 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter.ItemCustom = new Clas
     initialize: function (filter, data) {
     initialize: function (filter, data) {
         this.filter = filter;
         this.filter = filter;
         this.data = data;
         this.data = data;
-        this.container = this.filter.fieldListAreaNode;
+        this.container = this.filter.customFilterListAreaNode;
         this.css = this.filter.css;
         this.css = this.filter.css;
         this.app = this.filter.app;
         this.app = this.filter.app;
         this.load();
         this.load();
@@ -1110,8 +1104,8 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter.ItemCustom = new Clas
             this.filter.verificationNode = null;
             this.filter.verificationNode = null;
             this.filter.pathInput.setStyle("background-color", "#FFF");
             this.filter.pathInput.setStyle("background-color", "#FFF");
         }
         }
-         this.filter.customFilterInput.set("checked", true);
-         this.filter.customFilterInput.click();
+        this.filter.customFilterInput.set("checked", true);
+        this.filter.customFilterInput.click();
         if (this.filter.currentItem) this.filter.currentItem.unSelected();
         if (this.filter.currentItem) this.filter.currentItem.unSelected();
         this.node.setStyles(this.css.itemNode_current);
         this.node.setStyles(this.css.itemNode_current);
         this.filter.currentItem = this;
         this.filter.currentItem = this;
@@ -1128,7 +1122,7 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter.ItemFilter = new Clas
     initialize: function (filter, data) {
     initialize: function (filter, data) {
         this.filter = filter;
         this.filter = filter;
         this.data = data;
         this.data = data;
-        this.container = this.filter.listAreaNode;
+        this.container = this.filter.filterListAreaNode;
         this.css = this.filter.css;
         this.css = this.filter.css;
         this.app = this.filter.app;
         this.app = this.filter.app;
         this.load();
         this.load();
@@ -1139,8 +1133,8 @@ MWF.xApplication.query.StatementDesigner.widget.ViewFilter.ItemFilter = new Clas
             this.filter.verificationNode = null;
             this.filter.verificationNode = null;
             this.filter.pathInput.setStyle("background-color", "#FFF");
             this.filter.pathInput.setStyle("background-color", "#FFF");
         }
         }
-        // this.filter.customFilterInput.set("checked", true);
-        // this.filter.customFilterInput.click();
+        this.filter.restrictFilterInput.set("checked", true);
+        this.filter.restrictFilterInput.click();
         if (this.filter.currentItem) this.filter.currentItem.unSelected();
         if (this.filter.currentItem) this.filter.currentItem.unSelected();
         this.node.setStyles(this.css.itemNode_current);
         this.node.setStyles(this.css.itemNode_current);
         this.filter.currentItem = this;
         this.filter.currentItem = this;