GetTrkByKeyStatus
Last modified by Outhman Moustaghfir on 2024/02/26 17:12
Overview
The GetTrkByKeyStatus function is utilized to retrieve the TrkID of trackings based on specified key, value, and status criteria. This function enables the retrieval of tracking information tailored to specific conditions.
GetTrkByKeyStatus(trackingType, key, value, status1, status2, ..., statusN)
- trackingType: The type of tracking .(Reaquired)
- key: The key associated with the tracking.(Reaquired)
- value: The value of the specified key.(Reaquired)
- status1, status2, ..., statusN: Additional optional status parameters that filter the tracking.
Parameters
- trackingType: (Type: string) Identifies the type of tracking record.
- key: (Type: any) Represents the key associated with the tracking record.
- value: (Type: any) Specifies the value corresponding to the specified key.
- status1, status2, ..., statusN: (Type: string, Optional) Additional status parameters that narrow down the search based on the tracking record's status.
Usage
Example:
<xsl:value-of select=" ixf:GetTrkByKeyStatus('SimpleTrackingType', 'Key', 'value', 'Available', 'Locked')"></xsl:value-of>
This example retrieves the TrkID of tracking records of type 'SimpleTrackingType' with 'Key' as the key, 'value' with 'KeyThis example retrieves the TrkID of tracking records of type 'SimpleTrackingType as the associated value, and statuses 'Available' and 'Locked'.
Note
- After the third argument (value), subsequent arguments are treated as optional status parameters.
- The function returns the TrkID associated with the matching tracking records.
Conclusion
GetTrkByKeyStatus offers a versatile mechanism for fetching TrkID based on key, value, and optional status parameters, providing flexibility in tracking record retrieval.