cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos

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

});

}

Accepted Solutions (0)

Answers (0)