cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Fiori Elements Save, Edit and Delete Buttons Give Error

Hi All,

We're working on SAP Web IDE and using Fiori Elements to develop a UI screen. We developed a JAVA application for back-end system and created OData service for our application by using Apache Olingo libraries.

After all, we binded our service to Fiori by giving destinations which are related about the service that we have developed on SAP Cloud Platform. But there is a problem with create, delete and edit buttons in Fiori Element Application. When we press these buttons, we achieved to send data to our service and the data appear in Fiori Element Application.

The problem is that, after clicking the buttons the page stays in loading position and this is not finishing after the process. Following picture is showing the situation. Is there any idea about this issue ?

untitled.png

Joseph_BERTHE
Active Contributor
0 Kudos

What about the OData response ? Can you share the network tab from Chrome ?

former_member243278
Participant
0 Kudos

Hi Joseph,

Everything is fine. It is also update or create the related data. However, Fiori screen is still waiting after http response. You can see also Fiori screenshot after reponse.

Joseph_BERTHE
Active Contributor
0 Kudos

Can you show me the console errors ?

0 Kudos

Hi Joseph,

When I click to create button errors are occurring in console. After, I enter ID and saving it to my local database and while saving data to my database there is no error in console but the loading process maintaining its state. You can see the errors in the file.

Accepted Solutions (0)

Answers (3)

Answers (3)

Joseph_BERTHE
Active Contributor
0 Kudos

Try to set an unique ID for all your facet... but I'm not completly sure that it will solve your issue.

Otherwise, I have no more clues.

Joseph_BERTHE
Active Contributor
0 Kudos

Ok, is your OData response is not empty ? If you create you should return the newly created item. I fit is a modification, it should return the changed item.

former_member243278
Participant
0 Kudos

We returned related item. However, there is no change. We still have same problem.

0 Kudos

Yes, Frontend section send data and at backend , data is changed also returns all changed data However, busy indicator does not hide.

sagarikagattu
Participant
0 Kudos

Hello ,

Try hiding the busy indicator on successful data upload. example shown below.

oODataModel.update( oPost, {
 success: jQuery.proxy(function(oData, oResponse) {
 sap.ui.core.BusyIndicator.hide();
}
error: jQuery.proxy(function(error) {
}
former_member243278
Participant
0 Kudos

Hi Gattu,

We are trying to use standard Fiori elements Update button which based on OData service annotation. You answer is related with custom action. Can you please explain that how can we handle standard button event?