Forum

Jennifer Häfner
      Has successfully completed the online course Intermediate (200)
      Has successfully completed the online course Advanced (300)
      Has successfully completed the online course Basics (100)
      Has successfully completed the online course Advanced (310)
      Has successfully completed the online course Advanced (320)
      Has successfully completed the Intermediate Certification
      Has successfully completed the Advanced Certification
    1 year ago #36782
    Up
    0
    Down
    ::

    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.