Sometimes, your DataTable options are stored or computed server side. All you need to do is to return the expected result as a promise.