Can a nanoflow retrieve unsynced objects?

1
I have a native app that collects data while offline/no network – then syncs them later when the user has network restored. I’m wondering if, from within a nanoflow, can the retrieve component only retrieve unsync’s rows (so I can then see if I need to perform a sync)
asked
3 answers
1

Offline first means that your app does not require a network connection to work fine. With this in mind, I don’t understand your question why you want to retrieve a list with unsynced objects. Please read how the sync process works.

Also, isSynced() is only available in the page editor for visibility and editability conditions.

answered
0

hi Andrew, you should check out this recent webinar recording: https://www.mendix.com/live/native-sync-for-large-data-sets/

To answer your question, the retrieve action on a nanoflow would only return objects from the datastore local to the device.

 

answered
0

You could use a boolean attribute "IsChangedLocally" or something like that. Set the attribute to 'true' when you commit the object locally. Then just change it back to 'false' in an after commit event at synchronisation.

answered