Skip to Content

How to pass sap.ui.commons.Button Press event values to onSubmit function

Dec 06, 2016 at 06:31 PM


avatar image
Former Member

This is a Javascript newbie question. I do not know how to pass and/or read the inputName and inputComments values in the onSubmit function:

var oButton = new sap.ui.commons.Button({

text: "Submit",

press: function(){

oController.onSubmit.apply(oController, {

inputName: oNameInput.getValue(),

inputComments: oCommentsInput.getValue()



10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers