FSN#38164 Expressie velden echt alleen voor FACTAB
svn path=/Website/branches/v2016.2/; revision=31173
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user