Skip to Content
0
Oct 26, 2016 at 03:08 PM

new sap.m.Dialog change button to enabled dynamicly

496 Views Last edit Oct 27, 2016 at 03:24 PM 3 rev

Hello

I am using new sap.m.Dialog with two buttons

one button should be disabled at first, and after calling a service to get data in the dialog

I have to change it to enabled.

in the Controller.js the code is like this:

In the Controler of the dialog

If the oData_error not equal 'X'

I need to change the button to enabled : true.

Any help will be appreciated.

Thank you.

Attachments

cart-call.png (17.8 kB)
omodel-read.png (18.5 kB)