SHARE
TWEET

Controlador de la vista principal

a guest Feb 14th, 2020 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sap.ui.define([
  2.     "sap/ui/core/mvc/Controller",
  3.     "sap/ui/model/json/JSONModel",
  4.     "sap/ui/core/Fragment",
  5.     "sap/ui/model/Filter",
  6.     "sap/ui/model/FilterOperator",
  7.     "sap/ui/model/type/String",
  8.     "sap/m/Token",
  9.     "sap/m/MessageToast",
  10.     "./DialogPropPag.controller",
  11. ], function (Controller, JSONModel, Fragment, Filter, FilterOperator, typeString, Token, MessageToast, DialogPropPag) {
  12.     "use strict";
  13.  
  14.     return Controller.extend("com.zapata.vn.pp.Monitor.controller.View1", {
  15.         onInit: function () {
  16.             //[...]
  17.         },
  18.         _onPropPag: function(oEvent) {
  19.             var sDialogName = "Dialog1";
  20.             this.mDialogs = this.mDialogs || {};
  21.             var oDialog = this.mDialogs[sDialogName];
  22.             if (!oDialog) {
  23.                 oDialog = new DialogPropPag(this.getView());
  24.                 this.mDialogs[sDialogName] = oDialog;
  25.                 // For navigation.
  26.                 oDialog.setRouter(this.oRouter);
  27.             }
  28.             var context = oEvent.getSource().getBindingContext();
  29.             oDialog._oControl.setBindingContext(context);
  30.             oDialog.open();
  31.         }
  32. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top