<
From version < 8.1 >
edited by Outhman Moustaghfir
on 2024/07/23 11:14
To version < 4.3 >
edited by Outhman Moustaghfir
on 2024/02/26 17:12
>
Change comment: Update document after refactoring.

Summary

Details

Page properties
Content
... ... @@ -7,10 +7,9 @@
7 7  GetTracking uses 4 params to help retrieve trackings in question.
8 8  
9 9  1. xpathExpression: read the IXpathExpression for more details ([[IXpathExpression>>https://ixpath.app/xwiki/bin/view/iXPath%20V3/IXpathExpression/]])
10 -1. fetchLinks : for optimization, you can choose the links you would like to fetch by sending the links needed separated by ';' , if your xpathExpression contains already the link, it can bypass this param. If you want to fetch all links - which is not recommended - you can put the value '$ALL'.
11 11  1. limit: it defines the max number of tracking to retrieve. **it's optional. **(Optional)
12 12  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 in the limit value. (Optional)
13 -1. includeKeys: This parameter specifies the keys to be fetched. If it is null or empty, all keys will be fetched. This parameter is optional.
12 +1. projection: you can return only some wanted fields instead of fetching the integrity of tracking object. (Optional)
14 14  
15 15  = Uses =
16 16  
... ... @@ -23,30 +23,24 @@
23 23  Searching by trkIDs :
24 24  
25 25  {{code language="XML"}}
26 -<xsl:value-of select="ixf:GetTracking('Product [ _trkID '632061bef8aef457701a28d2;632061e5f8aef457701a28d3;63206213f8aef457701a28d4]')"></xsl:value-of>
25 +<xsl:value-of select="ixf:GetTracking('Product [ _trkID in '632061bef8aef457701a28d2;632061e5f8aef457701a28d3;63206213f8aef457701a28d4]')"></xsl:value-of>
27 27  {{/code}}
28 28  
29 -Set the limit value to get only 4 elements and fetch link 'Invoice' :
28 +Set the limit value to get only 4 elements  :
30 30  
31 31  {{code language="XML"}}
32 -<xsl:value-of select="ixf:GetTracking('Product [Name == Laptop AND Brand == Dell AND _statusTracking==Delivered ]','Invoice',4)"></xsl:value-of>
31 +<xsl:value-of select="ixf:GetTracking('Product [Name == Laptop AND Brand == Dell AND _statusTracking==Delivered ]',4)"></xsl:value-of>
33 33  {{/code}}
34 34  
35 35  Add an order by Country :
36 36  
37 37  {{code language="XML"}}
38 -<xsl:value-of select="ixf:GetTracking('Product [Name == Laptop AND Brand == Dell AND _statusTracking==Delivered ]','Invoice',4,'Country')"></xsl:value-of>
37 +<xsl:value-of select="ixf:GetTracking('Product [Name == Laptop AND Brand == Dell AND _statusTracking==Delivered ]',4,'Country')"></xsl:value-of>
39 39  {{/code}}
40 40  
41 -if you want to add an order without filling the limit and the fetchLink params, you must put 0 as a value to it :
40 +if you want to add an order without filling the limit, you must put 0 as a value to it :
42 42  
43 43  {{code language="XML"}}
44 -<xsl:value-of select="ixf:GetTracking('Product [Name == Laptop AND Brand == Dell AND _statusTracking==Delivered ]','',0,'Country')"></xsl:value-of>
43 +<xsl:value-of select="ixf:GetTracking('Product [Name == Laptop AND Brand == Dell AND _statusTracking==Delivered ]',0,'Country')"></xsl:value-of>
45 45  {{/code}}
46 46  
47 -GetTracking with projection : 
48 -
49 -
50 -{{code language="XML"}}
51 -<xsl:value-of select="ixf:GetTracking('Product [Name == Laptop AND Brand == Dell AND _statusTracking==Delivered ]/Processors')"></xsl:value-of>
52 -{{/code}}
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian