How to link komponent and root global variables #
There are instances when you need to access your root global variables from a komponent. To do this, the two variables needs to be linked. The steps below demonstrate how this is done.
- Create a Text global variable (
rootVar
) in your root directory with some data
![rootVar](https://imagizer.imageshack.com/img922/1893/ad1Gjb.jpg)
- Create another Text global variable (
kVar
) in your komponent and leave it empty
![rootVar](https://imagizer.imageshack.com/img924/2936/rRWkPM.jpg)
- Tap on the check box next to your list
kVar
- Tap on the “globe” icon from the top right
![rootVar](https://imagizer.imageshack.com/img924/8115/dGkCsV.jpg)
- Tap on the “globe” icon that’s appended to your
kVar
variable
![rootVar](https://imagizer.imageshack.com/img922/1152/9d989f.jpg)
- Select
rootVar
from the list
![rootVar](https://imagizer.imageshack.com/img924/5226/WoeLgB.jpg)
- Add a Text element in your komponent with the following formula:
$gv(kVar)$
** expected result: the value of rootVar
will be displayed when kVar
is called