on 07-24-2019 6:14 PM
Say you have implemented a get entityset which brings all the plant records and displayed it in the SAPUI5 app. Now someone in the ECC added a new record, I need to monitor any changes and fetch only the recent updated records to improve performance.
I searched for blogs like etag but unable to find the blog which guides me to implement that oData method and control it in SAPUI5 to fulfill my requirements
Code and Screen shot to implement this scenario would be great helpful.
Hi Sagar,
I think the SAP Gateway Delta Query might solve your problem, but not sure the UI5 Framework support it.
How to Implement Basic Delta Query Support in SAP NetWeaver Gateway
Otherwise, you have to implement it on your own: You add a timestamp (new column in the db table) for each record once they add/modified/delete.
Let say, after you first get the 10 records from backend, you store it in a local JSON model for display and save the current system timestamp on your UI side.
For the refresh, you send a odata request by filtering the timestamp greater than the last one. And merge the results(add/modify/delete) into the local JSON model.
I hope it could help you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.