refs #5925 models table docuware #1889

Merged
carlossa merged 5 commits from 5925-docuwareTablet into dev 2023-12-21 13:20:04 +00:00
2 changed files with 12 additions and 7 deletions
Showing only changes of commit 2393625a48 - Show all commits

View File

@ -56,6 +56,16 @@ module.exports = Self => {
}] }]
}); });
// get tablet
const tablet = await models.userConfig.findById(id, {
include: [{
relation: 'Tablet',
scope: {
fields: ['id']
}
}]
});
// upload file // upload file
const templateJson = { const templateJson = {
'Fields': [ 'Fields': [
@ -102,12 +112,7 @@ module.exports = Self => {
{ {
'FieldName': 'FILTRO_TABLET', 'FieldName': 'FILTRO_TABLET',
'ItemElementName': 'string', 'ItemElementName': 'string',
'Item': 'Tablet1', 'Item': tablet.id,
},
{
'FieldName': 'ID_TABLET',
'ItemElementName': 'integer',
'Item': userConfig.tabletFk,
} }
] ]
}; };

View File

@ -3,7 +3,7 @@
"base": "VnModel", "base": "VnModel",
"options": { "options": {
"mysql": { "mysql": {
"table": "vn.docuwareTablet" "table": "docuwareTablet"
} }
}, },
"properties": { "properties": {