GetTrkDataByData
Last modified by Outhman Moustaghfir on 2024/02/26 17:12
Overview
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.
GetTrkDataByData(trackingType, keys, values, projection)
- trackingType: The type of tracking records to query.
- keys: A semicolon-separated list of keys for filtering the tracking records.
- values: A semicolon-separated list of values corresponding to the specified keys.
- projection: The key to be used as a projection, indicating the desired data to retrieve.
Parameters
- trackingType: Identifies the type of tracking
- keys: A semicolon-separated list of keys for filtering.
- values: A semicolon-separated list of values corresponding to the specified keys.
- projection: Specifies the key for projection, indicating the desired data.
Usage
Example:
<xsl:value-of select=" ixf:GetTrkDataByData('SimpleTrackingType', 'Key1;Key2', 'value1;value2', 'TrkID')"></xsl:value-of>
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'.
Note
- Multiple keys and values can be provided, separated by semicolons, for more precise filtering.
- The specified projection key determines the data to be retrieved.
Conclusion
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.