I'm trying to use the sync method on a Store object which is supposed to formulate a "batched" Ajax request with all the changes, additions & deletions to the store.
I had to listen for the "beforeSync" event in which I set the "action" query string parameter appropriately.
When I look at the resulting Network traffic with the Chrome developer tools I can see that my "action" query string is set correctly and I see something labeled "Request Payload" which contains a JSON object with the record (model) I am trying to sync back to the DB2/400 database.... it all looks fine.
However, there doesn's appear to be a way for vvIn to retrieve this "Request Payload". At least I couldnt find a way.
So my question; "How do I retrieve the 'Request Payload' in my RPG program"?
I've inserted a screen shoot of the Chrome Network traffic which includes the "Request Payload" I mentioned.
StoreSyncRequestPayload1.jpg
I had to listen for the "beforeSync" event in which I set the "action" query string parameter appropriately.
When I look at the resulting Network traffic with the Chrome developer tools I can see that my "action" query string is set correctly and I see something labeled "Request Payload" which contains a JSON object with the record (model) I am trying to sync back to the DB2/400 database.... it all looks fine.
However, there doesn's appear to be a way for vvIn to retrieve this "Request Payload". At least I couldnt find a way.
So my question; "How do I retrieve the 'Request Payload' in my RPG program"?
I've inserted a screen shoot of the Chrome Network traffic which includes the "Request Payload" I mentioned.
StoreSyncRequestPayload1.jpg
Comment