Custom variables
5 min
defining custom variables enables you to create reusable values that can be dynamically controlled, eliminating the need for hardcoding this approach offers flexibility, allowing values to be updated instantly and seamlessly applied throughout the app custom variables are particularly effective for storing environment specific values that change over time, such as urls creating and setting variables custom variables are created and set in the solution settings docid\ bbwmoyzln4eaxg0rek62l page in management overview docid\ bpr3enodaznr56ewkjnav and consist of a variable name and a variable value custom variables open management overview docid\ bpr3enodaznr56ewkjnav , navigate to the solution where the variables will be used select solution settings docid\ bbwmoyzln4eaxg0rek62l in the left navigation pane select the custom tab type a name for the variable in the text field and click the + sign this creates the variable name , which appears at the top of the field next, type the variable value in the text field click save in the top right hand corner now that your variables are set, you can use the variables throughout the solution in jigx builder using variables custom variables are expression based, meaning you can use it wherever expressions are configurable in jigx builder to reference the variable, the following expression is used \=@ctx solution settings custom {{variablename}} use intellisense to select the variablename you set in management > solution settings reloading variables in jigx builder after adding a new custom variable in management, you can use the reload solution settings option in jigx builder to refresh intellisense and make the variable available reload variables in jigx builder considerations do not store api keys, passwords or secrets in custom variables, as they are not encrypted or secure variables are solution specific, and cannot be used across multiple solutions custom variable values are read only in the mobile app best practice is to use custom variables to configure environment variables, relating to production, development, or test urls customer preferences, for example, a base solution that is used for multiple customers, departments, stores simply change the variable value to apply to each customer