cancel
Showing results for 
Search instead for 
Did you mean: 

How to submit multiple rows of an editable SmartTable?

Arian
Discoverer
0 Kudos

I created a SmartTable which has the propertie editable="true". Shown as follows:

Arian_0-1710171897806.png

How can I select all updated rows of the table and update them in the backend?

I was thinking to select every updated row so I can call them in the controller with getSelectedIndices and then update each row with a PUT method. Would that be possible like that or is there a simpler way to update the table?

 

View Entire Topic
Maksim
Newcomer
0 Kudos

it is two way binding, so this.getView().getModel().submitChanges() should do it

Arian
Discoverer
0 Kudos

thank you for the answer Maksim

I already tried around with the submitChanges method, but it seems that there are no noticed changes after I edit the input fields of the smart table. Do I need to pay attention for something special?