Introduction

The syncWith property is used to establish synchronization between two different trackings that have distinct trackingTypes.

Setup

let's suppose that we have 3 'trackingTypes' : PartnerSync, Customer, Contact. 

if we chose to synchronize the partnerSync with Customer and Contact, we need to update it on the 'Tracking Editor' page :

1729510418155-180.png

After submitting the form, the system will automatically create the corresponding syncWith property for the target trackingTypes, establishing a bidirectional synchronization between them

1729510644576-469.png

1729510650059-462.png

Usage

The use of `syncWith` covers both the creation and updating of a tracking by setting the same `TrkID` for synchronized trackings. It ensures that only the shared `dataTypes` between the trackings are synchronized.

By taking the last example, let's create a 'PartnerSync' tracking using setTracking : 

<?xml version="1.0" encoding="windows-1251"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
xmlns:ixf="http://www.ixPath.com/Function" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:ix="localFunction">
<xsl:output method="xml" indent="yes" />
<!-- Beginning of the Translation -->
<xsl:template match="/">
 <xsl:variable name="varrr">
  <Trk>
   <PartnerSync>
    <Address>100 , Elm Street</Address>
    <IsLocalEntity>false</IsLocalEntity>
    <City>Las vegas</City>
    <Name>Alex</Name>
    <NotIncluded>20</NotIncluded>
   </PartnerSync>
  </Trk>
 </xsl:variable>
 <iXDOC>
  <testt>
   <xsl:value-of select="ixf:SetTracking($varrr)" />
  </testt>
 </iXDOC>
</xsl:template>

</xsl:stylesheet>

the result for partnerSync and Customer

<?xml version="1.0" encoding="UTF-8"?>
<iXDOC xmlns:ix="localFunction"
      xmlns:ixf="http://www.ixPath.com/Function"
      xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <testtt>
     <iXDoc>
        <PartnerSync CreationDate="2024-10-17 08:42:02"
                     Current="true"
                     EnvID="R1"
                     ModificationDate="2024-10-17 08:42:02"
                     Status="Available"
                     UserID=""
                     Version="1"
                     VersionID="6710cdda18bd1e28f7a9ce36"
                     id="6710cdda18bd1e28f7a9ce36">
           <Address>100 , Elm Street</Address>
           <City>Las vegas</City>
           <NotIncluded>20</NotIncluded>
           <Name>Alex</Name>
           <IsLocalEntity>false</IsLocalEntity>
           <_accessStatus>OPEN</_accessStatus>
           <_accessStatusHistory>
              <modificationDate>2024-10-17 08:42:02</modificationDate>
              <accessStatus>OPEN</accessStatus>
           </_accessStatusHistory>
        </PartnerSync>
     </iXDoc>
     <iXDoc>
        <Customer CreationDate="2024-10-17 08:42:02"
                  Current="true"
                  EnvID="R1"
                  ModificationDate="2024-10-17 08:42:02"
                  Status="Available"
                  UserID=""
                  Version="1"
                  VersionID="6710cdda18bd1e28f7a9ce39"
                  id="6710cdda18bd1e28f7a9ce36">
           <Name>Alex</Name>
           <_accessStatus>OPEN</_accessStatus>
           <_accessStatusHistory>
              <modificationDate>2024-10-17 08:42:02</modificationDate>
              <accessStatus>OPEN</accessStatus>
           </_accessStatusHistory>
        </Customer>
     </iXDoc>
  </testtt>
</iXDOC>
Tags:
    
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian