Skip to Content

Questions about aggregation and binding/model

Hello,

I face a problem with a sap.m.list and the items in the aggregation.

We use NEPTUNE planet8 to develop UI5 apps (dont ask me why…), so i'm not able to build apps by xmlview so I generate a sap.m.list in onInit() using a factory which can let me change the binding path to my model for one sap.m.select depending on a key of a sap.m.segmentedButton, after doing oList.bindItems(...) i bound my model to the sap.m.list.

These control are integrated in the items aggregation and binding to my model (2 way).

Everything is ok, it works, but when i press one segmentedButton, the aggregation tems are completely rebuild and i don"t know why.The factory method is executed for each items.

I think that: as my model is updated with a new value, all the aggregation items is rebuild generating new clones. Is there Something to do to keep the existing items or its normal ? (it's the first list/table i build with two way binding).

I read some blog/post about the parameters templateShareable but i'm not completely sure.

If you need some details, i can edit post monday with code/screenshot.

Thank you

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jun 27 at 02:49 AM

    Hi Xavier,

    Not enough information to help with your issue, can you post those additional screenshots you are talking about?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.