I've got a batch processor that first retrieves a list of tenant databases. Next it needs to read the settings from each database. However it is not returning my settings object!
- Code: Select all
for(var j = 0; j < dbs.length; j++) //dbs is my array of tenant databases
{
fsSettings = databaseManager.getFoundSet(dbs[j],'prontogeneral')
fsSettings.addFoundSetFilterParam('prontogeneral_id','=','3');
fsSettings.loadAllRecords();
if(fsSettings.getSize() == 1)
{
inbox = new Object();
inbox = fsSettings.pronto_obj; // this field is in each tenant db a text field with stringserializer enabled
if(inbox && inbox.active) {
_mailboxes.push(inbox);
}
else
{
if(inbox) {
application.output("TESTING inbox active "+inbox.active, LOGGINGLEVEL.INFO)
}
}
}
}
When I look at the last output string I get the value when I run inside developer but an undefined when i run the batchprocessor.