I want to use other field to be a query condition, but I have no idea how to do
var curriculum = nga.entity('curriculums');
nga.field('region', 'reference'),
nga.field('curriculum', 'reference')
.targetEntity(curriculum)
.targetField(nga.field('name'))
.remoteComplete(true, {
refreshDelay: 300,
searchQuery: function (search) {
// use the region be the query condition
return { q: search };
}
}),
I want to use other field to be a query condition, but I have no idea how to do