Jigx Variables
has a set of variables that can be used in expressions to manipulate data specific to a , for example, determining the logged-in user, or the organization and solution.
The organization variable is used to get information about the actual organization in , such as your organization's id.
Result | Expression |
id |
![Organization expression Organization expression](https://images.archbee.com/x7vdIDH6-ScTprfmi2XXX/l9Evc2zPxdR6ZYdCJIOcm_img7983iphone13blueportrait.png?format=webp)
This example returns the organization's id . Each organization configured in Organization Settings in and will have a unique id. See the full code sample in GitHub.
The system variable in an expression is used to get information about devices, for example, you can find information about the internet connection of the device, the language preference, the device's timezone and location details. System expressions are configured by [email protected]. followed by the specific variable name.
The supported variables for the system variable are:
Result | Expression |
isOffline | [email protected] = true |
locale | |
timezone | |
geolocation | Accuracy: [email protected] Altitude: [email protected] Altitude Accuracy: [email protected] Location - Heading: [email protected] Location - Latitude: [email protected] Location - Longitude: [email protected] Location - Speed: [email protected] Location - Timestamp: [email protected] Location - Entire array (All details): =$string(@ctx.system.geolocation) |
isLocationSharingEnabled | |
solution | |
user |
![System expression System expression](https://images.archbee.com/x7vdIDH6-ScTprfmi2XXX/dozQmeZtycpfLoEgq34Zb_vexno05ey8qanp2ahvm8wimg1073iphone13blueportrait.png?format=webp)
With this expression, you can disable the action button to prevent it from being pressed if the device is offline.
See the full code sample in GitHub.
This example uses system.timezone to get the information about the device's timezone, it can be the name of the timezone or the offset. Use it further to convert date/time using Date & Time expressions into the format that you require.
See the full code sample in GitHub.
![System timezone expression System timezone expression](https://images.archbee.com/x7vdIDH6-ScTprfmi2XXX/oANyCp8ANnxLlVQO8SP9t_br9tnyrzt6xxavl6azvoeimg1075iphone13blueportrait.png?format=webp)
![system geolocation expression system geolocation expression](https://images.archbee.com/x7vdIDH6-ScTprfmi2XXX/Zw09RzF0UJDUm3XaEwrcM_img7975iphone13blueportrait.png?format=webp)
This example shows how you can use system.geolocation to get the device's location (details).
See the full code sample in GitHub.
See the example using dynamic data in GitHub.
![Document image Document image](https://images.archbee.com/x7vdIDH6-ScTprfmi2XXX/6PYMLSP1mvgXAyOVdRTl3_systemexpress.png?format=webp)
The user is used to get information about the logged-in user, for example, name, and email.
Result | Expression |
Name | |
id |
![User expression User expression](https://images.archbee.com/x7vdIDH6-ScTprfmi2XXX/YjBuEhcG9PqMOYLrSR02f_img7979iphone13blueportrait.png?format=webp)
See the full code sample in GitHub.
The solution variable is used to get information about the specific solution, for example, name, and id.
Result | Expression |
Name | |
id |
![Solution expression Solution expression](https://images.archbee.com/x7vdIDH6-ScTprfmi2XXX/oViCGP9PqleD7r5MC51mk_img7981iphone13blueportrait.png?format=webp)
This example shows how to get the solution's id and name using the solution variable.
See the full code sample in Github.
![Doc contributor](https://s3.amazonaws.com/archbee-animals/rabbit.png)