I try to bind my Data into a List View which is shown in a Dialog. The Dialog opens through an onClick Method in the Detail View of the Master Detail View Template.
onInit : function () {
// Model used to manipulate control states. The chosen values make sure,
// detail page is busy indication immediately so there is no break in
// between the busy indication for loading the view's meta data
var oViewModel = new JSONModel({
busy : false,
delay : 0,
lineItemListTitle : this.getResourceBundle().getText("detailLineItemTableHeading")
});
this.getRouter().getRoute("object").attachPatternMatched(this._onObjectMatched, this);
this.setModel(oViewModel, "detailView");
this.getOwnerComponent().getModel().metadataLoaded().then(this._onMetadataLoaded.bind(this));
},
onNodeLeaveSent : function (){
var dialog = new sap.m.Dialog({
title: 'Invoce Documents',
type: 'Message',
content: new sap.m.List({
items:{
path: "{detailView>/PurchaseOrderDeliverySet}",
template: new sap.m.StandardListItem({
title: "{detailView>DNumber}",
})
}
}),
beginButton: new sap.m.Button({
text: 'OK',
press: function () {
dialog.close();
}
}),
afterClose: function() {
dialog.destroy();
}
});
this.getView().addDependent(dialog);
dialog.open();
}
The list shows no Data. I don't undersand how to refer to my Entity from the Data Model correctly.
Can someone help?
Here the metafile: