Skip to content
Snippets Groups Projects
Commit 767f725d authored by João Kieras's avatar João Kieras Committed by Pietro Cavassin
Browse files

Update filter school (test)

parent a67c356d
No related branches found
No related tags found
4 merge requests!335Homologa,!334Dev,!331Issue 752 aee,!309Merge new updates into master
......@@ -103,7 +103,7 @@ rqf.addField({
foreignTable: 'numero_estudantes_aee'
}
}, 'filter').addValue({
name: 'region',
name: 'region', // working
table: 'regiao',
tableField: ['nome', 'id'],
resultField: ['region_name', 'region_id'],
......@@ -119,14 +119,19 @@ rqf.addField({
}
}).addValueToField({
name: 'school',
table: 'numero_estudantes_aee',
tableField: 'escola_id',
resultField: 'school_id',
table: 'escola',
tableField: ['nome_escola', 'id'],
resultField: ['school_name', 'school_id'],
where: {
relation: '=',
type: 'integer',
field: 'id'
},
join: {
primary: ['id', 'ano_censo'],
foreign: ['escola_id', 'ano_censo'],
foreignTable: 'numero_estudantes_aee'
}
}, 'filter').addValueToField({
name: 'locale_id', // working
table: 'numero_estudantes_aee',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment