Constants in Mendix

0
Hi Team, I’m working on constansts, here are items that I want to ask from community members: How we will set the constants values when we deploy the code to local environment as well as cloud? Right now, I’m setting default value of constants and it’s working. How we will pass url declared in constant to Call Rest action   Thanks
asked
1 answers
2

Hi Rafaqat

  • Locally, it is using the default value but you can change it in your settings (Where you also set the database connection). On the cloud, it is also using the default values, but you can change it in the details page of your environment. Changes will be applied with the next restart.
  • A constant can be used just like a variable. But they always start with @. You can ise them just like you use string variables.
answered