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

Re: Passing Parameters to Button Press Handler

$
0
0

Thanks for your response. I'm getting a "Object doesn't support property or method 'getParameter'" error. I have modified my code as below:

oButton = new sap.ui.commons.Button();

oButton.setText("Close");

oButton.attachPress(HandleButtonClick({dialog: oDialog}));

oDialog.addButton(oButton);

          

// Open Dialog

oDialog.open();

 

function HandleButtonClick(oEvent)

{    var Dialog = oEvent.getParameter("dialog");

    Dialog.close();

}

 

Thanks


Viewing all articles
Browse latest Browse all 8644

Trending Articles



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