<
From version < 18.1 >
edited by Outhman Moustaghfir
on 2024/09/27 13:39
To version < 12.1 >
edited by Outhman Moustaghfir
on 2024/01/30 17:10
>
Change comment: Uploaded new attachment "var.png", version {1}

Summary

Details

Page properties
Content
... ... @@ -11,9 +11,8 @@
11 11  
12 12  === JSON Format ===
13 13  
14 -[[image:var.png]]
14 +[[image:Capture d'écran 2024-01-30 150237.png]]
15 15  
16 -
17 17  The JSON file for SetVar has a simple structure. It consists of key-value pairs, where the keys represent variable names, and the values can be either static values or dynamic expressions.
18 18  
19 19  ==== Example 1: ====
... ... @@ -33,23 +33,13 @@
33 33   }}}
34 34  
35 35  {{code language="json"}}
36 -{ "var1": "value1", "var2": "{Env.GetVar;variableName}" }
35 +{ "var1": "value1", "var2": "${Env.GetVar;variableName}" }
37 37  {{/code}}
38 38  
39 -== Global Values ==
40 40  
41 -SetVar supports dynamic values using XGlobal before the variable name to make this var accessibel in the parent sceanrio .
42 -
43 -== Examples ==
44 -
45 -
46 -{{code language="json"}}
47 -{ "iXGlobal:Key": "Value" }
48 -{{/code}}
49 -
50 50  === Dynamic Values ===
51 51  
52 -SetVar supports globalvalues using iXPath functions (GetVar, Date, GetTracking...). This allows you to reference the values of other variables within the JSON file.
41 +SetVar supports dynamic values using iXPath functions (GetVar, Date, GetTracking...). This allows you to reference the values of other variables within the JSON file.
53 53  
54 54  == Examples ==
55 55  
... ... @@ -67,7 +67,7 @@
67 67  
68 68  
69 69  {{code language="json"}}
70 -{ "username": "john_doe", "email": "{Env.GetVar;Email}", "isAdmin": "false"}
59 +{ "username": "john_doe", "email": "${Env.GetVar;Email}", "isAdmin": "false"}
71 71  {{/code}}
72 72  
73 73  
1727437198067-371.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.omoustaghfir
Size
... ... @@ -1,1 +1,0 @@
1 -34.5 KB
Content
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian