Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3585

Re: How to Read Form Values in Controller Button Action

$
0
0

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),

Viewing all articles
Browse latest Browse all 3585

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>