on 09-29-2017 9:45 AM
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check this blog for examples of the code using JS.
As a practice, define the table in the XML view and use the JS to bind the model.
Check link: https://sapui5.hana.ondemand.com/explored.html
or Blog for JS examples: https://blogs.sap.com/2015/06/13/ui5-programming-examples/
you can only do that with jsonmodel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.