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

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

});

}

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

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

Very Helpfull

User Rating: Be the first one !
Doctor Asked on May 24, 2017 in SAP PORTAL.
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.