MWF.xDesktop.requireApp("process.Xform", "Datatemplate", null, false); MWF.xApplication.cms.Xform.Datatemplate = MWF.CMSDatatemplate = new Class({ Extends: MWF.APPDatatemplate, validationConfigItem: function(routeName, data){ var flag = (data.status=="all") ? true: (routeName == "publ" || routeName == "publish"); if (flag){ var n = this.getData(); var v = (data.valueType=="value") ? n : n.length; switch (data.operateor){ case "isnull": if (!v){ this.notValidationMode(data.prompt); return false; } break; case "notnull": if (v){ this.notValidationMode(data.prompt); return false; } break; case "gt": if (v>data.value){ this.notValidationMode(data.prompt); return false; } break; case "lt": if (v