Wiki source code of GetTrkDataByData
Last modified by Outhman Moustaghfir on 2024/02/26 17:12
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
1.1 | 1 | == Overview == |
2 | |||
3 | The GetTrkDataByData function facilitates the retrieval of tracking data based on specified criteria and projection, offering a flexible approach to fetch targeted information from trackings. | ||
4 | |||
5 | {{code language="XML"}} | ||
6 | GetTrkDataByData(trackingType, keys, values, projection) | ||
7 | {{/code}} | ||
8 | |||
9 | |||
10 | * **trackingType**: The type of tracking records to query. | ||
11 | * **keys**: A semicolon-separated list of keys for filtering the tracking records. | ||
12 | * **values**: A semicolon-separated list of values corresponding to the specified keys. | ||
13 | * **projection**: The key to be used as a projection, indicating the desired data to retrieve. | ||
14 | |||
15 | === Parameters === | ||
16 | |||
17 | * **trackingType**: Identifies the type of tracking | ||
18 | * **keys**: A semicolon-separated list of keys for filtering. | ||
19 | * **values**: A semicolon-separated list of values corresponding to the specified keys. | ||
20 | * **projection**: Specifies the key for projection, indicating the desired data. | ||
21 | |||
22 | === Usage === | ||
23 | |||
24 | Example: | ||
25 | |||
26 | {{code language="XML"}} | ||
27 | <xsl:value-of select=" ixf:GetTrkDataByData('SimpleTrackingType', 'Key1;Key2', 'value1;value2', 'TrkID')"></xsl:value-of> | ||
28 | |||
29 | {{/code}} | ||
30 | |||
31 | |||
32 | This example retrieves the value of 'TrkID' from tracking of type 'SimpleTrackingType' where 'Key1' matches 'value1' and 'Key2' matches 'value2'. The projection, in this case, is 'TrkID'. | ||
33 | |||
34 | === Note === | ||
35 | |||
36 | * Multiple keys and values can be provided, separated by semicolons, for more precise filtering. | ||
37 | * The specified projection key determines the data to be retrieved. | ||
38 | |||
39 | == Conclusion == | ||
40 | |||
41 | GetTrkDataByData offers a versatile method for retrieving targeted tracking data based on specified criteria and projection, enhancing the efficiency of data extraction from the tracking system. |