Calculation doesn't get triggered in batch processor

Hi All,

I have a problem getting values from the non-stored calculation in a batch processor that is running on the server.

I have a batch processor to run a cleanup task on the server every night. The batch processor is supposed to check a table of jobs. The table has a calculation that returns true or false based in the value of a completiondate of the job record (so if the completiondate is set, the job is complete, and if not, the job is not completed yet). When I run the function in a smartclient, I can see the result (true or false) but when I run the same function in the batch processor, the value is undefined! I tried a few other calculations and they all seem to be undefined. Can someone please tell me if this is a possible servoy bug or I’m missing something in here?

Thanks,
Siavash

It probably means that your calculation is not defined in the headless client solution (or one of its module) but is defined in the smart client solution (or one of its module).
You might need to move it to at least a common module.

ptalbot:
It probably means that your calculation is not defined in the headless client solution (or one of its module) but is defined in the smart client solution (or one of its module).
You might need to move it to at least a common module.

Thanks Patrick, yes you were right. I should move those calculations to the commons to work.

Cheers,