Skip to Content
2

SAP Fiori Elements Save, Edit and Delete Buttons Give Error

Feb 27 at 10:27 AM

75

avatar image

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

untitled.png (11.3 kB)
10 |10000 characters needed characters left characters exceeded

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

0
Former Member
Joseph BERTHE

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.

0

Can you show me the console errors ?

0

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.

untitled.png (36.3 kB)
untitled1.png (135.2 kB)
0
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Sagarika Gattu Feb 27 at 10:56 AM
0

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) {
}
Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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?

0
Joseph BERTHE Feb 27 at 11:46 AM
0

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.

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0

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

0
Joseph BERTHE Feb 27 at 01:32 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded