<
From version < 5.1 >
edited by Outhman Moustaghfir
on 2024/02/01 17:26
To version < 7.2 >
edited by Outhman Moustaghfir
on 2024/02/21 10:51
>
Change comment: Update document after refactoring.

Summary

Details

Page properties
Parent
... ... @@ -1,1 +1,1 @@
1 -iXPath V3.Funcitons.WebHome
1 +iXPath V3.Funcitons.tracking.WebHome
Content
... ... @@ -33,7 +33,7 @@
33 33  
34 34  Remember to adapt the metric names, projection names, and values based on your actual scenario. The provided examples are placeholders, and you should replace them with your specific metric, projection, and values.
35 35  
36 -1. (((
36 +(((
37 37  **Delete Metric:**
38 38  
39 39  {{code language="XML"}}
... ... @@ -59,25 +59,13 @@
59 59  Assuming you want to initialize a projection named 'YourProjection' in the metric 'YourMetric' with an XPath expression 'Order[Company = 'HM']' and a default value of -1:
60 60  
61 61  {{code language="XML"}}
62 -<xsl:value-of select="ixf:InitMetrics('YourMetric', 'YourProjection', 'Order[Company = ''HM'']', -1)"></xsl:value-of>
62 +<xsl:value-of select="ixf:InitMetrics('YourMetric', 'YourProjection', 'Order[Company = 'HM']', -1)"></xsl:value-of>
63 63  {{/code}}
64 64  
65 65  
66 66  This example initializes the 'YourProjection' projection in the 'YourMetric' metric with the provided XPath expression. If the XPath expression fails to evaluate, it uses the default value of -1.
67 67  )))
68 -1. (((
69 -**Example for Counting Trackings with XPath Expression:**
70 70  
71 -Assuming you want to count trackings where the 'Company' is 'HM' using an XPath expression:
72 -
73 -{{code language="XML"}}
74 -<xsl:value-of select="ixf:InitMetrics('YourMetric', 'YourProjection', 'Order[Company = ''HM'']', -1)"/>
75 -{{/code}}
76 -
77 -
78 -This example uses an XPath expression to count trackings where the 'Company' is 'HM'. If the XPath expression fails, it uses the default value of -1.
79 -)))
80 -
81 81  === Notes ===
82 82  
83 83  * If projection is not provided, the entire metric is deleted.
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian