Hello everyone,
I am developing a master detail application which consumes an OData service.When a master list item is clicked i am trying to bind the context of it to the detail page controller onBeforeShow() as follows:
this.getView().byId("pr_list").bindElement("/" + oEvt.data.context);
but its throwing Cannot read property 'uri' of undefined error.Please tell me how to bind context("/ES_CF_PENDING_APP_LIST(SSoff='A110')/AS_DEALER") to list with id "pr_list" . Both master and detail views are of type HTML and hence when I set following to the list in detail HTML View:
data-items="{/ES_CF_PENDING_APP_LIST(SSoff='A110')/AS_DEALER}"
It works fine .
Any help will be appreciated.
Thanks.