cancel
Showing results for 
Search instead for 
Did you mean: 

Is this a proper way to Create in UI5 ?

marcin_czarny_nype
Participant

Hi, I'm currently exploring how to properly make oData create calls in ui5. I have a simpleform with 2 fields and when I press submit I want to send user entry to oData create method. Everything works fine and I'm getting the expected outcome but I want to know if I'm doing it accordingly to best practices.

Would be grateful for your feedback.

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor

you can call submitchanges from the model, I think.

no need to call create

marcin_czarny_nype
Participant
0 Kudos

When I do it with submitChanges, data sent to backend is correct. But in the view the pernr field is beeing filled with 0. Do you know what might be causing it ?

junwu
Active Contributor
0 Kudos

didn't get what you are talking.