Skip to Content

Newly added table row disappearing when changing previous row

Hi Community,

I have a sap.m.Table bound to an entityset in the GW via ODataModel V2. The table displays 3 rows with data from the backend. There is a functionality to add a new row by clicking an add row button in the Table toolbar.

For this I am using the createEntry method as shown in the code below when clicking on the button. This works fine and the entry (row 4) is shown in the table. I can then enter values in the fields for this row.

However, if I now change the data of any of the previous rows, this newly created row (row 4) disappears from the table and I can see only the 3 existing rows. The data for the 4th row is still available in the mChangedEntities of the model. Its just that the newly created row disappears.

Does anyone have a clue how to resolve this ?

Note: The new row is submitted later to the backend using submitChanges.

var oContext = oModel.createEntry("/ManualPostBondsSet", {
				properties : {
					BusinessPartnerID: this._bpId,
var oItem = this._getItemsTemplate(); // Pvt. method to retrieve the ColumnListItem template
var oTable = this.getView().byId(sTableId);
if(oTable) {
	oItem.setBindingContext(oContext, "modelName");
Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Dec 10, 2018 at 11:13 AM

    Can anyone provide some inputs ?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 10, 2018 at 02:27 PM

    I don't think you can make it with odatamodel.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 21, 2019 at 04:25 AM

    Probably you've solved your issue by now or gave up, but I'm having the exactly same problem with no reasonable explanation...

    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.