Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- openEditDialog: function(oEvent) {
- var oView = this.getView();
- var oSelectedItem = oEvent.getSource();
- var oContext = oSelectedItem.getBindingContext("person");
- var sPath = oContext.getPath();
- var oView = this.getView();
- if (!this._oDialog) {
- Fragment.load({
- id: "EditFr2",
- name: "com.app10.view.EditFragment",
- controller: this
- }).then(function(oDialog) {
- this._oDialog = oDialog;
- oView.addDependent(oDialog);
- oDialog.bindElement({
- path: sPath,
- model: "person"
- });
- oDialog.open();
- }.bind(this));
- } else {
- this._oDialog.bindElement({
- path: sPath,
- model: "person"
- });
- this._oDialog.open();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement