Hide last authors
Outhman Moustaghfir 1.1 1 = Introduction =
2
Outhman Moustaghfir 4.1 3 In this section, we will go throw an XSL function to set the status of certain tracking.
Outhman Moustaghfir 1.1 4
5 = Parameters =
6
Outhman Moustaghfir 4.1 7 SetStatus uses 4 params to help retrieve trackings in question:
Outhman Moustaghfir 1.1 8
9 1. trkID : tracking ID.
Outhman Moustaghfir 4.1 10 1. trackingType: it refers to the type of tracking wanted. (eg : order , product, baseArticle ...)
Outhman Moustaghfir 2.1 11 1. status: the status to update
Outhman Moustaghfir 4.1 12 1. echo Output: boolean optional param, that returns the value of 'status' when true. the default value is false.
Outhman Moustaghfir 1.1 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 2.1 18 eg.  if we want to set status of a product with trkID = '632061e5f8aef457701a28d3' to 'Delivered' :
Outhman Moustaghfir 1.1 19
Outhman Moustaghfir 2.1 20 {{code language="XML"}}
Outhman Moustaghfir 3.1 21 <xsl:value-of select="ixf:SetStatus('632061e5f8aef457701a28d3', 'Product' , 'Delivered')"></xsl:value-of>
Outhman Moustaghfir 2.1 22 {{/code}}
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian