Wiki source code of SetAccessStatus
Last modified by Outhman Moustaghfir on 2024/03/04 11:34
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | = Introduction = | ||
2 | |||
3 | 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. | ||
4 | |||
5 | |||
6 | = Usage = | ||
7 | |||
8 | It accepts 3 params : | ||
9 | |||
10 | 1. trackingIds : a set of trkID separated by ';' | ||
11 | 1. the tracking type target. | ||
12 | 1. access status: value between OPEN, LOCKED , PERMANENTLYLOCKED. | ||
13 | |||
14 | {{code language="XML"}} | ||
15 | <xsl:value-of select="ixf:SetAccessStatus('trkIDs', 'trkType' , 'accessStatus')"/> | ||
16 | {{/code}} | ||
17 | |||
18 | = Example = | ||
19 | |||
20 | {{code language="XML"}} | ||
21 | <xsl:value-of select="ixf:SetAccessStatus('63206045f8aef457701a28d0;632061abf8aef457701a28d1;632061abf8aef457701a28d', 'Game' , 'OPEN')"/> | ||
22 | {{/code}} | ||
23 | |||
24 | In this example, we will illustrate a scenario where one ID is valid, another is invalid, and the last one is permanently locked. | ||
25 | |||
26 | |||
27 | [[image:2024-02-28_00h54_18.png]] | ||
28 | |||
29 | |||
30 | We observe that no errors were thrown; instead, a warning message regarding the unsuccessful IDs was displayed. |