Skip to Content
May 06, 2016 at 10:32 AM

Update operation in sapui5 applicaiton using callFunction


Hi ,

I started to work on the SAPUI5 Update operation. In My application i am keeping the list in the master section, on the detail page, I need to press the approve button to update the service.Approve button opens a dialogue with text area. while submittib the approve operation i need to post the two values ,which listed over in the master page.

List URL : /sap/opu/odata/sap/YBUSI_PROCESS_SRV/ParentSet

Update URL: /sap/opu/odata/sap/YBUSI_PROCESS_SRV/Update?DescnId='1'&DescnCmt='JK'

In dialogue confirm action :

beginButton: new Button({

text: 'Submit',

press: function () {

var sText = sap.ui.getCore().byId('confirmDialogTextarea').getValue();"Note is: " +sText+"\nKey is: "+key+"\nId is: "+Id); //able to view the DescnId ,DescnAmt and User Comments.




I am trying to compare the Standard Purchase order code, they used like oModel.callFunction. i am geeting confused here.

How to call the update method.

Thank you,