cancel
Showing results for 
Search instead for 
Did you mean: 

Update operation in sapui5 applicaiton using callFunction

Jayakrishnan
Active Participant
0 Kudos

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();

   MessageToast.show("Note is: " +sText+"\nKey is: "+key+"\nId is: "+Id); //able to view the DescnId ,DescnAmt and User Comments.

  

  

  

    dialog.close();

    }

    }),

  

  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,

Regards,

JK

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos

did u know sap gateway?

Jayakrishnan
Active Participant
0 Kudos

No, I don't know.