on 02-15-2019 5:13 AM
Hi all,
I got an issue with the "sap.ui.table".
I created a XML view and want to remove a row.
In the internet I found only examples with JS-views. So I try to adopt the coding to my example.
On https://archive.sap.com/discussions/thread/3578776
I found for removing/deleting a row:
var data = oModel.getData();
data.splice(index,1);
As you can see oModelData is an array of 5 Products:
But the following line throws an error:
I don't have any idea why this is not working for me?
Thanks
Regards
Mario
Its oModelData.Produucts.splice()... That is not an array and it's an object and that is the reason why splice is not working.. but the object has Products property, which is an array and here you need to apply splice.
BR
Mahesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
oModelData.Products.splice
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mahesh,
thanks for the hint. But I was searching for the button "answered". How do I do that?
Kind regards
Mario
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you all! Problem solved!
Regards Mario
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.