SAPUI5, Access view elements in controller
问题 When my button is pressed, I want to get in my controller, access my button and change the text to new text for example. The onClick event works fine. But I stuck at accessing the view element (myButton) from the controller. I know there are threads about this topic, but I couldn't apply any of them. sap.ui.getCore().byId() for example didn't work for some reason. Does anyone got some hints or detailed information about accessing view elements from the controller? 回答1: The IDs of the elements