Hi Maksim,
I have modified the logic as suggested. I am getting error "Uncaught TypeError: this.byId is not a function".
Check Button in My View:
var oButton3 = new sap.ui.commons.Button("F1B1", { text : "Check", style: sap.ui.commons.ButtonStyle.Accept,
press : jQuery.proxy(this.getController().check, this.getController())})
Check Button Action in My Controller:
check: jQuery.proxy(function(evt){ | ||
var sPernr = this.byId('pernr'); | ||
}, this), |