sapui5 - sap.ui.getCore().byId() returns no element -
i have problem created new sapui5 app , want use sap.ui.getcore().byid(id) access existing controls. in same controller/view can access them via this.byid(id), access controls in other files (e.g. controllers) need sap.ui.getcore().byid(id).
however, while sap.ui.getcore() returns core object, cannot access controls via byid() funtion of (returns "undefined").
is there have configure work?
i built app sapui5 , there have no issue function call. has idea? thanks!
if view's byid-method, can see prepends views id, calls sap.ui.getcore().byid(this.createid(id)).
this can instantiate view several times without having duplicate ids. in order access controls outside, either need view can call view.byid(id), or have manually concatenate view's id id this: sap.ui.getcore().byid(viewid + "--" + id).
Comments
Post a Comment