Skip to Content
Oct 02, 2017 at 03:54 PM

Issue in the Master Detail Fiori application



I am using WebIDE to build our custom Fiori application based on the Master details template out there.

We are using SAPUI5 version 1.44.19.

everything works fine except one issue we have seen recently.

In our scenario, we are displaying list of addresses person/employee has in the system. When they select anyone, details are shown on the right hand side. Now, here they can edit or remove particular address.

For each record, primary key is:- pernr, address type, begin date & end date (as same employee can have multiple addresses based on the validity dates)

Removing works fine. Edit also works fine except one scenario.

When they edit, user can change the begin & end date of the record as well. (Which are primary keys)

When data is sent to backend, it updates the record successfully. Now, after update, application automatically makes 2 calls also.

1. Getting the list of employee addresses (calling the getEntitySet method in the ODATA)

2. getting the employee record for which update was made (calling the GetEntity method in the ODATA)

When it calls the 2nd item, obviously, it will fail as primary key (dates) were changed for that record.

I was trying to find out how can I avoid the second call so that it does not try to call updated record.

Any other suggestions?