<
From version < 2.1 >
edited by Outhman Moustaghfir
on 2024/02/01 17:22
To version < 3.1 >
edited by Outhman Moustaghfir
on 2024/02/01 17:23
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -6,7 +6,7 @@
6 6  
7 7  The **InitMetrics **function provides functionality to initialize metrics in a flexible way. It allows for the deletion of metrics, projections, and the initialization of projections with fixed values or XPath expressions.
8 8  
9 -= Usage =
9 += Usage =
10 10  
11 11  {{code language="XML"}}
12 12  <xsl:value-of select="ixf:InitMetrics('Metric','Projection','Value')"></xsl:value-of>
... ... @@ -45,11 +45,13 @@
45 45  
46 46  Assuming you want to initialize a projection named 'YourProjection' in the metric 'YourMetric' with a fixed value of 42:
47 47  
48 +{{code language="XML"}}
49 +<xsl:value-of select="ixf:InitMetrics('YourMetric', 'YourProjection', '42')"/>
50 +{{/code}}
51 +
48 48  {{{
49 49   }}}
50 50  
51 -<xsl:value-of select="ixf:InitMetrics('YourMetric', 'YourProjection', '42')"/>
52 -
53 53  This example initializes the 'YourProjection' projection in the 'YourMetric' metric with the fixed value of 42.
54 54  
55 55  **Example using XPath Expression:**
... ... @@ -56,11 +56,11 @@
56 56  
57 57  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:
58 58  
59 -{{{
60 - }}}
61 -
61 +{{code language="XML"}}
62 62  <xsl:value-of select="ixf:InitMetrics('YourMetric', 'YourProjection', 'Order[Company = ''HM'']', -1)"/>
63 +{{/code}}
63 63  
65 +
64 64  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.
65 65  )))
66 66  1. (((
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian