<
From version < 2.1 >
edited by Outhman Moustaghfir
on 2022/09/21 17:22
To version < 4.1 >
edited by Outhman Moustaghfir
on 2023/05/19 17:19
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -6,41 +6,20 @@
6 6  
7 7  SetTrkLink uses 6 params:
8 8  
9 -1. trkID : tracking ID.
10 10  1. trackingType: it refers to the type of tracking wanted. (eg : order , product, baseArticle ...)
11 -1. sensType: top (parent), bot (children), any (same level).
12 -1. trkIDCible :the tracking to be linked.
10 +1. trkID : tracking ID.
13 13  1. trackingTypeCible: its type.
14 -1. reverse: optional param that allows the creation of an equivalent link on the other tracking.the default value is __false__.
12 +1. trkIDCible :the tracking to be linked.
15 15  
16 16  = Uses =
17 17  
18 18  We suppose that we have a tracking type named Product. It has 3 data (Name, Brand, and Country).
19 19  
20 -* if we want to link a product with trkID = '632061e5f8aef457701a28d3' to a tracking **parent **like 'Company' ( trkID = "Abcd") :
18 +* if we want to link a product with trkID = '632061e5f8aef457701a28d3' to a tracking **parent **like 'Company' ( trkID = "632061e5f8aef457701aa123") :
21 21  
22 22  {{code language="XML"}}
23 -<xsl:value-of select="ixf:SetTrkLink('632061e5f8aef457701a28d3', 'Product', 'top', 'Abcd' , 'Company')"></xsl:value-of>
21 +<xsl:value-of select="ixf:SetTrkLink('Product', '632061e5f8aef457701a28d3' , 'Company', '632061e5f8aef457701aa123')"></xsl:value-of>
24 24  {{/code}}
25 25  
26 -this will create a link only in 'Product' object.
27 27  
28 -* to set equivalent links between 'Company' and 'Product', we set reverse to __true__  :
29 29  
30 -
31 -{{code language="XML"}}
32 -<xsl:value-of select="ixf:SetTrkLink('632061e5f8aef457701a28d3', 'Product', 'top', 'Abcd' , 'Company', 'true')"></xsl:value-of>
33 -{{/code}}
34 -
35 -this call is the same as :
36 -
37 -{{code language="XML"}}
38 -<xsl:value-of select="ixf:SetTrkLink('632061e5f8aef457701a28d3', 'Product', 'top', 'Abcd' , 'Company')"></xsl:value-of>
39 -{{/code}}
40 -
41 -{{code language="XML"}}
42 -<xsl:value-of select="ixf:SetTrkLink('Abcd', 'Company', 'bot', '632061e5f8aef457701a28d3' , 'Product')"></xsl:value-of>
43 -{{/code}}
44 -
45 -
46 -
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian