Skip to Content
avatar image
Former Member

Issue with data binding on sapui5 [Same value is showed in my list.]

i have the next issue on my app made in sap web ide with sapui5 app template.

i want to show some values, the values are retrieved by a search field, everything works fine, but the issue i have is, the searched values what are shown are the same. in all entries.

Data showed on the app.

on the left side, the values must be differents, so i don't know how is not working. here are my code.

<mvc:View xmlns:html="" xmlns:mvc="sap.ui.core.mvc" xmlns:core="sap.ui.core" xmlns:l="sap.ui.layout"
	xmlns:f="sap.ui.layout.form" xmlns="sap.m" xmlns:sap.comp.variants="sap.ui.comp.variants" controllerName="">
			<Page title="{i18n>title}">
	<List items="{path:'/PTOS_INSPSet'}" id="puntosList" growing="true" growingThreshold="10" growingScrollToLoad="false" mode="SingleSelectMaster" selectionChange="onItemSelected">
				<Title text="{i18n>puntosListTitle}"/>
				<SearchField width="50%" search="onFilter"/>
			<ObjectListItem title="{Userc1}" >
					<ObjectStatus text="{IEbeln}"/>

this in on the view.

and this is my controller por the button search.

 onFilter:function(oEvent){var aFilter =[],
 sQuery = oEvent.getParameter("query");
if(sQuery && sQuery.length >0){
       aFilter.push(newFilter("IEbeln",FilterOperator.Contains, sQuery));

var oList = this.getView().byId("puntosList");

var oBinding = oList.getBinding("items");

all of this is retrieved from a private odata service declared on my manifest.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 31, 2017 at 06:42 AM

    Try making Userc1 also as a key along with IEbeln(the current Key), that should probably solve your issue. if that also does not work then try and make these variables filterable along with key.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 30, 2017 at 04:15 PM

    does the odata give correct data?

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 30, 2017 at 06:17 PM

    don't know what u are talking.

    what is "only last is shown"? if only last is shown, you should only see one record....

    can u show me the result from the network tab?

    Add comment
    10|10000 characters needed characters exceeded