SAP / openui5

OpenUI5 lets you build enterprise-ready web applications, responsive to all devices, running on almost any browser of your choice.
http://openui5.org
Apache License 2.0
2.94k stars 1.23k forks source link

oDataModel.create issue #3975

Closed arif567 closed 6 months ago

arif567 commented 6 months ago

OpenUI5 version: 3.9.0

Browser/version (+device/version): chrome Version 121.0.6167.161 (Official Build) (64-bit)

Any other tested browsers/devices(OK/FAIL):

URL (minimal example if possible):

User/password (if required and possible - do not post any confidential information here):

Steps to reproduce the problem:

I execute the code to save data inot SAP system but i amge getting successfull messge but data is not actually saving

onSave: function(){

            var payload =this.oLocalModel.getProperty("/prodData");
            var oDataModel = this.getView().getModel();
            oDataModel.create("/ProductSet", payload,{
                success: function(data){
                    MessageToast.show("The data has been posted!")
                },
                error: function(oError){

                    debugger;

                }

            })

        }

But if i manually execute the post method with i insert data

What is the expected result?

What happens instead?

Any other information? (attach screenshot if possible)

boghyon commented 6 months ago

As per the guidelines at https://github.com/SAP/openui5/blob/master/CONTRIBUTING.md#report-an-issue, please use one of the community platforms mentioned in https://openui5.org/community/ and post your question there with more details.