<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: What's the best way to create and read an application variable in Xpert ivy ?</title><link>https://answers.axonivy.com/questions/568/what-s-the-best-way-to-create-and-read-an-application-variable-in-xpert-ivy</link><description>&lt;p&gt;What's the best way to create and read an application variable in Xpert.ivy?&lt;/p&gt;
&lt;p&gt;I would like to create an application variable to store general information and all request can read that application variable.&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/568/what-s-the-best-way-to-create-and-read-an-application-variable-in-xpert-ivy" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 10 Mar 2014 09:05:22 -0400</lastBuildDate><item><title>Answer by Reto Weiss</title><link>https://answers.axonivy.com/questions/568/what-s-the-best-way-to-create-and-read-an-application-variable-in-xpert-ivy/569</link><description>&lt;p&gt;To store configuration information you can use global variables. &lt;/p&gt;
&lt;p&gt;A global variable is created in the Configuration Dialog Editor (Project tree: &lt;em&gt;Definition&lt;/em&gt; &amp;gt; &lt;em&gt;Configuration&lt;/em&gt;). Select &lt;em&gt;Global Variables&lt;/em&gt; in the &lt;em&gt;Configurations&lt;/em&gt; tree and use the context menu &lt;em&gt;Add Configuration&lt;/em&gt; to add a new global variable (e.g. myFileDirectory). In ivyScript you can access the value of the global variable by using:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ivy.var.myFileDirectory
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;On the server you can change the value of a global variable in the Admin UI.&lt;/p&gt;
&lt;p&gt;Global variables also support environments. This means, it is possible to configure different values for a global variable one for each environment.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reto Weiss</dc:creator><pubDate>Mon, 10 Mar 2014 09:05:22 -0400</pubDate><guid>https://answers.axonivy.com/questions/568/what-s-the-best-way-to-create-and-read-an-application-variable-in-xpert-ivy/569</guid></item></channel></rss>