Sync Filter: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
 
Line 5: Line 5:
== Editing the sync filter ==
== Editing the sync filter ==


# Edit an [[App_projects#Managing_entities|app project]].
# Edit an [[app project]].
# Select an entity from the '''Project''' menu > '''Entities'''.
# Select an entity from the '''Project''' menu > '''Entities'''.
# Click '''Show Fields''' to display the list of entity fields.
# Click '''Show Fields''' to display the list of entity fields.
Line 68: Line 68:
== Incremental linked sync filters ==
== Incremental linked sync filters ==


Incremental linked sync filter ensures that linked filters on entities are checked during incremental synchronization. Without enabling it, the only initial filter for downloading records from server is the one checking whether the entity records were changed since last synchronization.
Incremental linked sync filter ensures that linked filters on entities are checked during incremental synchronization. Without enabling it, the only initial filter for downloading records from the server is the one checking whether the entity records were changed since last synchronization.


This feature can be enabled per entity; see [[App_projects#Managing_entities|Managing entities]] for instructions.
This feature can be enabled per entity; see [[Data_model_in_mobile_apps#Managing_entities|Managing entities]] for instructions.


The use case for this filter is best shown on an example:
The use case for this filter is best shown on an example:
Line 114: Line 114:
== Mark as Parent Pointer ==
== Mark as Parent Pointer ==


You can enable the parameter [[Mark as Parent Pointer]] in the properties of a lookup field to ensure that both parent and child records are available. However, this setting is only effective if the lookup has only a single lookup target (also displayed on the [[App_projects#Managing_fields|properties pane for entity fields]]). When you use this option, the sync filter of the parent entity is also used for synchronization (application uses this flag and runs the parent sync filter in the code, parent sync filter will not be copied to the child entity sync filter). See [[Sync Filter examples with child entities]] for a more detailed explanation.
You can enable the parameter [[Mark as Parent Pointer]] in the properties of a lookup field to ensure that both parent and child records are available. However, this setting is only effective if the lookup has only a single lookup target (also displayed on the [[Data_model_in_mobile_apps#Managing_fields|properties pane for entity fields]]). When you use this option, the sync filter of the parent entity is also used for synchronization (application uses this flag and runs the parent sync filter in the code, parent sync filter will not be copied to the child entity sync filter). See [[Sync Filter examples with child entities]] for a more detailed explanation.


== Analyzing SyncFilter.xml ==
== Analyzing SyncFilter.xml ==

Navigation menu