Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8581

Re: Multiple oData Services and accessing entity sets

$
0
0

Maksim,

 

You are correct, this is a list, I have attempted to handle it with bindAggregation.  I have not done this before.  My view has been adjusted as follows:

 

<IconTabFilter count="10" icon="sap-icon://task" iconColor="Critical" id="qualificationSetList" text="Open">  <content>  <List id="qualList" mode="{device>/listMode}" noDataText="{i18n>masterListNoDataText}">  </List>  </content>  </IconTabFilter>

I then handled the rest in the bindView function as below:

 

var eeServiceUrlQual = "oModelEe>/" + eeServiceUrl + "/QualificationSet";

oView.byId("qualList").bindAggregation("items",

{

  path: eeServiceUrlQual,

  factory : function(sId, oContext) {

  var listitem = new sap.m.StandardListItem(sId,{

  title: oContext.getProperty("Employeenumber"),

  description: oContext.getProperty("Name"),

   });

  return listitem;

}

});

 

But I must not have done something correct.  While the gateway service is returning 5 distinct records for the qualification set:

QualifcationGateway.png

 

When it's rendered on the UI, I see the last record repeated:

QualificationUI.png

 

Is there a direction you can point me in to see why that record is repeating instead of showing the five distinct records?  I'm assuming there is still something wrong with my bindAggregation.


Viewing all articles
Browse latest Browse all 8581

Trending Articles