jLinux

Untitled

Dec 14th, 2015
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sspModel.newDtResult = function( dtParams ) {
  2.     return new Promise(( resolve ) => {
  3.             SSP.newDtResult( dtParams )
  4.             .then( SSP.totalRows )
  5.             .then( SSP.constructQuery )
  6.             .then( SSP.execSspQuery )
  7.             .then( SSP.processResults )
  8.             .then( ( dtResult ) => {
  9.                 resolve( dtResult );
  10.             })
  11.             .catch((err) => {
  12.                 reject( err );
  13.             });
  14.     });
  15. }
Advertisement
Add Comment
Please, Sign In to add comment