Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Bind detail page list with master page context-error Cannot read property 'uri' of undefined

$
0
0

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.


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>