Wiki source code of SetTrkLink

Last modified by Outhman Moustaghfir on 2024/02/26 17:12

Hide last authors
Outhman Moustaghfir 1.1 1 = Introduction =
2
3 In this section, we will describe another XSLT function that links between 2 tracking.
4
5 = Parameters =
6
Outhman Moustaghfir 2.1 7 SetTrkLink uses 6 params:
Outhman Moustaghfir 1.1 8
Outhman Moustaghfir 4.1 9 1. trackingType: it refers to the type of tracking wanted. (eg : order , product, baseArticle ...)
Outhman Moustaghfir 1.1 10 1. trkID : tracking ID.
Outhman Moustaghfir 4.1 11 1. trackingTypeCible: its type.
Outhman Moustaghfir 1.1 12 1. trkIDCible :the tracking to be linked.
13
14 = Uses =
15
16 We suppose that we have a tracking type named Product. It has 3 data (Name, Brand, and Country).
17
Outhman Moustaghfir 3.1 18 * if we want to link a product with trkID = '632061e5f8aef457701a28d3' to a tracking **parent **like 'Company' ( trkID = "632061e5f8aef457701aa123") :
Outhman Moustaghfir 1.1 19
20 {{code language="XML"}}
Outhman Moustaghfir 4.1 21 <xsl:value-of select="ixf:SetTrkLink('Product', '632061e5f8aef457701a28d3' , 'Company', '632061e5f8aef457701aa123')"></xsl:value-of>
Outhman Moustaghfir 1.1 22 {{/code}}
23
24
25
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian