- La Città non si vede se non l'ho aggiunta a mano... occorre mandare anche la descrizione...

(remote_field)
This commit is contained in:
paoloar77
2022-02-03 10:28:21 +01:00
parent 124cb5cc64
commit 45a771fab2
4 changed files with 51 additions and 0 deletions

View File

@@ -73,6 +73,9 @@ function AddCol(params: IColGridTable) {
noshowlabel: (params.noshowlabel === undefined) ? false : params.noshowlabel,
notsave: (params.notsave === undefined) ? false : params.notsave,
filter_table: (params.filter_table === undefined) ? '' : params.filter_table,
remote_table: (params.remote_table === undefined) ? '' : params.remote_table,
remote_key: (params.remote_key === undefined) ? '' : params.remote_key,
remote_field: (params.remote_field === undefined) ? '' : params.remote_field,
maxlength: (params.maxlength === undefined) ? 0 : params.maxlength,
filter_field: (params.filter_field === undefined) ? '' : params.filter_field,
}
@@ -463,6 +466,9 @@ export const colmyUserGroup = [
noshowlabel: true,
icon: 'fas fa-map-marker-alt',
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView,
remote_table: 'comune',
remote_key: '_id',
remote_field: 'comune',
}),
AddCol({ name: 'date_created', label_trans: 'reg.date_created', fieldtype: costanti.FieldType.onlydate,
showWhen: costanti.showWhen.InPage + costanti.showWhen.InView_OnlyifExist }),