Skip to Content
0

Calculating deltas for hierarchical data and integrating in SAPUI5

Dec 05, 2016 at 06:57 AM

105

avatar image

Dear All,

Can anyone suggest how to calculate delta changes for hierarchical data and push those updates in OData service for integration in UI5.

Say for example functional location as shown below.

User has maintained"Biological purification" as preferred FLoc and he expects whatever changes(like "Valve 3" is added) happening under this need to pushed to his mobile device.

Q:Is it possible to track delta changes and push only those to UI5 for integration when operating with hierarchical data.

Note: Application is offline.

Appreciate your help.

Regards

Prabha

floc-hierarchy.gif (21.2 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Prabaharan Asokan Dec 05, 2016 at 11:23 AM
0

Dear Experts,

Any updates here ?

Regards

Prabha

Share
10 |10000 characters needed characters left characters exceeded
Jun Wu Dec 05, 2016 at 01:32 PM
0

when they made the change, just track it, and then sent it to mobile, what's the problem?

Share
10 |10000 characters needed characters left characters exceeded
Prabaharan Asokan Dec 07, 2016 at 05:20 AM
0

Hi Wu,

Thanks for your response.

Say for example "Valve 3" is inserted as a new child FLCO under its superior FLOC "Outlet". Now When sending the delta changes these changes are sent as 1 records with three properties like childFloc, ParentFloc, ChildFlocDesc. Now the question is how this will be consumed in the UI5 application ? Should UI5 perform a recursion logic or any custom application code to identify where this needs to be inserted in the hierarchy ?

Note:

We are using offline store in the mobile device.

Regards

Prabha

Show 1 Share
10 |10000 characters needed characters left characters exceeded

just traverse the tree. [comment removed by moderator]

0
Prabaharan Asokan Dec 07, 2016 at 03:35 PM
0
Hello Jun wu,
 Indeed I am aware traversal could be applied here . But the point here is if there would be any performance impact since this traversal logic ( or algorithm in your context) is happening in thin layer of mobile device which need to handle >20K records or there any other way of doing this. 

Thanks for the reply. Very much impressed.
 
Regards
Prabha
Share
10 |10000 characters needed characters left characters exceeded