Advertisement
Cristian-Paolini

Untitled

Oct 25th, 2022
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. traerKeysTratamientos: function () {
  2.             return new Promise((resolve, reject) => {
  3.               let oModel = this.getView().getModel();
  4.               oModel.read("/TratamientoSet", {
  5.                 success: function (oData) {
  6.                   resolve(oData.results);
  7.                 }.bind(this),
  8.                 error: function (error) {
  9.                   reject(error);
  10.                   this.onErrorMessageDialogPress("Hubo un error");
  11.                 }.bind(this),
  12.               });
  13.             });
  14.           },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement