tracking - SetAccessStatus 

Page / - last modified by Outhman Moustaghfir on 2024/03/04 11:34 

SetAccessStatus 
last modified by Outhman Moustaghfir
on 2024/03/04 11:34

Table of Contents
Introduction
Usage
Example

Introduction
The SetAccessStatus function is designed to manage and update the access status of a tracking. It allows you to modify the status of a tracking to one of three options: OPEN, LOCKED, or PERMANENTLYLOCKED. This function is crucial for controlling the accessibility and security of any type of functional tracking.
Usage
It accepts 3 params : 
 1.	trackingIds : a set of trkID separated by ';'
 2.	the tracking type target.
 3.	access status: value between OPEN, LOCKED , PERMANENTLYLOCKED.
<xsl:value-of select="ixf:SetAccessStatus('trkIDs', 'trkType' , 'accessStatus')"/>
Example
<xsl:value-of select="ixf:SetAccessStatus('63206045f8aef457701a28d0;632061abf8aef457701a28d1;632061abf8aef457701a28d', 'Game' , 'OPEN')"/>
In this example, we will illustrate a scenario where one ID is valid, another is invalid, and the last one is permanently locked.

We observe that no errors were thrown; instead, a warning message regarding the unsuccessful IDs was displayed.