{"id":11923,"date":"2016-03-21T10:38:24","date_gmt":"2016-03-21T02:38:24","guid":{"rendered":"http:\/\/localhost\/help\/?page_id=11923"},"modified":"2018-02-21T16:28:06","modified_gmt":"2018-02-21T08:28:06","slug":"option-links-4-4","status":"publish","type":"page","link":"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/option-links\/option-links-4-4\/","title":{"rendered":"Option Links (4.4)"},"content":{"rendered":"\n<p class=\"left-bar\">This article applies to versions 4.4 and later of P2 Explorer. For more, see <a href=\"#Release_History\">Release History<\/a>. For the latest help, see <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/option-links\/\">Option Links<\/a>.<\/p>\n<h2 class=\"page-subheading\">Overview<\/h2>\n<p class=\"overview\">The Option Links are used for selecting a single value, such as an accounting period.<\/p>\n<p class=\"intro-text\">Option Links provide interactivity on your pages. You can pass the selected value to other components on the page, using a variable set in the Option Link's <em>Selected Option<\/em> property.<\/p>\n<p class=\"intro-text\">The Option Links component is similar to the <a title=\"Combo Box\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/combo-box\/\">Combo Box<\/a>. Option Links displays options as a row of buttons, while Combo Box displays options as a list.<\/p>\n<p class=\"intro-text\">The following diagram shows a grid layout with an Options Link component displaying a year's quarters:<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Option-Links-1.png\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-11931\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Option-Links-1.png\" alt=\"\" width=\"720\" height=\"255\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Option-Links-1.png 760w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Option-Links-1-150x53.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Option-Links-1-24x8.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Option-Links-1-36x13.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Option-Links-1-48x17.png 48w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<div style=\"position: relative;\">\u00a0<\/div>\n<table>\n<tbody>\n<tr>\n<td width=\"350\">\n<table>\n<tbody>\n<tr>\n<td width=\"100\"><strong>Option Values<\/strong>:<\/td>\n<td width=\"250\">These are the options that set the <a title=\"Variables\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-primers\/variables\/\">variable<\/a> defined in <strong>Selected Option<\/strong>.<\/td>\n<\/tr>\n<tr>\n<td><strong>Option Names<\/strong>:<\/td>\n<td>If specified, then this is the text displayed on the option links buttons. Each value in <em>Option Names<\/em> is linked to the corresponding (by list position) value in <em>Option Values<\/em>. If <em>Option Names<\/em> are unspecified, then <em>Option Values<\/em> are displayed.<\/td>\n<\/tr>\n<tr>\n<td><strong>Selected Option<\/strong>:<\/td>\n<td>The variable that uses the selected <em>Option Value<\/em>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<td width=\"280\">\n<table>\n<tbody>\n<tr>\n<td width=\"280\"><strong>1: <\/strong>Here you can see <em>Option Names<\/em> displayed in the Option Links.<\/td>\n<\/tr>\n<tr>\n<td><strong>2: <\/strong><em>Quarter 2<\/em> is the selected button.<\/td>\n<\/tr>\n<tr>\n<td><strong>3: <\/strong><em>Q2<\/em> corresponds to <em>Quarter 2<\/em>, each being in the second position on the <strong>Option Values<\/strong> and <strong>Option Names<\/strong> list, respectively.<\/p>\n<p>Thus the <strong>Option Value<\/strong> of <em>Q2<\/em> is assigned to the <strong>Selected Option<\/strong>, <em>selectedQuarter<\/em>.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p class=\"left-bar-p2blue\">Related: <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/using-the-page-controls\/selecting-items\/#Option_Links\">Using Option Links<\/a> in display mode, Adding a new <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-admin\/explorer-styles\/styling-controls\/\">Option Links style<\/a><\/p>\n<hr \/>\n<h2 class=\"page-subheading\">Tutorial 1:\u00a0Adding Option Links with Default Value<\/h2>\n<p class=\"note\">If you're unfamiliar with the process of building pages, read the article\u00a0<a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-create-your-first-page\/building-an-explorer-page\/\" data-slimstat-clicked=\"false\" data-slimstat-type=\"2\" data-slimstat-tracking=\"false\" data-slimstat-callback=\"false\" data-slimstat-async=\"false\">Building an Explorer Page<\/a>.<\/p>\n<p class=\"intro-text\">In this tutorial, we'll add a simple Option Links component, and give it a default value.<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/New-Option-Links.png\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-11944 size-full alignnone\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/New-Option-Links.png\" alt=\"\" width=\"293\" height=\"78\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/New-Option-Links.png 293w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/New-Option-Links-150x40.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/New-Option-Links-24x6.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/New-Option-Links-36x10.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/New-Option-Links-48x13.png 48w\" sizes=\"auto, (max-width: 293px) 100vw, 293px\" \/><\/a><\/p>\n<p class=\"left-bar\"><strong>Note: <\/strong>Before you start the tutorial, <a title=\"Preparing an Explorer page for Tutorials\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/preparing-an-explorer-studio-page-for-a-tutorial\/\">prepare a page in Studio.<\/a><\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/02\/Explorer-Page.png\" rel=\"lightbox-2\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-9318\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/02\/Explorer-Page.png\" alt=\"\" width=\"700\" height=\"458\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/02\/Explorer-Page.png 1054w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/02\/Explorer-Page-768x503.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/02\/Explorer-Page-150x98.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/02\/Explorer-Page-24x16.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/02\/Explorer-Page-36x24.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/02\/Explorer-Page-48x31.png 48w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/p>\n<p class=\"intro-text\"><strong>Step 1. Add Option Links to the Page.<\/strong><\/p>\n<p class=\"intro-text\">Drag and drop an Option Links component onto a grid cell.\u00a0The Option Links is in the Control <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/controls_sm.png\" rel=\"lightbox-3\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1840\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/controls_sm.png\" alt=\"Controls\" width=\"18\" height=\"16\" \/><\/a>\u00a0group.<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Add-new-option-links.png\" rel=\"lightbox-4\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-11946\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Add-new-option-links.png\" alt=\"\" width=\"900\" height=\"480\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Add-new-option-links.png 1676w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Add-new-option-links-768x409.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Add-new-option-links-150x80.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Add-new-option-links-1280x682.png 1280w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Add-new-option-links-24x13.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Add-new-option-links-36x19.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Add-new-option-links-48x26.png 48w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/a><\/p>\n<p class=\"intro-text\"><strong>Step 2. Configure the Option Links<\/strong><\/p>\n<p class=\"intro-text\">In this example we will use values for the <strong>Option Values<\/strong> and <strong>Option Names<\/strong>, by selecting the <em>Values<\/em> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-9572 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/02\/Value-Icon.png\" alt=\"\" width=\"20\" height=\"20\" \/> data category.<\/p>\n<p class=\"intro-text\">Click the <strong>Option Links<\/strong> component to configure it:<\/p>\n<table>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td width=\"700\">\n<table>\n<tbody>\n<tr>\n<td width=\"2\">\u00a0<\/td>\n<td width=\"280\"><strong>1. Add Option Values<\/strong>:<\/td>\n<td width=\"420\">Follow the instructions in <a title=\"Using Value Data\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/data-selector\/#Using_Value_Data\">Using Value Data<\/a> to add the following list of values:<\/p>\n<p><strong>Q1, Q2, Q3<\/strong> and <strong>Q4<\/strong>.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>&nbsp;<\/td>\n<td>&nbsp;<\/td>\n<\/tr>\n<tr>\n<td>&nbsp;<\/td>\n<td><strong>2. Add Option Names<\/strong>:<\/td>\n<td>Follow the instructions in <a title=\"Using Value Data\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/data-selector\/#Using_Value_Data\">Using Value Data<\/a> to add the following list of values:<\/p>\n<p><strong>Quarter 1, Quarter 2, Quarter 3<\/strong> and <strong>Quarter 4<\/strong>.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>&nbsp;<\/td>\n<td>&nbsp;<\/td>\n<\/tr>\n<tr>\n<td>&nbsp;<\/td>\n<td><strong>3. Add Selected Option<\/strong>:<\/td>\n<td>In the <strong>Selected Option<\/strong> drop-down list, type <em>selectedQuarter<\/em>.<\/td>\n<\/tr>\n<tr>\n<td>&nbsp;<\/td>\n<td>&nbsp;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<td width=\"400\">\n<table>\n<tbody>\n<tr>\n<td width=\"400\">\u00a0<\/td>\n<td>&nbsp;<\/td>\n<td>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Configure-Option-Links.png\" rel=\"lightbox-5\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-11950 size-full alignnone\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Configure-Option-Links.png\" alt=\"\" width=\"396\" height=\"255\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Configure-Option-Links.png 396w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Configure-Option-Links-150x97.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Configure-Option-Links-24x15.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Configure-Option-Links-36x23.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Configure-Option-Links-48x31.png 48w\" sizes=\"auto, (max-width: 396px) 100vw, 396px\" \/><\/a><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p class=\"intro-text\">Next, open the <strong>Default Values<\/strong> panel:<\/p>\n<table>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td width=\"700\">\n<table>\n<tbody>\n<tr>\n<td width=\"2\">\u00a0<\/td>\n<td width=\"280\"><strong>4. Add a Default Value<\/strong>:<\/td>\n<td width=\"420\">In <strong>Default Values<\/strong>, add a default pair: <em>selectedQuarter<\/em> (Variable Name) of type <em>Text<\/em>, and <em>Q2<\/em> (Default Value).<\/p>\n<p>See how to add <a title=\"Default Values\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/default-value\/\">Default Values<\/a>.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<td width=\"400\">\n<table>\n<tbody>\n<tr>\n<td width=\"400\">\u00a0<\/td>\n<td>&nbsp;<\/td>\n<td>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Add-Default-Values-2.png\" rel=\"lightbox-6\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-11967 size-large\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Add-Default-Values-2-369x600.png\" alt=\"\" width=\"369\" height=\"600\" \/><\/a><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p class=\"intro-text\">In preview mode, the Option Links shows the four <em>Option Names<\/em>, with <strong>Quarter 2<\/strong> selected.<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/New-Option-Links.png\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-11944 size-full alignnone\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/New-Option-Links.png\" alt=\"\" width=\"293\" height=\"78\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/New-Option-Links.png 293w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/New-Option-Links-150x40.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/New-Option-Links-24x6.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/New-Option-Links-36x10.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/New-Option-Links-48x13.png 48w\" sizes=\"auto, (max-width: 293px) 100vw, 293px\" \/><\/a><\/p>\n<hr \/>\n<h2 class=\"page-subheading\">Advanced Tutorials<\/h2>\n<p class=\"intro-text\">These tutorials demonstrate how to get your option links to interact with other controls on an Explorer page.<\/p>\n<p class=\"intro-text\">We will be using the basic Option Links created in <a title=\"Tutorial 1\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/option-links\/#Tutorial_1\"> Tutorial 1<\/a>.<\/p>\n<h3>Tutorial 2: Option Links Controlling Text Label Content<\/h3>\n<p class=\"intro-text\">Option Links provide a way for the user to interact with other controls.<\/p>\n<p class=\"intro-text\">To demonstrate this, we'll add Option Links that change the content of a Text Label.<\/p>\n<div id=\"attachment_11977\" style=\"width: 267px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Text-Label-and-Option-Links.png\" rel=\"lightbox-8\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-11977\" class=\"wp-image-11977 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Text-Label-and-Option-Links.png\" alt=\"\" width=\"257\" height=\"131\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Text-Label-and-Option-Links.png 257w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Text-Label-and-Option-Links-150x76.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Text-Label-and-Option-Links-24x12.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Text-Label-and-Option-Links-36x18.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Text-Label-and-Option-Links-48x24.png 48w\" sizes=\"auto, (max-width: 257px) 100vw, 257px\" \/><\/a><p id=\"caption-attachment-11977\" class=\"wp-caption-text\">Text Label with Variable selectedQuarter<\/p><\/div>\n<p class=\"left-bar\">Before you start, open the page you created in Tutorial 1:<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Tut1Option-LInks.png\" rel=\"lightbox-9\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-11973\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Tut1Option-LInks.png\" alt=\"\" width=\"600\" height=\"209\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Tut1Option-LInks.png 936w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Tut1Option-LInks-768x267.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Tut1Option-LInks-150x52.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Tut1Option-LInks-24x8.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Tut1Option-LInks-36x13.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Tut1Option-LInks-48x17.png 48w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p class=\"left-bar\">See how to add and configure a text label: <a title=\"Text Label\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/text-label\/\">Text Label<\/a>.<\/p>\n<p class=\"intro-text\"><strong>Step 1. Add a Text Label to the Page:<\/strong><\/p>\n<p class=\"intro-text\">Drag and drop a Text Label component onto a grid cell.<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Add-a-Text-Label.png\" rel=\"lightbox-10\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-11978\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Add-a-Text-Label.png\" alt=\"\" width=\"500\" height=\"141\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Add-a-Text-Label.png 924w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Add-a-Text-Label-768x217.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Add-a-Text-Label-150x42.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Add-a-Text-Label-24x7.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Add-a-Text-Label-36x10.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Add-a-Text-Label-48x14.png 48w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p class=\"intro-text\"><strong>Step 2. Add Content: <\/strong><\/p>\n<p class=\"intro-text\">In the <strong>Content<\/strong>, type: \"The selected Quarter is:\" then click <strong>Add Data<\/strong> and add <em>selectedQuarter<\/em>.<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Adding-Data-To-Text-Label.png\" rel=\"lightbox-11\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-11975\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Adding-Data-To-Text-Label.png\" alt=\"\" width=\"250\" height=\"272\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Adding-Data-To-Text-Label.png 368w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Adding-Data-To-Text-Label-138x150.png 138w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Adding-Data-To-Text-Label-22x24.png 22w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Adding-Data-To-Text-Label-33x36.png 33w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Adding-Data-To-Text-Label-44x48.png 44w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p class=\"intro-text\">This is how your Text Label looks:<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Tutorial2TextLabel.png\" rel=\"lightbox-12\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-11972 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Tutorial2TextLabel.png\" alt=\"\" width=\"932\" height=\"322\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Tutorial2TextLabel.png 932w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Tutorial2TextLabel-768x265.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Tutorial2TextLabel-150x52.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Tutorial2TextLabel-24x8.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Tutorial2TextLabel-36x12.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Tutorial2TextLabel-48x17.png 48w\" sizes=\"auto, (max-width: 932px) 100vw, 932px\" \/><\/a><\/p>\n<p class=\"left-bar\">Watch the video below to see how changing the Option Links selections changes the Text Labels' content (the variable portion of the text label: <em>selectedQuarter<\/em>), in preview mode.<\/p>\n\r\n\t<!-- Begin Video.js -->\r\n\t<video id=\"example_video_id_33023514\" class=\"video-js vjs-default-skin\" width=\"374\" height=\"162\" controls preload=\"none\" data-setup='[]'>\r\n\t\t<source src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/videos\/OptionLinksVideo.mp4\" type='video\/mp4' \/>\r\n\t\t\r\n\t\t\r\n\t<\/video>\r\n\t<!-- End Video.js -->\r\n\n<p class=\"left-bar\">Related: See how the Combo Box (similar to Option Links) uses the <strong>Selected Option<\/strong> variable to control a chart's dataset parameters in the <a title=\"Charts\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/charts\/#Tutorial_2_Dataset_Query_Parameters_using_Variables\">Charts<\/a> article.<\/p>\n<p>&nbsp;<\/p>\n<h3>Tutorial 3: Option Links Using Dataset Values<\/h3>\n<p class=\"intro-text\">In this tutorial, we'll add another Option Links component, this time using a dataset query for the <strong>Option Values<\/strong>. Alternatively, you can edit the Option Links created in Tutorial 1.<\/p>\n<p class=\"left-bar\"><strong>Note<\/strong>: This configuration uses the <em>Sample Data <\/em>table\u00a0and datasets that can be optionally made available\u00a0during initial installation and setup. If you don't have access to this data, you will need to adjust the configuration to suit your data at your site.<\/p>\n<div id=\"attachment_11996\" style=\"width: 212px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Option-Links-Tut-3.png\" rel=\"lightbox-13\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-11996\" class=\"wp-image-11996 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Option-Links-Tut-3.png\" alt=\"\" width=\"202\" height=\"67\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Option-Links-Tut-3.png 202w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Option-Links-Tut-3-150x50.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Option-Links-Tut-3-24x8.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Option-Links-Tut-3-36x12.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Option-Links-Tut-3-48x16.png 48w\" sizes=\"auto, (max-width: 202px) 100vw, 202px\" \/><\/a><p id=\"caption-attachment-11996\" class=\"wp-caption-text\">New option links<\/p><\/div>\n<p class=\"left-bar\">Before you start, open the page you created in Tutorial 1:<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Tut1Option-LInks.png\" rel=\"lightbox-9\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-11973\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Tut1Option-LInks.png\" alt=\"\" width=\"600\" height=\"209\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Tut1Option-LInks.png 936w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Tut1Option-LInks-768x267.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Tut1Option-LInks-150x52.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Tut1Option-LInks-24x8.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Tut1Option-LInks-36x13.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Tut1Option-LInks-48x17.png 48w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p class=\"intro-text\"><strong>Step 1. Add Option Links to the Page.<\/strong><\/p>\n<p class=\"intro-text\">Drag and drop an Option Links component onto a grid cell.<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Drop-another-option-links.png\" rel=\"lightbox-15\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-11992 size-medium alignnone\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Drop-another-option-links-400x220.png\" alt=\"\" width=\"400\" height=\"220\" \/><\/a><\/p>\n<p class=\"intro-text\"><strong>Step 2. Configure the Option Links<\/strong><\/p>\n<p class=\"intro-text\">In this example we will use a dataset for the <strong>Option Values<\/strong>, by selecting the <em>Dataset<\/em> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-9576 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/02\/Dataset-Icon.png\" alt=\"\" width=\"20\" height=\"20\" \/> data category.<\/p>\n<p class=\"intro-text\">This time, we will leave out the <strong>Option Names<\/strong> to demonstrate how the <strong>Option Values<\/strong> display in the Option Links when <strong>Option Names<\/strong> are undefined.<\/p>\n<p class=\"intro-text\">Click the <strong>Option Links<\/strong> component to configure it:<\/p>\n<table>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td width=\"700\">\n<table>\n<tbody>\n<tr>\n<td width=\"2\">\u00a0<\/td>\n<td width=\"280\"><strong>1. Add Option Values<\/strong>:<\/td>\n<td width=\"420\">Follow the instructions in <a title=\"Using Dataset Data\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/data-selector\/#Using_Dataset_Data\">Using Dataset Data<\/a> to a list using a dataset <em>Value Column<\/em>. Use the following, when setting up the data:<\/p>\n<p><strong>Dataset Query<\/strong>: AccountingProdAmtsDisplayMth<\/p>\n<p><strong>Value Column<\/strong>: rpt_year<\/p>\n<p><strong>Dataset Parameters: displayMth<\/strong>: Jan<\/p>\n<p><strong>Note: <\/strong>If you do not have access to this data, substitute with your own dataset query.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>&nbsp;<\/td>\n<td>&nbsp;<\/td>\n<\/tr>\n<tr>\n<td>&nbsp;<\/td>\n<td><strong>2. Add Selected Option<\/strong>:<\/td>\n<td>In the <strong>Selected Option<\/strong> drop-down list, type <em>selectedYear<\/em>.<\/td>\n<\/tr>\n<tr>\n<td>&nbsp;<\/td>\n<td>&nbsp;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<td width=\"400\">\n<table>\n<tbody>\n<tr>\n<td width=\"400\">\u00a0<\/td>\n<td>&nbsp;<\/td>\n<td>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Config-Option-Links-Tut-3.png\" rel=\"lightbox-16\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-11993 size-full alignnone\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Config-Option-Links-Tut-3.png\" alt=\"\" width=\"386\" height=\"267\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Config-Option-Links-Tut-3.png 386w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Config-Option-Links-Tut-3-150x104.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Config-Option-Links-Tut-3-24x17.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Config-Option-Links-Tut-3-36x25.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Config-Option-Links-Tut-3-48x33.png 48w\" sizes=\"auto, (max-width: 386px) 100vw, 386px\" \/><\/a><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p class=\"intro-text\">In preview mode, this is what the Option Links data looks like.<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/dataset-preview-1.png\" rel=\"lightbox-17\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-12004 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/dataset-preview-1.png\" alt=\"\" width=\"716\" height=\"201\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/dataset-preview-1.png 716w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/dataset-preview-1-150x42.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/dataset-preview-1-24x7.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/dataset-preview-1-36x10.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/dataset-preview-1-48x13.png 48w\" sizes=\"auto, (max-width: 716px) 100vw, 716px\" \/><\/a><\/p>\n<p class=\"intro-text\">In preview mode, the Option Links shows the <em>rpt_year<\/em> columns from the query.<\/p>\n<p class=\"left-bar\">Note how none of the options is selected (underlined). This is because we have not set up a default value for the variable, <em>selectedYear<\/em><\/p>\n<div id=\"attachment_11996-2\" style=\"width: 212px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Option-Links-Tut-3.png\" rel=\"lightbox-13\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-11996-2\" class=\"wp-image-11996 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Option-Links-Tut-3.png\" alt=\"\" width=\"202\" height=\"67\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Option-Links-Tut-3.png 202w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Option-Links-Tut-3-150x50.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Option-Links-Tut-3-24x8.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Option-Links-Tut-3-36x12.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/03\/Option-Links-Tut-3-48x16.png 48w\" sizes=\"auto, (max-width: 202px) 100vw, 202px\" \/><\/a><p id=\"caption-attachment-11996-2\" class=\"wp-caption-text\">The rpt_year column values used as option values<\/p><\/div>\n<hr \/>\n<h2 class=\"page-subheading\">Release History<\/h2>\n<ul class=\"intro-text\">\n<li><a title=\"Option Links\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/option-links\/option-links-4-3-2\/\">Option Links 4.3.2<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Option Links is similar to a Combo Box, but instead of displaying the options in a drop-down list, it displays them as a line of buttons. This article describes how to configure option links in versions 4.4 and later of P2 Explorer.<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/option-links\/option-links-4-4\/\">Read more<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":8,"featured_media":4507,"parent":37039,"menu_order":257,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[11],"tags":[136,444],"class_list":["post-11923","page","type-page","status-publish","has-post-thumbnail","hentry","category-tutorial","tag-option-links","tag-selection-lists","Product-ex"],"_links":{"self":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/11923","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=11923"}],"version-history":[{"count":0,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/11923\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/37039"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media\/4507"}],"wp:attachment":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media?parent=11923"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/categories?post=11923"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/tags?post=11923"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}