What's the best way to create and read an application variable in Xpert.ivy?

I would like to create an application variable to store general information and all request can read that application variable.

asked 10.03.2014 at 05:11

toantp's gravatar image

toantp
(suspended)
accept rate: 0%

edited 10.03.2014 at 09:08

Reto%20Weiss's gravatar image

Reto Weiss ♦♦
4.9k202857


To store configuration information you can use global variables.

A global variable is created in the Configuration Dialog Editor (Project tree: Definition > Configuration). Select Global Variables in the Configurations tree and use the context menu Add Configuration to add a new global variable (e.g. myFileDirectory). In ivyScript you can access the value of the global variable by using:

ivy.var.myFileDirectory

On the server you can change the value of a global variable in the Admin UI.

Global variables also support environments. This means, it is possible to configure different values for a global variable one for each environment.

link

answered 10.03.2014 at 09:05

Reto%20Weiss's gravatar image

Reto Weiss ♦♦
4.9k202857
accept rate: 74%

edited 10.03.2014 at 09:07

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×1

Asked: 10.03.2014 at 05:11

Seen: 1,569 times

Last updated: 10.03.2014 at 09:08

Related questions