cancel
Showing results for 
Search instead for 
Did you mean: 

Execute any action from SAP Ui5 / Fiori application ?

former_member210621
Participant

Hi Experts,

I am working on one scenario where I need to execute any action in back end on click on any button from front end (SAP Ui5 / Fiori App).

For example - Approve / Reject / Release buttons are available in front end and on click I need to take some action in back end.

I have completed rest of the application and not able to find the place where I can write this logic. I am confuse about the method from oData service which can be useful in this scenario.

Please suggest me how to execute a specific method from oData service on click event of those buttons.

-Thanks in Advance

Ketan

Accepted Solutions (0)

Answers (3)

Answers (3)

junwu
Active Contributor

do u know how to call odata service?

just call it. what is stopping u ?

Former Member
0 Kudos

Create a function import in gateway for approve and reject and then call it from the front end e.g:

oModel.callFunction("/ApprovePO",{method:"GET", urlParameters:{"id":"300000"}, success:fnSuccess, error: fnError})
junwu
Active Contributor
0 Kudos

google function import gateway