Skip to Content
avatar image
Former Member

How can a button trigger an ODATA Update function

Dear Experts,

sorry for the repost. Since there is nobody answering in the Fiori Category i thought i should try it here.

i am new to the topics Fiori Apps and ODATA. I have the task to learn how to design a Fiori App. The App should do following:

Show the QM-Notifications of a specific type. Than u should be able to see a detail view of a Notification you selected. Within this detail view there is a Button to confirm the QM-Notification.

So far i was able to get the ODATA Service working. Which means i can select the DATA form the Table QMEL and show it on my Fiori App created with a template.

Now to my question:

How do i trigger the ODATA Update function to confirm the notification with the Button in the Fiori App. The coding in the backend is no problem. i tryed to google and read some documentations but i somhow cannot find how to trigger the update method from the odate collection with a button on the UI.

I would appreciate any guides or tutorials on how to do this.

If there is any other way to get this working i would like to know aswell.

Thank you in advance,

Jan

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 30, 2015 at 02:03 PM

    You can try going through this blog as well as the source code to get an understanding of CRUD operations using UI5.

    denisenepraunig/tdg_crud_sapwebide · GitHub

    SAPUI5 Application Best Practices with CRU(D) support in SAP Web IDE

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 30, 2015 at 02:06 PM

    A button has a press event that you would assign a function defined in the views associated controller.  This function would then submit your request to the backend.  A simple example can be found at

    OData Write Support - UI Development Toolkit for HTML5 (SAPUI5) - SAP Library

    Regards,

    Jamie

    SAP - Technology RIG

    Add comment
    10|10000 characters needed characters exceeded