- Aggiunto Filtri

- Finder
This commit is contained in:
Paolo Arena
2021-12-11 00:25:54 +01:00
parent 255982ca0f
commit 3f8a2abd66
5 changed files with 62 additions and 15 deletions

View File

@@ -99,11 +99,40 @@ MySkillSchema.statics.findAllIdApp = function(idapp) {
};
MySkillSchema.statics.getFieldsForSearch = function() {
return [{field: 'idSkill', type: tools.FieldType.Number}];
return [{field: 'idSkill', type: tools.FieldType.Number}
,{field: 'note', type: tools.FieldType.String}
,{field: 'subTitle', type: tools.FieldType.String}
];
};
MySkillSchema.statics.executeQueryTable = function(idapp, params) {
params.fieldsearch = this.getFieldsForSearch();
const otherparams = {
lk_tab: 'users',
lk_LF: 'userId',
lk_FF: '_id',
lk_as: 'user',
af_objId_tab: 'myId',
lk_proj: {
idSkill: 1,
idStatusSkill: 1,
idCity: 1,
numLevel: 1,
photos: 1,
note: 1,
subTitle: 1,
date_created: 1,
date_updated: 1,
userId: 1,
username: 1,
name: 1,
surname: 1,
},
};
params = { ...params, ...otherparams };
return tools.executeQueryTable(this, idapp, params);
};