Entidade
Implementação de método da entidade
Código do controller.onDialog: function(oEvent)
        {
            if (!this.oDefaultDialog) {
                this.oDefaultDialog = new Dialog({
                    title: "Motivo de recusa",
                    content: new List({
                        items: {
                            path: "/HTvagSet",
                            template: new StandardListItem({
                                title: "{Abgru} {Bezei}"
                            })
                        }
                    }),
                    beginButton: new Button({
                        type: ButtonType.Emphasized,
                        text: "OK",
                        press: function () {
                            this.oDefaultDialog.close();
                        }.bind(this)
                    }),
                    endButton: new Button({
                        text: "Close",
                        press: function () {
                            this.oDefaultDialog.close();
                        }.bind(this)
                    })
                });
                // to get access to the controller's model
                this.getView().addDependent(this.oDefaultDialog);
            }
            this.oDefaultDialog.open();
        },
Resultado
 
Nenhum comentário:
Postar um comentário