Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Kapsel App: Cannot modify local entity in offline store

Hi all,

I am facing a problem with editing an offline entity.

Actually I can add the entity to my offline store without any issue. This works more or less like the following lines show.

var request = {

            headers : oHeaders,

            requestUri : appointmentURL,

            method : "POST",

            data : oAppointment

};

OData.request(...);

The oAppointment contains just some data like description, account, contact, etc.

Once the appointment is created offline it is accessable via an URI looking like this:


"http://10.157...:8080/appID/AppointmentSet(lodata_sys_eid=X'60994DF02A2511E58000F93EFBE65E2B00000000')"

So after that I try to modify the appointment like this:

var request = {

            headers : oHeaders,

            requestUri : appointmentURL,

            method : "PUT",

            data : oAppointment

};

OData.request(...);

Now the Error occurs and just says: "Request failed".

I pretty much think the request fails because of the missing GUID of the appointment entity. But actually the GUID will only be created at the host system. And as long as I am working offline I dont have access to this host system...

Does someone has a workaround?

Thanks a lot for helping!

regards,

Clemens

Former Member
Not what you were looking for? View more on this topic or Ask a question