{"id":7654,"date":"2017-06-12T13:46:03","date_gmt":"2017-06-12T05:46:03","guid":{"rendered":"http:\/\/localhost\/help\/?page_id=7654"},"modified":"2024-05-30T14:42:27","modified_gmt":"2024-05-30T06:42:27","slug":"variables","status":"publish","type":"page","link":"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-primers\/variables\/","title":{"rendered":"Variables"},"content":{"rendered":"\n<h2 class=\"page-subheading\">Overview<\/h2>\n<p class=\"intro-text\">IFS OI Explorer offers an interactive user interface. Users can filter the contents of pages and trends, or change context by selecting different periods or entities to report on.<\/p>\n<p class=\"intro-text\">The way IFS OI Explorer implements this is to use <em>variables<\/em>.<\/p>\n<p class=\"intro-text\">Here are some examples:<\/p>\n<p class=\"dl-term\"><strong>Action<\/strong>: A user selects a different <em>product type<\/em>, using <em>option links<\/em>.<\/p>\n<p class=\"dl-def\"><strong>Outcome<\/strong>: An image showing a well (representing OIL) changes to an image showing gas pipelines (representing GAS).<\/p>\n<p class=\"dl-term\"><strong>Action<\/strong>: A user selects a new <em>time<\/em> from a <em>date picker<\/em> on a trend.<\/p>\n<p class=\"dl-def\"><strong>Outcome<\/strong>: The trend covers a new period.<\/p>\n<p class=\"dl-term\"><strong>Action<\/strong>: A user selects <em>accounting period<\/em> to replace <em>production period<\/em> from a <em>combo box<\/em>.<\/p>\n<p class=\"dl-def\"><strong>Outcome<\/strong>: Data in the grid shows different accounting figures based on the different reporting period.<\/p>\n<p>&nbsp;<\/p>\n<p class=\"intro-text\">In this example, a user selects NGL, then OIL from the Option Links to switch between NGL and OIL in the Sales Volume Chart.<\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<table>\n<tbody>\n<tr>\n<td width=\"400\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/NGL-Sales-a.png\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-7864 size-medium\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/NGL-Sales-a-400x281.png\" alt=\"\" width=\"400\" height=\"281\" \/><\/a><\/td>\n<td width=\"400\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Oil-Sales-a.png\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-7865 size-medium\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Oil-Sales-a-400x278.png\" alt=\"\" width=\"400\" height=\"278\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h2 class=\"page-subheading\">Quick Start<\/h2>\n<p class=\"intro-text\">There are many places you can set up and use an Explorer variable. This basic exercise demonstrates how to add and use a variable, in just three steps. Step 4 demonstrates what happens in display mode.<\/p>\n<p class=\"intro-text\">On an Explorer page, in Studio mode:<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"500\"><strong>1. Set a Default Value for a Variable<\/strong>: <em>In Design Mode:<\/em><\/p>\n<p>Open the <a title=\"Default Value\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/default-value\/\">Default Values<\/a> panel. Add a default called SelectedMth, and give it a value of 5 (Number). Add another default called SelectedYr, and give it a value of 2014 (Number).<\/p>\n<\/td>\n<td width=\"500\"><strong>2. Give Users Access to the Variables<\/strong>: <em>In Design Mode:<\/em><\/p>\n<p>Drop a <a title=\"Month Picker\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/month-picker\/\">Month Picker<\/a> component onto your page. Assign SelectedMth to the <em>Month<\/em> property, and assign SelectedYr to the <em>Year<\/em> property of the component.<\/p>\n<\/td>\n<td width=\"200\">\u00a0<\/td>\n<\/tr>\n<tr>\n<td><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7836 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Add-Defaults.png\" alt=\"\" width=\"329\" height=\"263\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Add-Defaults.png 329w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Add-Defaults-150x120.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Add-Defaults-24x19.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Add-Defaults-36x29.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Add-Defaults-48x38.png 48w\" sizes=\"auto, (max-width: 329px) 100vw, 329px\" \/><\/td>\n<td><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7837 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Month-Picker.png\" alt=\"\" width=\"337\" height=\"241\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Month-Picker.png 337w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Month-Picker-150x107.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Month-Picker-24x17.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Month-Picker-36x26.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Month-Picker-48x34.png 48w\" sizes=\"auto, (max-width: 337px) 100vw, 337px\" \/><\/td>\n<td>&nbsp;<\/td>\n<\/tr>\n<tr>\n<td><strong>3. Use the variable in another Component<\/strong>: <em>In Design Mode:<\/em><\/p>\n<p>Drop a <a title=\"Text Label\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/text-label\/\">Text Label<\/a> onto your page. Add the SelectedMth and SelectedYr variables to the text label, to the text label <em>Content<\/em> (click <strong>Add Variable<\/strong>).<\/p>\n<\/td>\n<td><strong>4. Click the preview button <img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2896 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/03\/preview.png\" alt=\"Preview Button\" width=\"13\" height=\"14\" \/> to see what happens in display mode<\/strong>: <em>In Display or Preview Mode:<\/em><\/p>\n<p>&nbsp;<\/p>\n<p><em>a) Default Value<\/em>:<\/p>\n<p>When the page opens, the Month Picker displays May 2014 (the default values for <em>SelectedMth<\/em> and <em>SelectedYr<\/em>). The variables' default values are also displayed in the Text Label as 2014, 5.<\/p>\n<\/td>\n<td>&nbsp;<\/td>\n<\/tr>\n<tr>\n<td><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7838 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Text-Label.png\" alt=\"\" width=\"332\" height=\"300\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Text-Label.png 332w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Text-Label-150x136.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Text-Label-24x22.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Text-Label-36x33.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Text-Label-48x43.png 48w\" sizes=\"auto, (max-width: 332px) 100vw, 332px\" \/><\/td>\n<td>\n<table>\n<tbody>\n<tr>\n<td>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7858 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Default-Variables-b.png\" alt=\"\" width=\"288\" height=\"34\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Default-Variables-b.png 288w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Default-Variables-b-150x18.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Default-Variables-b-24x3.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Default-Variables-b-36x4.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Default-Variables-b-48x6.png 48w\" sizes=\"auto, (max-width: 288px) 100vw, 288px\" \/><\/p>\n<p><em>b) User Interaction<\/em>:<\/p>\n<p>The user picks another month and year (October 2015) from the Combo Box.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<tr>\n<td><em>c) Using the Variable<\/em>:<\/p>\n<p>The new month and year are displayed in the Text Label: 2015, 10.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7859 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Selected-Variables-a.png\" alt=\"\" width=\"288\" height=\"34\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Selected-Variables-a.png 288w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Selected-Variables-a-150x18.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Selected-Variables-a-24x3.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Selected-Variables-a-36x4.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Selected-Variables-a-48x6.png 48w\" sizes=\"auto, (max-width: 288px) 100vw, 288px\" \/><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p class=\"intro-text\">From this exercise you can see the potential of using variables to set the scene (setting default values), providing interaction (for example, using the variable in the Combo Box) and having an effect on the page (for example, using the variable in the Text Label).<\/p>\n<p class=\"intro-text\">For more detailed tutorials, refer to some of the following related articles: <a title=\"Month Picker\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/month-picker\/\">Month Picker<\/a>, <a title=\"Default Value\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/default-value\/\">Default Value<\/a>, <a title=\"Option Links\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/option-links\/\">Option Links<\/a>. Or you can search for help on any of the Studio components; many of these use Variables.<\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<h2 class=\"page-subheading\">How Does an Explorer Variable Work?<\/h2>\n<p class=\"intro-text\">Variables are named data points that get set in one control (for example, a combo box) and used by another control (for example, a dataset, switch or text label).<\/p>\n<p class=\"intro-text\">For example: A variable named <em>SelectedProduct<\/em> is used in a text label with the content: <em>Production figures for {{selectedProduct:text}}<\/em>.<\/p>\n<p class=\"intro-text\">When GAS is selected, as shown below, the Text Label reads: <em>Production figures for GAS<\/em>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7793 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Variables-Interacting.png\" alt=\"\" width=\"295\" height=\"172\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Variables-Interacting.png 295w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Variables-Interacting-150x87.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Variables-Interacting-24x14.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Variables-Interacting-36x21.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Variables-Interacting-48x28.png 48w\" sizes=\"auto, (max-width: 295px) 100vw, 295px\" \/><\/p>\n<p class=\"intro-text\">Below is a breakdown of how the variables in this example get set, updated, and used.<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"520\">\n<table>\n<tbody>\n<tr>\n<td width=\"340\"><strong>1<\/strong>: In <em>preview<\/em> or <em>display\u00a0<\/em>mode, the user selects GAS from a Combo Box.<\/td>\n<td width=\"340\"><strong>2<\/strong>: As shown in <em>design<\/em> mode, this <em>Selected Option<\/em> sets the variable: <em>selectedProduct<\/em><\/td>\n<td width=\"340\"><strong>3<\/strong>: As shown in <em>design<\/em> mode, the Text Label uses variable <em>selectedProduct<\/em> as part of its content.<\/td>\n<td width=\"340\"><strong>4<\/strong>: In <em>preview<\/em> or <em>display\u00a0<\/em>mode: the Text Label displays the <em>selectedProduct<\/em> (GAS).<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Breakdown-of-variables-at-work-c.png\" rel=\"lightbox-2\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7816\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Breakdown-of-variables-at-work-c.png\" alt=\"\" width=\"901\" height=\"286\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Breakdown-of-variables-at-work-c.png 1115w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Breakdown-of-variables-at-work-c-768x244.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Breakdown-of-variables-at-work-c-150x48.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Breakdown-of-variables-at-work-c-24x8.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Breakdown-of-variables-at-work-c-36x11.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Breakdown-of-variables-at-work-c-48x15.png 48w\" sizes=\"auto, (max-width: 901px) 100vw, 901px\" \/><\/a><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<hr \/>\n<h2 class=\"page-subheading\">Using Variables in IFS OI Explorer<\/h2>\n<p class=\"intro-text\">The following sections offer some insight into how you should use <em>variables<\/em> in Explorer.<\/p>\n<h3>Variables and Data Types<\/h3>\n<p class=\"intro-text\">Because variables work with data, they need a data type. Ensure that your variable's <a title=\"Data Type\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/glossary\/data-type\/\">data type<\/a> is consistent, wherever you use it. If your variable uses <em>Text<\/em> in one component, other components will expect <em>Text<\/em> for this variable as well.<\/p>\n<p class=\"intro-text\">When you set a default value for a variable, you select a data type from a drop-down list:<\/p>\n<div id=\"attachment_8005\" style=\"width: 345px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-8005\" class=\"wp-image-8005 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/data-type-in-default-values.png\" alt=\"\" width=\"335\" height=\"137\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/data-type-in-default-values.png 335w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/data-type-in-default-values-150x61.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/data-type-in-default-values-24x10.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/data-type-in-default-values-36x15.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/data-type-in-default-values-48x20.png 48w\" sizes=\"auto, (max-width: 335px) 100vw, 335px\" \/><p id=\"caption-attachment-8005\" class=\"wp-caption-text\">Data types for a Default Value<\/p><\/div>\n<p class=\"intro-text\">Sometimes the component property gives you a clue of what data type your variable should use, by displaying that data type in the drop-down list:<\/p>\n<div id=\"attachment_8000\" style=\"width: 336px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-8000\" class=\"wp-image-8000 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/filter-column1.png\" alt=\"\" width=\"326\" height=\"79\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/filter-column1.png 326w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/filter-column1-150x36.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/filter-column1-24x6.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/filter-column1-36x9.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/filter-column1-48x12.png 48w\" sizes=\"auto, (max-width: 326px) 100vw, 326px\" \/><p id=\"caption-attachment-8000\" class=\"wp-caption-text\">This property can either be Text or a Variable (Text)<\/p><\/div>\n<p class=\"intro-text\">Sometimes you need to know the component to know which type to use: for example, the Month Picker uses an integer variable for both <em>Month<\/em> and <em>Year<\/em>.<\/p>\n<h3>Setting the Variable vs Using the Variable<\/h3>\n<p class=\"intro-text\">Some controls set a variable value, others use a variable, and some can do both.<\/p>\n<p class=\"intro-text\">Component properties usually indicate how a variable will be used, by the following symbols:<\/p>\n<ul class=\"intro-text\">\n<li>Set the variable, where you see this symbol: <img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7910 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/set-variable.png\" alt=\"\" width=\"19\" height=\"24\" \/><\/li>\n<li>Use the variable, where you see this symbol: <img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7913 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Use-Variable-a.png\" alt=\"\" width=\"18\" height=\"24\" \/><\/li>\n<li>Set or use the variable, where you see this symbol: <img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7909 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Set-and-Use-Variable.png\" alt=\"\" width=\"19\" height=\"25\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Set-and-Use-Variable.png 19w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Set-and-Use-Variable-18x24.png 18w\" sizes=\"auto, (max-width: 19px) 100vw, 19px\" \/><\/li>\n<\/ul>\n<p class=\"intro-text\">Sometimes, components have an <em>Add Variable<\/em> button (the Text Label component is one of these).<\/p>\n<p class=\"intro-text\"><strong>Some examples of components that set a variable value:<\/strong><\/p>\n<ul class=\"intro-text\">\n<li><a title=\"Month Picker\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/month-picker\/\">Month Picker<\/a> (<em>Month<\/em> and <em>Year<\/em>)<\/li>\n<li><a title=\"Hyperlink\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/hyperlink\/\">Hyperlink<\/a> (<em>Variable Mapping<\/em>)<\/li>\n<\/ul>\n<p class=\"intro-text\"><strong>Some examples of components that use a variable value:<\/strong><\/p>\n<ul class=\"intro-text\">\n<li>Relational <a title=\"Adding a Dataset\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/add-data\/add-a-dataset\/\">Dataset<\/a> (as parameters to the dataset's query)<\/li>\n<li><a title=\"Text Label\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/text-label\/\">Text Label<\/a> (as part of <em>Content<\/em>)<\/li>\n<li><a title=\"Hyperlink\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/hyperlink\/\">Hyperlink<\/a> (as part of <em>Content<\/em>)<\/li>\n<li><a title=\"Switch\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/switch\/\">Switch<\/a> (<em>Switch Variable<\/em>)<\/li>\n<\/ul>\n<p class=\"intro-text\"><strong>Some examples of components can use and set a variable value:<\/strong><\/p>\n<ul class=\"intro-text\">\n<li><a title=\"Entity Selector\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/entity-selector\/\">Entity Selector<\/a> (<em>Selected Entities<\/em>)<\/li>\n<li><a title=\"Combo Box\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/combo-box\/\">Combo Box<\/a> (<em>Selected Option<\/em>)<\/li>\n<li><a title=\"Hierarchy Picker\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/hierarchy-picker\/\">Hierarchy Picker<\/a> (<em>Selected hierarchy<\/em>)<\/li>\n<\/ul>\n<p class=\"intro-text\">This is not a comprehensive list; however, as you start using the Explorer components you will become more familiar with the way in which variables get set and then used.<\/p>\n<h3>Assigning Default Values to Variables<\/h3>\n<p class=\"intro-text\">You can assign a default value to any variable on an Explorer page. Trends have pre-defined default values. Default values affect how combo boxes, option links, date selections etc. appear when a page or trend is first opened.<\/p>\n<p class=\"intro-text\">Default values set the context for a page. A user should have access to relevant information, preferably without having to immediately change the default selections.<\/p>\n<p class=\"left-bar\">Read more: Learn how to set default values in the <a title=\"Default Values\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/default-value\/\">Default Values<\/a> article.<\/p>\n<h3>Variables used in Hyperlinks<\/h3>\n<p class=\"intro-text\">A <a title=\"Hyperlink\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/hyperlink\/\">Hyperlink<\/a> can pass variable values to the page, trend or URL that is opening through the use of <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/link-action-and-variable-mapping\/\"><em>Variable Mapping<\/em><\/a>. This overrides default values that exist on the opened page, trend or URL, and provides continuity to the end-user navigating through Explorer.<\/p>\n<p class=\"intro-text\">Other components that can link to another page, trend or URL, also with <em>variable mapping<\/em>:<\/p>\n<ul class=\"intro-text\">\n<li>Hotspot<\/li>\n<li>Status Tile<\/li>\n<li>Charts using Discrete Data<\/li>\n<\/ul>\n<p class=\"left-bar\">Read more: <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/link-action-and-variable-mapping\/\">Link Action and Variable Mapping<\/a><\/p>\n<h3>Using a Variable versus using a Fixed Value<\/h3>\n<p class=\"intro-text\">If you want the user to change behaviour on a page or trend, you should assign a variable to the relevant control.<\/p>\n<p class=\"intro-text\">Sometimes, you might prefer to give less control (for example, fixed versus variable text in the Content of a Text Label); this is when you either type in a fixed value or: assign a default variable, and then don\u2018t give the user a way of changing that value.<\/p>\n<p class=\"intro-text\">Some of the Explorer components allow you to type in a fixed value, or choose a variable. For these components, you first need to specify what you are using, from a drop-down list.<\/p>\n<div id=\"attachment_8000-2\" style=\"width: 336px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-8000-2\" class=\"wp-image-8000 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/filter-column1.png\" alt=\"\" width=\"326\" height=\"79\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/filter-column1.png 326w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/filter-column1-150x36.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/filter-column1-24x6.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/filter-column1-36x9.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/filter-column1-48x12.png 48w\" sizes=\"auto, (max-width: 326px) 100vw, 326px\" \/><p id=\"caption-attachment-8000-2\" class=\"wp-caption-text\">Selecting the type for the Filter Column property in a Chart component<\/p><\/div>\n<hr \/>\n<h2 class=\"page-subheading\">Variables used in Trends<\/h2>\n<p class=\"intro-text\">Trends come with standard combo boxes and date pickers. Users change the trace by changing the <em>Time Range<\/em>, <em>Sample Method<\/em>, and various other selections.<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Trend-Variables-b.png\" rel=\"lightbox-3\"><img loading=\"lazy\" decoding=\"async\" class=\"border-image alignnone wp-image-7934\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Trend-Variables-b.png\" alt=\"\" width=\"749\" height=\"263\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Trend-Variables-b.png 894w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Trend-Variables-b-768x270.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Trend-Variables-b-150x53.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Trend-Variables-b-24x8.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Trend-Variables-b-36x13.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/11\/Trend-Variables-b-48x17.png 48w\" sizes=\"auto, (max-width: 749px) 100vw, 749px\" \/><\/a><\/p>\n<p class=\"intro-text\">You can read about the <em>Trend Selectors<\/em> in the <a title=\"Creating a Trend\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/trends\/creating-a-trend\/#Overview\">Overview<\/a> section of the <em>Creating a Trend<\/em> article.<\/p>\n<p class=\"intro-text\">\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Variables are Explorer's way of providing an interactive user interface.<br \/>\nFind out how to link variables between the various components.<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-primers\/variables\/\">Read more<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":8,"featured_media":8150,"parent":7651,"menu_order":12,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[4],"tags":[437],"class_list":["post-7654","page","type-page","status-publish","has-post-thumbnail","hentry","category-explainer","tag-variables","Product-ex"],"_links":{"self":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/7654","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/comments?post=7654"}],"version-history":[{"count":2,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/7654\/revisions"}],"predecessor-version":[{"id":66932,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/7654\/revisions\/66932"}],"up":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/7651"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media\/8150"}],"wp:attachment":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media?parent=7654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/categories?post=7654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/tags?post=7654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}