MWF.xDesktop.requireApp("process.Xform", "Datatable", null, false); MWF.xApplication.cms.Xform.Datatable = MWF.CMSDatatable = new Class({ Extends: MWF.APPDatatable, deleteAttachment: function( attId ){ this.form.documentAction.deleteAttachment(attId, this.form.businessData.work.id); }, saveFormData: function(){ this.form.saveFormData(); }, 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