| 162 | |
| 163 | ==== Filters ==== |
| 164 | |
| 165 | Sometimes not all records in a table shall be synchronized - use the "Filters" subform to define any number of filters to determine which records shall be synchronized. |
| 166 | |
| 167 | Each ''filter'' is a URL query string, and is applied to the specified ''table''. Usually, the ''table'' would be the same as the master table of the resource, but you can also specify filters which only apply to a specific component or referenced table (at any reference level). |
| 168 | |
| 169 | You can use the tilde {{{~}}} as shortcut for the master table, both in the "Table" field and in the "Filter" string. |
| 170 | |
| 171 | '''Example''': export only project_project's which have link to the DRR Sector: |
| 172 | |
| 173 | - Resource: project_project |
| 174 | |
| 175 | - Tablename: ~ |
| 176 | - Filter: sector.name=DRR |
| 177 | |
| 178 | '''Remember''' that URL filter strings must always be prefixed with the component alias (or with {{{~}}} for the master table). |
| 179 | |
| 180 | '''Note''' that filters are not global: they apply only for this particular synchronization task and for this particular peer repository. |