{"id":14624,"date":"2016-05-02T14:18:48","date_gmt":"2016-05-02T06:18:48","guid":{"rendered":"http:\/\/localhost\/help\/?page_id=14624"},"modified":"2017-12-14T14:34:18","modified_gmt":"2017-12-14T06:34:18","slug":"hierarchy-4-3-2","status":"publish","type":"page","link":"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/hierarchy\/hierarchy-4-3-2\/","title":{"rendered":"Hierarchy (4.3.2)"},"content":{"rendered":"\n<p class=\"left-bar\">This article applies to versions 4.3.2 and earlier of P2 Explorer.\u00a0For help on the latest version of the Hierarchy, see <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/hierarchy\/\">Hierarchy<\/a>.<\/p>\n<h3 class=\"page-subheading\">Overview<\/h3>\n<p class=\"intro-text\">The hierarchy control allows a user to select an entity from a specific hierarchy. This control is often used in conjunction with the <a title=\"Hierarchy Picker\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/hierarchy-picker\/\">hierarchy picker<\/a>. First, the user selects the hierarchy from the hierarchy picker. The hierarchy control reads this event, and then makes the entities in that hierarchy available to the user, who will pick the entities they are interested in.<\/p>\n<p class=\"intro-text\">The following diagram shows a hierarchy control:<\/p>\n<div style=\"position: relative;\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/hierarchyconfig3.png\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3102 size-large\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/hierarchyconfig3-800x297.png\" alt=\"\" width=\"800\" height=\"297\" \/><\/a><i class=\"fa fa-search-plus\"><\/i><\/div>\n<div style=\"position: relative;\">\u00a0<\/div>\n<table>\n<tbody>\n<tr>\n<td width=\"130\"><strong>Page Size<\/strong>:<\/td>\n<td>\n<p>Sets the number of entities displayed in the hierarchy before paging begins. This is optional, but recommended to improve performance and usability.<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/pagesize10.png\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1519 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/pagesize10.png\" alt=\"pagesize10\" width=\"253\" height=\"403\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/pagesize10.png 253w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/pagesize10-94x150.png 94w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/pagesize10-15x24.png 15w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/pagesize10-23x36.png 23w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/pagesize10-30x48.png 30w\" sizes=\"auto, (max-width: 253px) 100vw, 253px\" \/><\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><strong>Single Selection Mode<\/strong>:<\/td>\n<td>Allows the user to only select a single entity. Multiple selections are not allowed.<\/td>\n<\/tr>\n<tr>\n<td><strong>Selected Entities<\/strong>:<\/td>\n<td>The name of the event that the hierarchy publishes to. This event will contain the entities that are selected, and other controls (such as a chart) can listen to this event.<\/td>\n<\/tr>\n<tr>\n<td><strong>Hierarchy Name<\/strong>:<\/td>\n<td>The name of the hierarchy for which to display entities.\u00a0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3 class=\"page-subheading\"><span id=\"Tutorial\">Tutorial<\/span><\/h3>\n<p class=\"intro-text\">In this tutorial, we\u2019ll look at adding a Hierarchy to a page, along with a Selection List. When the user selects entities from the Hierarchy, the Selection List displays the selected entities.\u00a0<\/p>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/hierarchyexample.png\" rel=\"lightbox-2\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2728\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/hierarchyexample.png\" alt=\"hierarchyexample\" width=\"231\" height=\"538\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/hierarchyexample.png 231w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/hierarchyexample-64x150.png 64w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/hierarchyexample-10x24.png 10w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/hierarchyexample-15x36.png 15w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/hierarchyexample-21x48.png 21w\" sizes=\"auto, (max-width: 231px) 100vw, 231px\" \/><\/a><\/p>\n<p class=\"intro-text\">Let\u2019s go through this process, step-by-step.<\/p>\n<hr \/>\n<h3 class=\"page-subheading\"><span id=\"Step_by_Step_Creating_a_Breadcrumb_That_Shows_the_Hierarchy_of_a_Selected_Entity\">Step by Step: Creating a Hierarchy That Shows the Selected Entities in a Selection List<\/span><\/h3>\n<p class=\"intro-text\">Before you start, open a new tab in Explorer and click the \u201cCreate a New Page in Studio Mode\u201d thumbnail. Choose the <a title=\"Grid Layout\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/grid-layout\/\">grid<\/a>\u00a0layout \u2013 you can adjust the rows and columns if you like but it\u2019s not important for this exercise.<\/p>\n<p class=\"intro-text\">If you have access to the training environment, you can follow the steps exactly as outlined here. Otherwise, you will need to adjust the configuration to suit your data.<\/p>\n<p class=\"intro-text\"><strong>Step 1. Add the Hierarchy to the page<\/strong><\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/hierarchydrag1.png\" rel=\"lightbox-3\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2730 size-large\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/hierarchydrag1-800x468.png\" alt=\"hierarchydrag1\" width=\"800\" height=\"468\" \/><\/a><\/p>\n<p class=\"intro-text\">Drag and drop the <em><strong>Hierarchy<\/strong> <\/em>component\u00a0onto a grid cell.<\/p>\n<p class=\"intro-text\"><strong>Step 2.\u00a0\u00a0Configure the\u00a0Hierarchy<\/strong><\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/hierarchyconfig.png\" rel=\"lightbox-4\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2731 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/hierarchyconfig.png\" alt=\"hierarchyconfig\" width=\"713\" height=\"403\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/hierarchyconfig.png 713w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/hierarchyconfig-150x85.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/hierarchyconfig-24x14.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/hierarchyconfig-36x20.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/hierarchyconfig-48x27.png 48w\" sizes=\"auto, (max-width: 713px) 100vw, 713px\" \/><\/a><\/p>\n<p class=\"intro-text\">In this step, you\u2019ll notice that the <em><strong>Selected Entities<\/strong><\/em> and <em><strong>Hierarchy Name<\/strong><\/em>\u00a0events are already filled in with defaults. You can change this if you like, but you will need to remember your changes and substitute appropriately for the next step.\u00a0Configure the settings as follows:<\/p>\n<ul class=\"intro-text\">\n<li>Page Size: (Number) 10<\/li>\n<li>Single Selection Mode: (unselected)<\/li>\n<li>Selected Entities:\u00a0selectedEntities<\/li>\n<li>Hierarchy Name: (Event)\u00a0selectedHierarchy<\/li>\n<\/ul>\n<p class=\"intro-text\"><em><strong>Selected Entities<\/strong><\/em>\u00a0is always an event, so that other components on the page will dynamically update when the Hierarchy publishes the list of entities\u00a0that the user has selected. This is often used to link components such as charts and tables.\u00a0<\/p>\n<p class=\"intro-text\"><strong>Step 3. \u00a0Add and configure a Selection List\u00a0component<\/strong><\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/hierarchyselectionlistconfig.png\" rel=\"lightbox-5\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2735 size-large\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/hierarchyselectionlistconfig-800x469.png\" alt=\"hierarchyselectionlistconfig\" width=\"800\" height=\"469\" \/><\/a><\/p>\n<p class=\"intro-text\">Drag and drop the <a title=\"Selection List\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/selection-list\/\">Selection List<\/a>\u00a0component\u00a0onto a grid cell, and configure it as follows:<\/p>\n<ul class=\"intro-text\">\n<li>List Items: selectedEntities<\/li>\n<\/ul>\n<p class=\"intro-text\">We want the Selection List to display the entities that are selected from the Hierarchy.<\/p>\n<p class=\"intro-text\"><strong>Step 4. \u00a0Set the event defaults<\/strong>\u00a0<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/hierarchyevents.png\" rel=\"lightbox-6\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2737 size-large\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/hierarchyevents-626x600.png\" alt=\"hierarchyevents\" width=\"626\" height=\"600\" \/><\/a><\/p>\n<p class=\"intro-text\">At the moment, the page shows nothing because the user hasn\u2019t selected anything. Let\u2019s change that and get some default data to display. We do this by creating defaults for the <a title=\"Events\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/events\/\">events <\/a>specified in the components in the previous steps.\u00a0<\/p>\n<ul class=\"intro-text\">\n<li>Click the <em><strong>Event\u00a0Defaults<\/strong><\/em> button on the Studio toolbar.<\/li>\n<li>Add\u00a0an event called <em>\u201cselectedHierarchy\u201d<\/em> with the text <strong>P2 Energy Solutions<\/strong>. This will set the filter on the Hierarchy to only display entities belonging to that hierarchy.<\/li>\n<li>Add an event called <em>\u201cselectedEntities\u201d<\/em>\u00a0with the following list items:\u00a0<strong>BOSSIER 1, BOSSIER 2<\/strong>.<\/li>\n<\/ul>\n<p class=\"intro-text\">You should now see the Hierarchy and Selection List\u00a0populated with the defaults. Note that you can set the\u00a0event\u00a0defaults at any time.\u00a0<\/p>\n<p class=\"intro-text\"><strong>Step 5. All done!<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2728\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/hierarchyexample.png\" alt=\"hierarchyexample\" width=\"231\" height=\"538\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/hierarchyexample.png 231w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/hierarchyexample-64x150.png 64w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/hierarchyexample-10x24.png 10w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/hierarchyexample-15x36.png 15w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/hierarchyexample-21x48.png 21w\" sizes=\"auto, (max-width: 231px) 100vw, 231px\" \/><\/p>\n<p class=\"intro-text\">Congratulations! You now have a fully functioning Hierarchy that allows the user to select a number of entities. When you select entities\u00a0from the Hierarchy, the selected entities are displayed in a Selection List.<\/p>\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\" \/>\u00a0Don\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\/\">save your page<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The hierarchy control allows a user to select an entity from a specific hierarchy. This article describes how to configure the hierarchy control, and applies to versions 4.3.2 and earlier 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\/hierarchy\/hierarchy-4-3-2\/\">Read more<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":4630,"parent":1417,"menu_order":1,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[11],"tags":[108,86],"class_list":["post-14624","page","type-page","status-publish","has-post-thumbnail","hentry","category-tutorial","tag-entities","tag-hierarchy","Product-ex"],"_links":{"self":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/14624","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=14624"}],"version-history":[{"count":0,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/14624\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/1417"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media\/4630"}],"wp:attachment":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media?parent=14624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/categories?post=14624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/tags?post=14624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}