Skip to Content

Calculating deltas for hierarchical data and integrating in SAPUI5

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Dec 05, 2016 at 11:23 AM

    Dear Experts,

    Any updates here ?

    Regards

    Prabha

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 05, 2016 at 01:32 PM

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

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 07, 2016 at 05:20 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 07, 2016 at 03:35 PM
    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
    Add comment
    10|10000 characters needed characters exceeded