Show last authors
1 = Introduction =
2
3 In this section, we will go throw an XSL function to get all tracking linked to a certain tracking regardless of their types.
4
5 = Parameters =
6
7 GetTrkLink uses 4 params to help retrieve trackings in question:
8
9 1. trkID : tracking ID.
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. trackingTypeCible: an optional param, that filter the result by a tracking type.
13
14 = Uses =
15
16 We suppose that we have a tracking type named Product. It has 3 data (Name, Brand, and Country).
17
18 if we want to get tracking linked to a product with trkID = '632061e5f8aef457701a28d3'  that has 3 links  ( 2 top and 1 bot)
19
20 * "top": [
21
22 {
23 "trkID": "**632889a3eecc82117ec1b653**",
24 "env": "iXPath",
25 "trkType": "**Corporate**"
26 },
27 {
28 "trkID": "**62fa0c69f84a1875df235633**",
29 "env": "iXPath",
30 "trkType": "**IXUser**"
31 }
32 ],
33
34 * "bot": [
35
36 {
37 "trkID": "**63289920bd508344f9682d5f**",
38 "env": "iXPath",
39 "trkType": "**Category**"
40 }
41 ]
42 }
43
44
45 to get all trackings on top links :
46
47 {{code language="XML"}}
48 <xsl:value-of select="ixf:GetTrkLink('632061e5f8aef457701a28d3', 'Product', 'top')"></xsl:value-of>
49 {{/code}}
50
51 to get all trackings on top links with tracking type equals to IXUser :
52
53 {{code language="XML"}}
54 <xsl:value-of select="ixf:GetTrkLink('632061e5f8aef457701a28d3', 'Product', 'top', 'IXUser')"></xsl:value-of>
55 {{/code}}
56
57
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian