From version < 3.1 >
edited by Outhman Moustaghfir
on 2023/01/27 15:51
To version 1.1 >
edited by Outhman Moustaghfir
on 2022/09/21 17:22
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -4,22 +4,43 @@
4 4  
5 5  = Parameters =
6 6  
7 -SetTrkLink uses 6 params:
7 +SetTrkLink uses 2 params to help retrieve trackings in question:
8 8  
9 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).
11 11  1. trkIDCible :the tracking to be linked.
12 12  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__.
13 13  
14 14  = Uses =
15 15  
16 16  We suppose that we have a tracking type named Product. It has 3 data (Name, Brand, and Country).
17 17  
18 -* if we want to link a product with trkID = '632061e5f8aef457701a28d3' to a tracking **parent **like 'Company' ( trkID = "632061e5f8aef457701aa123") :
20 +* if we want to link a product with trkID = '632061e5f8aef457701a28d3' to a tracking **parent **like 'Company' ( trkID = "Abcd") :
19 19  
20 20  {{code language="XML"}}
21 -<xsl:value-of select="ixf:SetTrkLink('632061e5f8aef457701a28d3', 'Product', '632061e5f8aef457701aa123' , 'Company')"></xsl:value-of>
23 +<xsl:value-of select="ixf:SetTrkLink('632061e5f8aef457701a28d3', 'Product', 'top', 'Abcd' , 'Company')"></xsl:value-of>
22 22  {{/code}}
23 23  
26 +this will create a link only in 'Product' object.
24 24  
28 +* to set equivalent links between 'Company' and 'Product', we set reverse to __true__  :
25 25  
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