Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to access a control of another view from different controller?


I created a master detail application using template in sap  webide(local).Using xml views.I need to access List in the master page from detail controller.

I tried sap.ui.getCore().getControl("list") method but it returns undefined.

this.getView().byId("list") is successful from master controller.I tried different methods like byId, getElement etc but was unsuccessful.

What i need is to refresh the detail page after approving the item.Master list is refreshing.for this i need access master list control from detail controller.Plz help.


Hi Rajeesh,

Since you're using XML views, the id of the view in run-time will be prefixed with the id of parent control.

Now consider your master view id is 'master' then you can try like below in your detail controller.


Check this sample: Plunker

On select of the button placed in Detail will get you the selection mode of list present in Master.


Sai Vellanki.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question