Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Sap ui5 : Change buttons to disable

yes_sapteam
Participant
0 Kudos

Hello experts,

I am new to sapui5.

I am working with master-detail template

I need to change the buttons in the Detail.view.xml to disable

according to data from list.

Any suggestion will be appreciated.

Thank you.

1 REPLY 1

Former Member

Hi,

based on the condition, u can get the button by its ID and set the property enable by using method setEnabled(false) to make it disabled..

Thanks,