Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- traerKeysTratamientos: function () {
- return new Promise((resolve, reject) => {
- let oModel = this.getView().getModel();
- oModel.read("/TratamientoSet", {
- success: function (oData) {
- resolve(oData.results);
- }.bind(this),
- error: function (error) {
- reject(error);
- this.onErrorMessageDialogPress("Hubo un error");
- }.bind(this),
- });
- });
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement