<
From version < 2.6 >
edited by Outhman Moustaghfir
on 2022/09/13 17:39
To version < 2.2 >
edited by Outhman Moustaghfir
on 2022/09/13 17:29
>
Change comment: (Autosaved)

Summary

Details

Page properties
Content
... ... @@ -13,7 +13,7 @@
13 13  In the other case where we use values depending on keys, they must be separated by ';' as shown below : 
14 14  if we take the last example in 'keys' param, 'orderNumber;City;Phone' , 'values' will be by example '1243;Paris;06070706053' .
15 15  1. limit: it defines the max number of tracking to retrieve. **it's optional.**
16 -1. order: whether you want to order the list of trackings in a descending way or not by a certain key order. The default value is 'trkID' and it's optional as long as you fill the limit value.
16 +1. order: whether you want to order the list of trackings in a descending way or not by a certain key order. it's optional as long as you didn't fill then
17 17  
18 18  = Uses =
19 19  
... ... @@ -21,30 +21,6 @@
21 21  
22 22  if we want to get Product by key values
23 23  
24 - {{code language="XML"}}<xsl:value-of select="ixf:GetTracking('Product', 'Name;Brand;_statusTracking' , 'Laptop;Dell;Delivered')"></xsl:value-of>{{/code}}
24 + {{code language="XML"}}<xsl:value-of select="ixf:GetTracking('Product', 'Name;Brand' , 'Laptop;Dell')"></xsl:value-of>{{/code}}
25 25  
26 -Searching by trkIDs :
27 -
28 -{{code language="XML"}}
29 -<xsl:value-of select="ixf:GetTracking('Product', 'trkID' , '632061bef8aef457701a28d2 632061e5f8aef457701a28d3 63206213f8aef457701a28d4')"/>
30 -{{/code}}
31 -
32 -Set the limit value to get only 4 elements  :
33 -
34 -{{code language="XML"}}
35 -<xsl:value-of select="ixf:GetTracking('Product', 'Name;Brand;_statusTracking' , 'Laptop;Dell;Delivered' , 4)"></xsl:value-of>
36 -{{/code}}
37 -
38 -Add an order by Country :
39 -
40 -{{code language="XML"}}
41 -<xsl:value-of select="ixf:GetTracking('Product', 'Name;Brand;_statusTracking' , 'Laptop;Dell;Delivered' , 4, 'Country')"></xsl:value-of>
42 -{{/code}}
43 -
44 -if you want to add an order without filling the limit, you must put 0 as value to it :
45 -
46 -{{code language="XML"}}
47 -<xsl:value-of select="ixf:GetTracking('Product', 'Name;Brand;_statusTracking' , 'Laptop;Dell;Delivered' , 0, 'Country')"></xsl:value-of>
48 -{{/code}}
49 -
50 50  
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian