{"id":4712,"date":"2017-12-20T22:09:09","date_gmt":"2017-12-20T14:09:09","guid":{"rendered":"http:\/\/localhost\/help\/?page_id=4712"},"modified":"2024-10-23T14:21:02","modified_gmt":"2024-10-23T06:21:02","slug":"switch","status":"publish","type":"page","link":"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/switch\/","title":{"rendered":"Switch"},"content":{"rendered":"\n<p class=\"left-bar\">This article applies to versions 4.4 and later of IFS OI Explorer. For more, see <a href=\"#Release_History\">Release History<\/a>.<\/p>\n<h2 class=\"page-subheading\"><span id=\"Overview\">Overview<\/span><\/h2>\n<p class=\"overview\">The Switch\u00a0Layout can change the components that are displayed on a page depending on what the user selects on that page. It's typically used in conjunction with a <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/grid-layout\/\">grid layout<\/a> on <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/killer-dashboards\/\">dashboard-style pages<\/a>, and can be used to create the effect of a tabbed page.\u00a0<\/p>\n<p class=\"intro-text\">For example, you may want the same page to display a chart or a table, or a daily or a monthly report,\u00a0depending on what someone clicks. You can use the Switch layout to achieve that.\u00a0<\/p>\n<div class=\"best-prac\"><i class=\"fa fa-star fa-2x fa-pull-left\"><\/i><span class=\"best-prac-text\">TOP TIP<\/span><\/p>\n<p class=\"intro-text\">To create the effect of a tabbed page, use the option links control at the top of the page.<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<h2 class=\"page-subheading\">Configuring the Switch<\/h2>\n<p class=\"intro-text\">The following diagram shows the configuration options for the Switch layout, and how it works with the component that triggers the layout change:<\/p>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-config3.png\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-14088 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-config3.png\" alt=\"Switch 4.4\" width=\"1305\" height=\"522\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-config3.png 1305w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-config3-768x307.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-config3-150x60.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-config3-1280x512.png 1280w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-config3-24x10.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-config3-36x14.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-config3-48x19.png 48w\" sizes=\"auto, (max-width: 1305px) 100vw, 1305px\" \/><\/a><\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"130\"><strong>Switch Variable<\/strong>:<\/td>\n<td>The variable\u00a0that determines what condition to display in the Switch layout. For example, you could use an <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/option-links\/\">Option Links<\/a> component\u00a0to trigger a <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-primers\/variables\/\">variable<\/a>\u00a0called '<em>selectedOption<\/em>'. Whenever a user selects a different item from the Option Links component, this triggers a change in what is displayed in the layout.<\/td>\n<\/tr>\n<tr>\n<td width=\"130\"><span style=\"color: #000000;\"><b>Conditions<\/b><\/span>:<\/td>\n<td>\n<p>The conditions for which you want to change the Switch display. The conditions must match the event options for the Switch Event. For example, if the Option Links\u00a0contains 3 options (Table, Chart, Text), you should have 3 corresponding\u00a0conditions (Table, Chart, Default). The buttons perform the following functions:<\/p>\n<ul>\n<li><strong>Add<\/strong> - adds a new condition<\/li>\n<li><strong>Remove<\/strong> - removes the selected condition from the Switch (does not remove it from the component that triggers\u00a0the layout change)<\/li>\n<li><strong>Set<\/strong> - changes the \"active\" view of the Switch component in Studio. Click this button when you want to configure what is going to be displayed when that condition is met. \u00a0<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"130\"><span style=\"color: #000000;\"><b>Style<\/b><\/span><\/td>\n<td>Lists the predefined styles for the Switch component.\u00a0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<hr \/>\n<h2 class=\"page-subheading\">Tutorial:\u00a0<span id=\"Step_by_Step_Creating_a_Schematic_Using_Precision_Layout\">Using a Switch to Change the Page Display<\/span><\/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\/\">Building an Explorer Page<\/a>.<\/p>\n<p class=\"intro-text\">The Switch component provides some exciting opportunities for interactive page design.\u00a0In this tutorial, we\u2019ll look how to change the content displayed on a\u00a0page, depending on what option the user selects. You need to do a little planning up front for this: in this case, we want the page to display a table, chart, or text, depending on what the user selects.\u00a0<\/p>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-chart1.png\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-14032 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-chart1.png\" alt=\"Switch with option links and chart\" width=\"965\" height=\"429\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-chart1.png 965w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-chart1-768x341.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-chart1-150x67.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-chart1-24x11.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-chart1-36x16.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-chart1-48x21.png 48w\" sizes=\"auto, (max-width: 965px) 100vw, 965px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p class=\"intro-text\">Configuring this component might seem a little daunting at first, but you'll soon get the hang of it.\u00a0Let\u2019s look at how we\u2019re actually going to do this, step-by-step.<\/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.\u00a0<\/p>\n<h3>Step 1. Prepare a Studio Page<\/h3>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switchgrid.png\" rel=\"lightbox-2\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-14033 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switchgrid.png\" alt=\"Switch grid layout\" width=\"1029\" height=\"493\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switchgrid.png 1029w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switchgrid-768x368.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switchgrid-150x72.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switchgrid-24x11.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switchgrid-36x17.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switchgrid-48x23.png 48w\" sizes=\"auto, (max-width: 1029px) 100vw, 1029px\" \/><\/a><\/p>\n<p class=\"intro-text\">Before you start, open a new tab in Explorer and click the \u201cNew Page\u201d button in the ribbon. Choose the Grid Layout. For this exercise, we want to adjust the rows and columns to make the page look nicer.<\/p>\n<p class=\"note\">Note: You will need to adjust the configuration to suit your data at your site.<\/p>\n<p class=\"intro-text\">Let's set up the page nicely.\u00a0<\/p>\n<ul class=\"intro-text\">\n<li>Remove a column.<\/li>\n<li>Give the first row a height of 50.<\/li>\n<li>Set the Row Spacing to 20.<\/li>\n<\/ul>\n<p class=\"left-bar\">Related: <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/grid-layout\/\">Grid Layout tutorial<\/a><\/p>\n<p class=\"intro-text\">\u00a0<\/p>\n<h3>Step 2. Add the Switch Trigger (Option Links)<\/h3>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-options.png\" rel=\"lightbox-3\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-14040 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-options.png\" alt=\"Switch options\" width=\"1278\" height=\"584\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-options.png 1278w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-options-768x351.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-options-150x69.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-options-24x11.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-options-36x16.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-options-48x22.png 48w\" sizes=\"auto, (max-width: 1278px) 100vw, 1278px\" \/><\/a><\/p>\n<p class=\"intro-text\">The Switch layout is controlled by a variable, which is set by another component on the page. In this case, we are using the Option Links component to set the variable. So let's add this to our page.<\/p>\n<ul class=\"intro-text\">\n<li>Drag and drop the Option Links component (located under Controls) from the toolbox to the grid cell at the top of the page.<\/li>\n<li>Configure the Option Links with the following values:\n<ul class=\"intro-text\">\n<li><strong>Option Values<\/strong>: Table, Chart, Default\n<ul class=\"intro-text\">\n<li>These option values will correspond to the conditions we will set in the Switch Layout.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Option Names<\/strong>: Table, Chart, Text\n<ul class=\"intro-text\">\n<li>These are the names that will appear on the page, for the user to click on. In this case, we want to display the word \"Text\" instead of \"Default\", to be more user-friendly.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Selected Option<\/strong>: selectedOption\n<ul class=\"intro-text\">\n<li>This is the variable that the Switch Layout will use to trigger a condition and change the layout. This variable will pass through the selected Option Value (Table, Chart, or Default).<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p class=\"left-bar\">Related: <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-primers\/variables\/\">Variables<\/a>, <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/option-links\/\">Option Links<\/a>, <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/data-selector\/#Using_Value_Data\">Data Selector<\/a><\/p>\n<p class=\"intro-text\">\u00a0<\/p>\n<h3>Step 3.\u00a0Add the\u00a0Switch Layout<\/h3>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switchdrag44.png\" rel=\"lightbox-4\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-14037 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switchdrag44.png\" alt=\"Switch 4.4\" width=\"1278\" height=\"586\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switchdrag44.png 1278w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switchdrag44-768x352.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switchdrag44-150x69.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switchdrag44-24x11.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switchdrag44-36x17.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switchdrag44-48x22.png 48w\" sizes=\"auto, (max-width: 1278px) 100vw, 1278px\" \/><\/a><\/p>\n<p class=\"intro-text\">Drag and drop the Switch\u00a0component\u00a0onto the large grid cell. The Switch is in the Layout\u00a0<a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/layouts.png\" rel=\"lightbox-5\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1853\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/layouts.png\" alt=\"layouts\" width=\"20\" height=\"16\" \/><\/a>\u00a0group.<\/p>\n<p>&nbsp;<\/p>\n<h3>Step 4. Set the Switch Variable<\/h3>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switchvariable.png\" rel=\"lightbox-6\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-14048 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switchvariable.png\" alt=\"Switch variable\" width=\"1076\" height=\"585\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switchvariable.png 1076w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switchvariable-768x418.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switchvariable-150x82.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switchvariable-24x13.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switchvariable-36x20.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switchvariable-48x26.png 48w\" sizes=\"auto, (max-width: 1076px) 100vw, 1076px\" \/><\/a><\/p>\n<p class=\"intro-text\">The first thing we need to do is choose the variable that will trigger the Switch Layout to change its display.<\/p>\n<p class=\"note\">Note: A variable is required, and you cannot add conditions until the variable is set. This is why you should add your switch trigger before the Switch Layout component.<\/p>\n<p class=\"intro-text\">Choose <strong>selectedOption<\/strong>, which is the variable that corresponds with the Option Links component.<\/p>\n<p>&nbsp;<\/p>\n<h3>Step 5. Add the Conditions<\/h3>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-conditions.png\" rel=\"lightbox-7\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-14053 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-conditions.png\" alt=\"Switch conditions 4.4\" width=\"1078\" height=\"586\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-conditions.png 1078w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-conditions-768x417.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-conditions-150x82.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-conditions-24x13.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-conditions-36x20.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-conditions-48x26.png 48w\" sizes=\"auto, (max-width: 1078px) 100vw, 1078px\" \/><\/a><\/p>\n<p class=\"intro-text\">This step identifies the triggers for changes to the page. There is\u00a0always a Default condition.\u00a0<\/p>\n<p class=\"intro-text\">In this case, we are going to use text as our default state, so we want to add 2 more conditions: one to display the chart and one to display the table.<\/p>\n<ul class=\"intro-text\">\n<li>Click the <strong>Add<\/strong> button. In the empty box, type <em>Chart<\/em>.<\/li>\n<li>Click the <strong>Add<\/strong> button again. In the empty box, type <em>Table<\/em>. Click away from the box.<\/li>\n<\/ul>\n<p class=\"intro-text\">\u00a0<\/p>\n<h3>Step 6. Configure the Default Condition<\/h3>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-text.png\" rel=\"lightbox-8\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-14056 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-text.png\" alt=\"Switch text label 4.4\" width=\"1278\" height=\"585\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-text.png 1278w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-text-768x352.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-text-150x69.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-text-24x11.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-text-36x16.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-text-48x22.png 48w\" sizes=\"auto, (max-width: 1278px) 100vw, 1278px\" \/><\/a><\/p>\n<p class=\"intro-text\">This step is where we specify what is to be displayed if the user has not selected anything from the Option Links.\u00a0Usually, you will want this to be a relevant display, but you can leave it blank to display a blank page. Here, we want to display some text by default.<\/p>\n<ul class=\"intro-text\">\n<li>Notice that the grid containing the Switch is labelled as \"<em>Default<\/em>\" - this indicates the condition that is being configured.<\/li>\n<li>Drag and drop the Text Label component\u00a0onto the canvas <strong>in the same grid that contains the Switch component\u00a0and is labelled \"Default\"<\/strong>.<\/li>\n<li>Configure the Text Label as follows:\n<ul class=\"intro-text\">\n<li>Content: \"<em>Nothing to display.<\/em>\"<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p class=\"left-bar\">Related: <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/text-label\/\">Text Label tutorial<\/a><\/p>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/new-year-152044_640.png\" rel=\"lightbox-9\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-4743\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/new-year-152044_640.png\" alt=\"new-year-152044_640\" width=\"47\" height=\"47\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/new-year-152044_640.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/new-year-152044_640-24x24.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/new-year-152044_640-36x36.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/new-year-152044_640-48x48.png 48w\" sizes=\"auto, (max-width: 47px) 100vw, 47px\" \/><\/a>\u00a0 <strong>Your default\u00a0condition has been configured!<\/strong><\/p>\n<p class=\"intro-text\">\u00a0<\/p>\n<h3>Step 7. Return to the Switch\u00a0<\/h3>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-right-click.png\" rel=\"lightbox-10\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-14057 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-right-click.png\" alt=\"Switch 4.4\" width=\"826\" height=\"465\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-right-click.png 826w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-right-click-768x432.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-right-click-150x84.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-right-click-24x14.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-right-click-36x20.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-right-click-48x27.png 48w\" sizes=\"auto, (max-width: 826px) 100vw, 826px\" \/><\/a><\/p>\n<p class=\"intro-text\">To configure the rest of the conditions, we need to return to the Switch component. To do this we make use of Studio's canvas layers, which allows us to access multiple layers within a grid cell.<\/p>\n<ul class=\"intro-text\">\n<li>Right-click on the cell containing the Switch.<\/li>\n<li>In the shortcut menu, select \"<strong>Switch<\/strong>\".<\/li>\n<\/ul>\n<p class=\"intro-text\">You are returned to the Switch view, with the Default condition selected.<\/p>\n<p>&nbsp;<\/p>\n<h3>Step 8. Set\u00a0the Chart Condition<\/h3>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-chart2.png\" rel=\"lightbox-11\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-14058 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-chart2.png\" alt=\"Switch Chart 4.4\" width=\"967\" height=\"586\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-chart2.png 967w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-chart2-768x465.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-chart2-150x91.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-chart2-24x15.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-chart2-36x22.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-chart2-48x29.png 48w\" sizes=\"auto, (max-width: 967px) 100vw, 967px\" \/><\/a>\u00a0<\/p>\n<p class=\"intro-text\">We need to change over to the chart condition in order to configure it.\u00a0<\/p>\n<ul class=\"intro-text\">\n<li>In the Switch component editor, click \"<strong>Set<\/strong>\" next to the Chart condition.<\/li>\n<\/ul>\n<p class=\"intro-text\">Notice:<\/p>\n<ul class=\"intro-text\">\n<li class=\"intro-text\">The blue outline moves to the Chart condition.<\/li>\n<li class=\"intro-text\">The grid cell on the canvas now displays <strong>'Chart'<\/strong>.<\/li>\n<li class=\"intro-text\">The Option Links also has <em>Chart<\/em> selected.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3>Step 9. Configure the\u00a0Chart<\/h3>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-chart-config.png\" rel=\"lightbox-12\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-14060 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-chart-config.png\" alt=\"Switch Chart 4.4\" width=\"1278\" height=\"580\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-chart-config.png 1278w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-chart-config-768x349.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-chart-config-150x68.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-chart-config-24x11.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-chart-config-36x16.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-chart-config-48x22.png 48w\" sizes=\"auto, (max-width: 1278px) 100vw, 1278px\" \/><\/a><\/p>\n<p class=\"intro-text\">With the Chart condition set, add a chart\u00a0that will display when the user selects \"Chart\" from the option links. Drag and drop a Chart\u00a0onto the cell labelled 'Chart'. Configure a\u00a0bar chart as follows:<\/p>\n<ul class=\"intro-text\">\n<li>Source Data:\u00a0OilDowntimeByReason<\/li>\n<li>For the Series:\n<ul class=\"intro-text\">\n<li>Type: Bar series<\/li>\n<li>Y Column: (DataColumn) SumDowntimeHours<\/li>\n<\/ul>\n<\/li>\n<li>For the X Axis:\n<ul class=\"intro-text\">\n<li>Column: (DataColumn)\u00a0DowntimeReason<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p class=\"intro-text\">You'll see a bar chart appear in the 'Chart' cell.<\/p>\n<p class=\"left-bar\">Related: <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/charts\/\">Charts<\/a>\u00a0tutorial<\/p>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/new-year-152044_640.png\" rel=\"lightbox-9\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-4743\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/new-year-152044_640.png\" alt=\"new-year-152044_640\" width=\"47\" height=\"47\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/new-year-152044_640.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/new-year-152044_640-24x24.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/new-year-152044_640-36x36.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/new-year-152044_640-48x48.png 48w\" sizes=\"auto, (max-width: 47px) 100vw, 47px\" \/><\/a>\u00a0 <strong>Your 2nd\u00a0condition has been configured!<\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>Step 10. Return to the Switch<\/h3>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-layer.png\" rel=\"lightbox-14\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-14061 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-layer.png\" alt=\"Switch 4.4\" width=\"684\" height=\"482\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-layer.png 684w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-layer-150x106.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-layer-24x17.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-layer-36x25.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-layer-48x34.png 48w\" sizes=\"auto, (max-width: 684px) 100vw, 684px\" \/><\/a><\/p>\n<p class=\"intro-text\">To configure the next condition, we need to return to the Switch component.\u00a0<\/p>\n<ul class=\"intro-text\">\n<li>Right-click on the cell containing the Switch.<\/li>\n<li>In the shortcut menu, select \"<strong>Switch<\/strong>\".<\/li>\n<\/ul>\n<p class=\"intro-text\">You are returned to the Switch view, with the Chart\u00a0condition selected.<\/p>\n<p class=\"intro-text\">\u00a0<\/p>\n<h3>Step 11. Set\u00a0the Table\u00a0Condition<\/h3>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-table.png\" rel=\"lightbox-15\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-14059 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-table.png\" alt=\"Switch Table 4.4\" width=\"950\" height=\"586\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-table.png 950w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-table-768x474.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-table-150x93.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-table-24x15.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-table-36x22.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-table-48x30.png 48w\" sizes=\"auto, (max-width: 950px) 100vw, 950px\" \/><\/a><\/p>\n<p class=\"intro-text\">Each time you want to configure\u00a0a condition, you need to return to the Switch component and set the active condition.\u00a0<\/p>\n<p class=\"intro-text\">We need to change over to the Table\u00a0condition in order to configure it.\u00a0<\/p>\n<ul class=\"intro-text\">\n<li>In the Switch component editor, click \"<strong>Set<\/strong>\" next to the Table\u00a0condition.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3>Step 12. Configure the\u00a0Table<\/h3>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-data-table.png\" rel=\"lightbox-16\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-14062 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-data-table.png\" alt=\"Switch data table 4.4\" width=\"1278\" height=\"584\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-data-table.png 1278w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-data-table-768x351.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-data-table-150x69.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-data-table-24x11.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-data-table-36x16.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-data-table-48x22.png 48w\" sizes=\"auto, (max-width: 1278px) 100vw, 1278px\" \/><\/a><\/p>\n<p class=\"intro-text\">Add a data table\u00a0that will display when the user selects \"Table\" from the option links. Drag and drop a Data Table\u00a0onto the cell labelled 'Table'. Configure it\u00a0as follows:<\/p>\n<ul class=\"intro-text\">\n<li>Data:\u00a0OilDowntimeByReason<\/li>\n<li>Under Columns, click the <strong>Autofill<\/strong> button.<\/li>\n<\/ul>\n<p class=\"intro-text\">You'll see a table appear in the 'Table' cell.<\/p>\n<p class=\"left-bar\">Related: <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/data-table\/\">Data Table<\/a>\u00a0tutorial<\/p>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/new-year-152044_640.png\" rel=\"lightbox-9\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-4743\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/new-year-152044_640.png\" alt=\"new-year-152044_640\" width=\"47\" height=\"47\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/new-year-152044_640.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/new-year-152044_640-24x24.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/new-year-152044_640-36x36.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/new-year-152044_640-48x48.png 48w\" sizes=\"auto, (max-width: 47px) 100vw, 47px\" \/><\/a>\u00a0 <strong>Your final\u00a0condition has been configured!<\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>Step 13. Set the Default Value<\/h3>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/page-defaults.png\" rel=\"lightbox-18\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-14063 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/page-defaults.png\" alt=\"page-defaults\" width=\"564\" height=\"704\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/page-defaults.png 564w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/page-defaults-120x150.png 120w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/page-defaults-19x24.png 19w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/page-defaults-29x36.png 29w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/page-defaults-38x48.png 38w\" sizes=\"auto, (max-width: 564px) 100vw, 564px\" \/><\/a><\/p>\n<div class=\"best-prac\"><i class=\"fa fa-trophy fa-2x fa-pull-left\"><\/i><span class=\"best-prac-text\">BEST PRACTICE<\/span><\/p>\n<p class=\"best-prac-desc\">This is an optional step that\u00a0will make your page look more professional. If you don't set the default value for the option links, when your page first opens it will show the default switch layout, but nothing will be selected in the option links, which can look a bit strange. You can even use this opportunity to make a different condition the default one!\u00a0<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<ul class=\"intro-text\">\n<li>Click the <strong>Page Defaults<\/strong> button above the component editor.<\/li>\n<li>Click the <strong>Add<\/strong> button and configure the default as follows:\n<ul class=\"intro-text\">\n<li>selectedOption<\/li>\n<li>Default<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p class=\"intro-text\">Instead of the Default condition, you could specify the Chart or Table condition, to have those layouts displayed when the page is first opened.<\/p>\n<p class=\"intro-text\">\u00a0<\/p>\n<h3>Step 14. All done!<\/h3>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-layout-final.png\" rel=\"lightbox-19\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-14064 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-layout-final.png\" alt=\"Switch chart 4.4\" width=\"693\" height=\"418\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-layout-final.png 693w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-layout-final-150x90.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-layout-final-24x14.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-layout-final-36x22.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/07\/switch-layout-final-48x29.png 48w\" sizes=\"auto, (max-width: 693px) 100vw, 693px\" \/><\/a><\/p>\n<p class=\"intro-text\">Congratulations! You now have a page with a chart, table, or text, that changes depending on what the user selects from the option links.<\/p>\n<ul class=\"intro-text\">\n<li>Click the Finish and Open\u00a0<a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/livemode1.png\" rel=\"lightbox-20\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2978\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/livemode1.png\" alt=\"livemode\" width=\"14\" height=\"16\" \/><\/a>\u00a0button on the Studio toolbar to save your page and see what it will look like in run-time.<\/li>\n<li>Select different values from the option links and observe the changes in the page.<\/li>\n<\/ul>\n<p class=\"intro-text\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1348\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/save.png\" alt=\"save\" width=\"48\" height=\"53\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/save.png 48w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/save-22x24.png 22w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/save-33x36.png 33w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/save-43x48.png 43w\" sizes=\"auto, (max-width: 48px) 100vw, 48px\" \/> Don\u2019t forget to <a title=\"Saving Your Page\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-create-your-first-page\/saving-your-page\/\" data-slimstat-tracking=\"false\" data-slimstat-callback=\"true\" data-slimstat-type=\"2\">save your page<\/a>!<\/p>\n<hr \/>\n<h2 class=\"page-subheading\">Release History<\/h2>\n<ul class=\"intro-text\">\n<li><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/switch\/switch-4-3-2\/\">Switch 4.3.2<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The Switch Layout is a powerful component that can change the components that are displayed on a page depending on what the user selects on that page. It\u2019s typically used in conjunction with a grid layout on dashboard-style pages. This tutorial walks you through a scenario for configuring the Switch component, and applies to versions 4.4 and later of IFS OI 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\/switch\/\">Read more<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":4733,"parent":1407,"menu_order":455,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[11],"tags":[116,299,438],"class_list":["post-4712","page","type-page","status-publish","has-post-thumbnail","hentry","category-tutorial","tag-layouts","tag-switch","tag-tabs","Product-ex"],"_links":{"self":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/4712","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/comments?post=4712"}],"version-history":[{"count":2,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/4712\/revisions"}],"predecessor-version":[{"id":67057,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/4712\/revisions\/67057"}],"up":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/1407"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media\/4733"}],"wp:attachment":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media?parent=4712"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/categories?post=4712"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/tags?post=4712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}