UI5 Loops with duplicate records

Home / Blog / UI5 Loops with duplicate records

Well, in my quest to convert some of my applications from iOS or Web Dynpro to UI5, I’ve recently run into something new.  I had a table of information, and my UI5 was able to render the table and put in the correct number of rows, but all the data was the same.  Every row was identical, and it was the last row in my table.  After some digging, I found a rather simple solutions.

https://scn.sap.com/thread/3670270

Thanks to SCN for this, but the issue was in my Gateway service.  I needed to make the key of the table unique.  This was interesting to me because in the iOS, this didn’t make any difference.  So perhaps my developer jumped through some extra hoops, or it’s just a function of XML.  Regardless, make sure your entity set keys form a unique row (I just had to update my services to include an input for the key field (didn’t matter for reading the service).

Thanks for reading,

As always, thanks for reading and don't forget to check out our SAP Service Management Products at my other company JaveLLin Solutions,
Mike

Leave a Reply

Your email address will not be published. Required fields are marked *