Skip to Content
avatar image
Former Member

create and edit table in ui5

Hello everyone,

i am trying to create a sapui5 application that generates an empty table and saves user input for later display.

i i have searched forum but couldnt find exactly what i am looking for.

any help would be appricated.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Sep 29, 2017 at 03:51 PM

    Hello,

    Your first question is which model do you use ? Odata Model or JSon ? is your table connected ?

    Then, you have to attach you table to your model. If it is JSon, then it will be a Javascript array manipulation. If it is ODataModel, you will have play with Odata API (setProperty and submitChange).

    Regards

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Joseph,

      i want to create table myself. At first table will have cells but will be empty, user will fill the table then save it.

      I know how to create a table based on Odata but i need to know how to define a table myself and then populate it.

      How can i do that ?

      Thank you for your answer.

  • Oct 01, 2017 at 08:20 AM

    You can generate the table using the Javascript code.

    Then, link a local json model to the table. Ensure that the model is similar to the oData model structure.

    Now, when you wish to save it to backend, map the values from local model to oData model and execute the service which will save it in backend.

    Regards,

    Sharath

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 30, 2017 at 10:45 PM

    you can only do that with jsonmodel

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 04, 2017 at 11:22 AM
    Add comment
    10|10000 characters needed characters exceeded