You can synchronize tags across different projects, so that two or more projects use the same variable value, with the project-level Tag Sync property. When you set a Tag Sync property for Project B equal to Project A, you establish a parent-child relationship between Project A (the parent) and Project B (the child).
When you run a project with a Tag Sync property, the system checks to see if any of the tag variables in the child project match tag variables in the parent project. If found, the child project's variable is set to the parent project's last used value.
If no variables in the child project's tag format match variables in the parent project's tag format, the Tag Sync property has no effect.
Synchronization works only on the tag variable's value. The Auto Increment and Padding properties are not synchronized.
Only the variables in the tag are synchronized, so you can still distinguish between different projects.
For example, consider two projects defined as shown in the following table:
Project |
Tag format |
Auto Increment |
Tag sync |
---|---|---|---|
Project A |
Project_A_$B |
Yes |
-- None -- |
Project B |
Project_B_$B |
Yes |
Project A |
If you then run the projects alternately (starting with Project A), the completed jobs list shows the tags as follows. The last run is shown first, the same way jobs are shown in the completed jobs list.
Project |
Tag |
---|---|
Project B |
Project_B_4 |
Project A |
Project_A_3 |
Project B |
Project_B_2 |
Project A |
Project_A_1 |
If you set Auto Increment property to Yes only on the parent project, the results are different. The projects are set up as follows:
Project |
Tag format |
Auto Increment |
Tag sync |
---|---|---|---|
Project A |
Project_A_$B |
Yes |
-- None -- |
Project B |
Project_B_$B |
No |
Project A |
If you then run the projects alternately (starting with Project A), the completed jobs list shows the tags as follows. The last run is shown first, the same way jobs are shown in the completed jobs list.
Project |
Tag |
---|---|
Project B |
Project_B_2 |
Project A |
Project_A_2 |
Project B |
Project_B_1 |
Project A |
Project_A_1 |