FSN#38164 Expressie velden echt alleen voor FACTAB

svn path=/Website/branches/v2016.2/; revision=31173
This commit is contained in:
Jos Groot Lipman
2016-10-20 12:37:16 +00:00
parent 2dfc1729d3
commit d3cc6c9f38

View File

@@ -40,7 +40,8 @@ function model_reportcolumns(usrrap_key, params)
dbs: "fac_usrrap_cols_column_name",
typ: "varchar",
label: L("lcl_rap_column"),
required: true
required: true,
insertonly: true
},
"datatype": {
dbs: "fac_usrrap_cols_datatype",
@@ -97,7 +98,8 @@ function model_reportcolumns(usrrap_key, params)
"expression": {
dbs: "fac_usrrap_cols_expression",
typ: "memo",
label: "sql-expressie"
label: "sql-expressie",
readonly: true
}
};
@@ -159,6 +161,7 @@ function model_reportcolumns(usrrap_key, params)
if (user.has("WEB_FACTAB") && (obj.expression || !obj.id))
{
this.fields.expression.readonly = false;
this.fields.name.insertonly = false;
}
};