Moderator
2 years, 3 months ago
#36782
::
To store the changes permanently, you have to write the data to your csv file. I have explained the format that is required for writing csv in this other thread: https://community.simplifier.io/forums/topic/csv-file-upload-with-fileuploader/
Use this code to get the data from the table entries:
sap.ui.getCore().byId("yourScreenId--yourTabeId").getBinding("items").oList;
This gives you an array of objects. Now, you need to transform the array of objects into the format that is required for writing csv, which is
[["name_column1","name_column2"],["value_row1column1","value_row1column2"],["value_row2column1","value_row2column2"], ...]
You can implement the transformation in a Client-Side Business Object using JavaScript code.