cancel
Showing results for 
Search instead for 
Did you mean: 

Calculating deltas for hierarchical data and integrating in SAPUI5

former_member184739
Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member184739
Contributor
0 Kudos
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
former_member184739
Contributor
0 Kudos

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

junwu
Active Contributor
0 Kudos

just traverse the tree. [comment removed by moderator]

junwu
Active Contributor
0 Kudos

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

former_member184739
Contributor
0 Kudos

Dear Experts,

Any updates here ?

Regards

Prabha