{"id":33522,"date":"2017-11-30T12:20:36","date_gmt":"2017-11-30T04:20:36","guid":{"rendered":"http:\/\/localhost\/help\/?page_id=33522"},"modified":"2024-11-22T14:06:52","modified_gmt":"2024-11-22T06:06:52","slug":"hierarchy-query","status":"publish","type":"page","link":"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/triggers\/hierarchy-query\/","title":{"rendered":"Hierarchy Query"},"content":{"rendered":"\n<p class=\"left-bar\">This article applies to versions 4.5.4 and later of IFS OI Explorer. For more, see <a href=\"#Release_History\">Release History<\/a>.<\/p>\n<h2 class=\"page-subheading\">What the Hierarchy Query Does<\/h2>\n<p class=\"overview\">A hierarchy is an organised structure of entities, which models an organisation's assets. The Hierarchy Query <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/triggers\/\">trigger<\/a> is designed to generate a list of child entities from a hierarchy, for a selected entity. The list of child entities is stored in a variable, which can be used in the same way as any other entity variable, including passing it to a page or trend.<\/p>\n<p class=\"intro-text\">The list of child entities is limited by:<\/p>\n<ul class=\"intro-text\">\n<li>Searching a defined number of levels deep in the hierarchy (e.g. return only the direct children of an entity by limiting the search to 1 level).<\/li>\n<li>Finding all descendants of a particular type (e.g. find all children of type \u2018Well\u2019).<\/li>\n<li>A combination of the above.<\/li>\n<\/ul>\n<p class=\"intro-text\">A common way of setting up a Hierarchy Query trigger is to specify a hierarchy and starting entity, along with a list of templates and the number of levels down the hierarchy to traverse. This configuration will search for all child entities with one of the specified templates, and the returned list of entities is subsequently used in other components on the page.<\/p>\n<p class=\"intro-text\">The Hierarchy Query also exposes the primary template name for the starting entity. This can also be used to drive the data displayed on a page and is usually reserved for more powerful drill-down analyses.<\/p>\n<p class=\"intro-text\">Here are some examples of how a selected entity's children are returned by a hierarchy query. The child entities are assigned to a variable, and can then be used elsewhere on the page, or sent to another page or to a trend using a hyperlink. The configuration of the hierarchy query determines how many levels of child entities are assigned to the variable, as well as whether to filter on one or more defined templates.<\/p>\n<table>\n<tbody>\n<tr>\n<td><em>Child entities of selected entity going down one level:<\/em><\/td>\n<td><em>Child entities of selected entity going down two levels:<\/em><\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/hq-level-1.png\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-33584\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/hq-level-1.png\" alt=\"\" width=\"504\" height=\"224\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/hq-level-1.png 504w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/hq-level-1-150x67.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/hq-level-1-24x11.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/hq-level-1-36x16.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/hq-level-1-48x21.png 48w\" sizes=\"auto, (max-width: 504px) 100vw, 504px\" \/><\/a><\/td>\n<td><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/hq-level-2.png\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-33585\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/hq-level-2.png\" alt=\"\" width=\"503\" height=\"309\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/hq-level-2.png 503w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/hq-level-2-150x92.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/hq-level-2-24x15.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/hq-level-2-36x22.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/hq-level-2-48x29.png 48w\" sizes=\"auto, (max-width: 503px) 100vw, 503px\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p class=\"intro-text\">Using a hierarchy query, you could display the children of a selected entity, along with some of their attributes, in a chart or a table layout. The example below shows the <em>oil production\u00a0<\/em>and <em>water production<\/em> (attribute values) for all <em>oil producing wells<\/em> (child entities) of a particular <em>region<\/em> (selected entity).<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/08\/Usage-of-Hierarchy-Query.png\" rel=\"lightbox-2\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-29211 size-full alignnone\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/08\/Usage-of-Hierarchy-Query.png\" alt=\"\" width=\"957\" height=\"323\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/08\/Usage-of-Hierarchy-Query.png 957w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/08\/Usage-of-Hierarchy-Query-768x259.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/08\/Usage-of-Hierarchy-Query-150x51.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/08\/Usage-of-Hierarchy-Query-24x8.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/08\/Usage-of-Hierarchy-Query-36x12.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/08\/Usage-of-Hierarchy-Query-48x16.png 48w\" sizes=\"auto, (max-width: 957px) 100vw, 957px\" \/><\/a><\/p>\n<p class=\"intro-text\">The example below shows the child entities of the selected entity, appearing on a page in a chart. The query has been configured to only include child entities whose <strong>primary template<\/strong> is an <em>Oil Producing Well<\/em>. TWell 1 is not included in the chart because it does not have Oil Producing Well as a primary template - you can see this in the hierarchy because the icon reflects the entity's primary template.<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/08\/Oil-Producing-Wells-screenshot.png\" rel=\"lightbox-3\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-29611 size-full alignnone\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/08\/Oil-Producing-Wells-screenshot.png\" alt=\"\" width=\"875\" height=\"392\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/08\/Oil-Producing-Wells-screenshot.png 875w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/08\/Oil-Producing-Wells-screenshot-768x344.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/08\/Oil-Producing-Wells-screenshot-150x67.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/08\/Oil-Producing-Wells-screenshot-24x11.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/08\/Oil-Producing-Wells-screenshot-36x16.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/08\/Oil-Producing-Wells-screenshot-48x22.png 48w\" sizes=\"auto, (max-width: 875px) 100vw, 875px\" \/><\/a><\/p>\n<p class=\"intro-text\">The trigger on a page is also activated when a user opens the page from the Table of Contents.\u00a0 When a user clicks an entity in the Hierarchy Navigator, the Table of Contents for that entity opens in the ribbon. If the Table of Contents has a page containing a trigger, then the clicked entity will be passed to that page as the Selected Entity.\u00a0In the example below, the user selects an entity, <em>TField 1<\/em>, in the hierarchy navigator, and then clicks the link in the entity's Table of Contents.\u00a0This opens a page which has a chart for the child entities of the selected entity, <em>TField 1<\/em>.<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-ex-2.png\" rel=\"lightbox-4\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-33955 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-ex-2.png\" alt=\"\" width=\"992\" height=\"454\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-ex-2.png 992w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-ex-2-768x351.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-ex-2-150x69.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-ex-2-24x11.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-ex-2-36x16.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-ex-2-48x22.png 48w\" sizes=\"auto, (max-width: 992px) 100vw, 992px\" \/><\/a><\/p>\n<p class=\"note\">\u00a0<\/p>\n<hr \/>\n<h2 class=\"page-subheading\">Configuration Overview<\/h2>\n<p class=\"intro-text\">The following image shows how to use the configuration options of a hierarchy query:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/07\/triggers452.png\" \/><\/p>\n<p class=\"intro-text\">The main configuration options are:<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/trigger-config.png\" rel=\"lightbox-5\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-33558\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/trigger-config.png\" alt=\"\" width=\"351\" height=\"399\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/trigger-config.png 351w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/trigger-config-132x150.png 132w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/trigger-config-21x24.png 21w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/trigger-config-32x36.png 32w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/trigger-config-42x48.png 42w\" sizes=\"auto, (max-width: 351px) 100vw, 351px\" \/><\/a><\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Trigger Title<\/strong><\/td>\n<td>The name used to identify the hierarchy query.<\/td>\n<\/tr>\n<tr>\n<td><strong>Hierarchy Name<\/strong><\/td>\n<td>Select a hierarchy to query from. Either select a variable, or select a hierarchy from the drop-down list of hierarchies that exist in IFS OI Server.<\/td>\n<\/tr>\n<tr>\n<td><strong>Entity<\/strong><\/td>\n<td>Assign a fixed entity name, or more commonly a variable entity that the user will update from another page control. This is the entity whose children the hierarchy query returns.<\/td>\n<\/tr>\n<tr>\n<td><strong>Levels<\/strong><\/td>\n<td>Specify how many levels to fetch from, below the selected entity (1 for one level down, 2 for two levels, and so on). The default is one level (1).<\/td>\n<\/tr>\n<tr>\n<td><strong>Template Filters<\/strong><\/td>\n<td>Optionally add one or more template filters, to restrict what type of entity to fetch. This is covered in the <a href=\"#Configuring_the_Levels_and_Template_Filters_in_the_Hierarchy_Query\">tutorial<\/a> in more detail, under <em>Adding Template Filters<\/em>.<\/td>\n<\/tr>\n<tr>\n<td><strong>Filter By Primary Only<\/strong><\/td>\n<td>You can further restrict to child entities where their primary template is one of the listed template filters.<\/td>\n<\/tr>\n<tr>\n<td><strong>Child Entities<\/strong><\/td>\n<td>The child entities returned by the query are assigned to an entity list variable (the default variable is called <em>childEntities<\/em>).<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p class=\"intro-text\"><strong>More Settings<\/strong><\/p>\n<p class=\"intro-text\">Click <em>More Settings<\/em> to show additional configuration options, and <em>Less Settings<\/em> to hide the extra options.<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/hierarchy-query-config-more.png\" rel=\"lightbox-6\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-33559\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/hierarchy-query-config-more.png\" alt=\"\" width=\"350\" height=\"474\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/hierarchy-query-config-more.png 350w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/hierarchy-query-config-more-111x150.png 111w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/hierarchy-query-config-more-18x24.png 18w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/hierarchy-query-config-more-27x36.png 27w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/hierarchy-query-config-more-35x48.png 35w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><\/a><\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"145px;\"><strong> Current Template<\/strong><\/td>\n<td>Use this property to assign the name of the selected entity's current primary template to a variable (called <em>currentTemplate<\/em> by default).<\/td>\n<\/tr>\n<tr>\n<td><strong>Page Number<\/strong><\/td>\n<td>The number of the page that is being displayed. You can use the Page Number, Page Size, and Total Record Count in conjunction with a <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/paging-control\/\">Paging Control<\/a>, to allow paging of the child entities. You should create this variable as a default value, however you may leave the value blank. A blank value will display the first table page when the Explorer page is loaded.<\/td>\n<\/tr>\n<tr>\n<td><strong>Page Size<\/strong><\/td>\n<td>The\u00a0number of rows of data to display on each page of the table. You should also create a default value for this variable, and assign it a value. E.g. A page size of 5 means that 5 rows of data will be displayed on each page of the table.<\/td>\n<\/tr>\n<tr>\n<td><strong>Total Record Count<\/strong><\/td>\n<td>The total number of records in the set of data, rounded up. This is used by the paging control to determine the size of data.\u00a0You should create this variable as a default value, however you may leave the value blank as this will be determined by the size of the set of data. Setting a value here will restrict the number of total records shown in the table.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p class=\"left-bar\">Related: <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-getting-started\/tag-search-and-hierarchy-navigation\/\">Hierarchy Navigator<\/a>, <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/hierarchy\/\">Hierarchy page component<\/a>,\u00a0<a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/configuring-your-system\/setting-up-hierarchies\/\">Setting up a hierarchy in Server Management<\/a><\/p>\n<hr \/>\n<h2 class=\"page-subheading\">Tutorials<\/h2>\n<p class=\"intro-text\">In this series of tutorials, we'll add and configure a hierarchy query, along with a hierarchy component to control it, a selection list to display its child entities, and a text label to describe the child entities.<\/p>\n<p class=\"intro-text\">Later we'll change the hierarchy query by changing the levels and adding template filters, as well as filtering by primary templates.\u00a0Finally, we'll work with the paging properties of the hierarchy query.<\/p>\n<p class=\"intro-text\">At the end of the tutorials, your page should look like this:<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-overview-1.png\" rel=\"lightbox-7\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-33970\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-overview-1.png\" alt=\"\" width=\"932\" height=\"319\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-overview-1.png 932w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-overview-1-768x263.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-overview-1-150x51.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-overview-1-24x8.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-overview-1-36x12.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-overview-1-48x16.png 48w\" sizes=\"auto, (max-width: 932px) 100vw, 932px\" \/><\/a><\/p>\n<p class=\"left-bar\"><strong>Note<\/strong>: This configuration uses the <em>Sample Data table<\/em> 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<h3>Tutorial 1: Simple Hierarchy Query<\/h3>\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\"><strong>Step 1. Prepare a Studio Page<\/strong><\/p>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/07\/ribbon-new-page.png\" rel=\"lightbox-8\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30441\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/07\/ribbon-new-page.png\" alt=\"\" width=\"596\" height=\"110\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/07\/ribbon-new-page.png 596w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/07\/ribbon-new-page-150x28.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/07\/ribbon-new-page-24x4.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/07\/ribbon-new-page-36x7.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/07\/ribbon-new-page-48x9.png 48w\" sizes=\"auto, (max-width: 596px) 100vw, 596px\" \/><\/a><\/p>\n<p class=\"intro-text\">Before you start, click the <strong>New Page<\/strong>\u00a0button on the Home tab of the ribbon. Choose the <strong>Grid\u00a0<\/strong>layout.<\/p>\n<ul class=\"intro-text\">\n<li>Add another row<\/li>\n<li>Configure the 2nd and 3rd rows to have a height of 50<\/li>\n<li>Assign a Column Spacing and Row Spacing of 10.<\/li>\n<\/ul>\n<p class=\"left-bar\">Related:\u00a0<a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/grid-layout\/\">Grid Layout tutorial<\/a><\/p>\n<p>&nbsp;<\/p>\n<p class=\"intro-text\"><strong>Step 2. Update Default Values<\/strong><\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/07\/Default-Value-for-Selected-Entity.png\" rel=\"lightbox-9\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-28962 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/07\/Default-Value-for-Selected-Entity-e1512442264481.png\" alt=\"\" width=\"361\" height=\"408\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/07\/Default-Value-for-Selected-Entity-e1512442264481.png 361w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/07\/Default-Value-for-Selected-Entity-e1512442264481-133x150.png 133w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/07\/Default-Value-for-Selected-Entity-e1512442264481-21x24.png 21w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/07\/Default-Value-for-Selected-Entity-e1512442264481-32x36.png 32w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/07\/Default-Value-for-Selected-Entity-e1512442264481-42x48.png 42w\" sizes=\"auto, (max-width: 361px) 100vw, 361px\" \/><\/a><\/p>\n<p class=\"intro-text\">1. Open the Default Values panel.<\/p>\n<p class=\"intro-text\">2. In the <strong>selectedEntity\u00a0<\/strong>box, type <em>New South Wales.<\/em><\/p>\n<p class=\"intro-text\">This is an entity from the <strong>P2 Corporate<\/strong> hierarchy which we will be using for this tutorial, and <em>New South Wales<\/em> will be selected by default when the page loads.<\/p>\n<p class=\"left-bar\">Related:\u00a0<a title=\"Default Values\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/default-value\/\">Default Values<\/a><\/p>\n<p>&nbsp;<\/p>\n<p class=\"intro-text\"><strong>Step 3. Add a Hierarchy Query Trigger<\/strong><\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-1.png\" rel=\"lightbox-10\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-33655\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-1.png\" alt=\"\" width=\"1185\" height=\"339\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-1.png 1185w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-1-768x220.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-1-150x43.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-1-24x7.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-1-36x10.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-1-48x14.png 48w\" sizes=\"auto, (max-width: 1185px) 100vw, 1185px\" \/><\/a><\/p>\n<p class=\"intro-text\">In this step, we'll add a hierarchy query that gets child entities from the <em>P2 Corporate <\/em>hierarchy, for the selected entity.<\/p>\n<p class=\"intro-text\">1. Click the <strong>Triggers<\/strong> <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/trigger-icon.png\" rel=\"lightbox-11\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-33455\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/trigger-icon.png\" alt=\"\" width=\"13\" height=\"24\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/trigger-icon.png 16w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/trigger-icon-13x24.png 13w\" sizes=\"auto, (max-width: 13px) 100vw, 13px\" \/><\/a> button in the <em>Configuration<\/em> group on the Studio ribbon tab.<\/p>\n<p class=\"intro-text\">The Triggers panel opens so that you can add, edit or view the page's hierarchy queries.<\/p>\n<p class=\"intro-text\">2. Click the\u00a0<strong>Add<\/strong>\u00a0button next to <em>Hierarchy Query<\/em>.<\/p>\n<p>&nbsp;<\/p>\n<p class=\"intro-text\"><strong>Step 4. Configure the Hierarchy Query<\/strong><\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-4a.png\" rel=\"lightbox-12\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-33657\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-4a.png\" alt=\"\" width=\"347\" height=\"145\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-4a.png 347w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-4a-150x63.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-4a-24x10.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-4a-36x15.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-4a-48x20.png 48w\" sizes=\"auto, (max-width: 347px) 100vw, 347px\" \/><\/a><\/p>\n<ul class=\"intro-text\">\n<li>Click <strong>Hierarchy Query<\/strong> to expand the trigger.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-4b.png\" rel=\"lightbox-13\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-33658 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-4b.png\" alt=\"\" width=\"337\" height=\"399\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-4b.png 337w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-4b-127x150.png 127w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-4b-20x24.png 20w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-4b-30x36.png 30w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut-4b-41x48.png 41w\" sizes=\"auto, (max-width: 337px) 100vw, 337px\" \/><\/a><\/p>\n<p class=\"intro-text\">We are interested in two settings: the <em>Trigger Title<\/em> and the <em>Hierarchy Name<\/em>.\u00a0<\/p>\n<table>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\" width=\"130px\"><strong>Trigger Title<\/strong><\/td>\n<td>Corporate Hierarchy Trigger<\/td>\n<td><em>Allows us to easily identify the trigger if we add multiple triggers to a page.<\/em><\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>Hierarchy Name<\/strong><\/td>\n<td>P2 Corporate<\/td>\n<td><em>Specifies the hierarchy that we are interested in. Choose this from the drop-down list. You could also set a variable to allow the user to select the hierarchy.<\/em><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p class=\"intro-text\">For the rest of the settings, we will make use of the default values:<\/p>\n<ul class=\"intro-text\">\n<li><strong>Entity<\/strong>: Use the <em>selectedEntity<\/em> variable here. This is the variable that identifies the entity that the user selects when clicking on a page component. When the page opens, New South Wales will be shown initially, because we specified that in the Default Values panel.<\/li>\n<li><strong>Levels<\/strong>: The default level of 1 means that the returned child entities will be the immediate children of the selected entity.<\/li>\n<li><strong>Child Entities<\/strong>: This variable stores the child entities generated by the hierarchy query trigger, and is to be used in page components.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p class=\"intro-text\"><strong>Step 5. Add and Configure a Hierarchy<\/strong><\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-5a.png\" rel=\"lightbox-14\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-33874 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-5a.png\" alt=\"\" width=\"1138\" height=\"374\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-5a.png 1138w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-5a-768x252.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-5a-150x49.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-5a-24x8.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-5a-36x12.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-5a-48x16.png 48w\" sizes=\"auto, (max-width: 1138px) 100vw, 1138px\" \/><\/a><\/p>\n<p class=\"intro-text\">In this step we'll add a hierarchy so that the user has a way of selecting the entity (<em>selectedEntity<\/em>). Drag and drop a Hierarchy onto the page, and configure it as follows:<\/p>\n<p class=\"intro-text\"><strong>Hierarchy Name<\/strong>: Select <em>P2 Corporate<\/em> from the drop-down list.<\/p>\n<p class=\"note\">Notice how the default value for <strong>Selected Entity<\/strong> is <em>selectedEntity<\/em>. This is used for updating the <em>selectedEntity<\/em> variable.<\/p>\n<p class=\"left-bar\">Related: <a title=\"Hierarchy\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/hierarchy\/\">Hierarchy<\/a><\/p>\n<p>&nbsp;<\/p>\n<p class=\"intro-text\"><strong>Step 6. Add and Configure a Selection List<\/strong><\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-6.png\" rel=\"lightbox-15\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-33875\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-6.png\" alt=\"\" width=\"1139\" height=\"373\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-6.png 1139w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-6-768x252.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-6-150x49.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-6-24x8.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-6-36x12.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-6-48x16.png 48w\" sizes=\"auto, (max-width: 1139px) 100vw, 1139px\" \/><\/a><\/p>\n<p class=\"intro-text\">Drag and drop a Selection list onto the page. The selection list is for displaying the selected entity's children (<em>childEntities<\/em>).<\/p>\n<p class=\"intro-text\">In the <strong>Option Values<\/strong> <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/data-selector\/\">data selector<\/a>, click the variable\u00a0<a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/04\/variableicon.png\" rel=\"lightbox-16\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-14462\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/04\/variableicon.png\" alt=\"Variable 4.4\" width=\"14\" height=\"21\" \/><\/a> icon and type\u00a0<em>childEntities<\/em>\u00a0as the value.\u00a0The <em>childEntities<\/em> variable contains the child entities from the hierarchy query.<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-6a.png\" rel=\"lightbox-17\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-33876\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-6a.png\" alt=\"\" width=\"340\" height=\"217\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-6a.png 340w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-6a-150x96.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-6a-24x15.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-6a-36x23.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-6a-48x31.png 48w\" sizes=\"auto, (max-width: 340px) 100vw, 340px\" \/><\/a><\/p>\n<p class=\"left-bar\">Related: <a title=\"Selection List\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/selection-list\/\">Selection List<\/a><\/p>\n<p>&nbsp;<\/p>\n<p class=\"intro-text\"><strong>Step 7. Preview the Page<\/strong><\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-7.png\" rel=\"lightbox-18\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-33877\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-7.png\" alt=\"\" width=\"589\" height=\"193\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-7.png 589w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-7-150x49.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-7-24x8.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-7-36x12.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut1-7-48x16.png 48w\" sizes=\"auto, (max-width: 589px) 100vw, 589px\" \/><\/a><\/p>\n<p class=\"intro-text\">You now have a functioning hierarchy query, whose <strong> Entity<\/strong> is updated by the user's selection on the <strong>Hierarchy<\/strong> component, and whose <strong>Child Entities<\/strong> are displayed in the <strong>Selection List<\/strong>.<\/p>\n<p class=\"intro-text\"><strong>To try out the new functionality:<\/strong><\/p>\n<ul class=\"intro-text\">\n<li>Click the Preview <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\" width=\"13\" height=\"14\" \/> button on the Studio toolbar to see what your page will look like in display mode.<\/li>\n<li>Notice how the child entities of the default <em>selectedEntity<\/em>, <strong>New South Wales<\/strong> appear in the selection list.<\/li>\n<li>Select a different entity from the hierarchy, to see how its child entities are displayed in the selection list.<\/li>\n<li>Notice that child entities match the child entities in the hierarchy component.<\/li>\n<\/ul>\n<p class=\"left-bar\">Watch the video to see how the child entities change (as shown in the selection list) when different entities are selected from the hierarchy.<\/p>\n\r\n\t<!-- Begin Video.js -->\r\n\t<video id=\"example_video_id_1300173108\" class=\"video-js vjs-default-skin\" width=\"764\" height=\"662\" controls preload=\"auto\" data-setup='[]'>\r\n\t\t<source src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/videos\/HierarchyQueryVideo.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<h3>Tutorial 2: Levels and Templates<\/h3>\n<p class=\"intro-text\">Now we're going to change the hierarchy query to go down more than one level, and add template filters. Both of these changes will modify the query results (the child entities that are generated by the hierarchy query).<\/p>\n<p class=\"intro-text\"><strong>Step 1. Change the Levels<\/strong><\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-1.png\" rel=\"lightbox-19\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-33880\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-1.png\" alt=\"\" width=\"332\" height=\"300\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-1.png 332w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-1-150x136.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-1-24x22.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-1-36x33.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-1-48x43.png 48w\" sizes=\"auto, (max-width: 332px) 100vw, 332px\" \/><\/a><\/p>\n<p class=\"intro-text\">Click the Preview <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\" width=\"13\" height=\"14\" \/> button again, to go back into Design mode.<\/p>\n<p class=\"intro-text\">Open the Hierarchy Query in the Triggers <img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-33455\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/trigger-icon.png\" alt=\"\" width=\"13\" height=\"24\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/trigger-icon.png 16w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/trigger-icon-13x24.png 13w\" sizes=\"auto, (max-width: 13px) 100vw, 13px\" \/>\u00a0panel, and update the <strong>Levels<\/strong> value to 3.<\/p>\n<p class=\"intro-text\"><strong>To try out the changed levels:<\/strong><\/p>\n<ul class=\"intro-text\">\n<li>Click the Preview <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\" width=\"13\" height=\"14\" \/> button on the Studio toolbar.<\/li>\n<li>Click the top node of the hierarchy, <strong>P2 Energy Solutions<\/strong>.<\/li>\n<li>Notice how the child entities (displayed in the selection list) include child entities from three levels below the selected entity.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-1a.png\" rel=\"lightbox-20\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-33881\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-1a.png\" alt=\"\" width=\"587\" height=\"368\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-1a.png 587w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-1a-150x94.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-1a-24x15.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-1a-36x23.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-1a-48x30.png 48w\" sizes=\"auto, (max-width: 587px) 100vw, 587px\" \/><\/a><\/p>\n<p class=\"intro-text\"><strong>Step 2. Add Template Filters<\/strong><\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-2.png\" rel=\"lightbox-21\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-33882\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-2.png\" alt=\"\" width=\"335\" height=\"388\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-2.png 335w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-2-130x150.png 130w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-2-21x24.png 21w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-2-31x36.png 31w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-2-41x48.png 41w\" sizes=\"auto, (max-width: 335px) 100vw, 335px\" \/><\/a><\/p>\n<p class=\"note\">A template defines the attributes of an entity.\u00a0For a hierarchy query, the list of child entities is restricted to those that have a primary or secondary template that is included in the list of template filters. If there are no template filters, this restriction does not apply.<\/p>\n<ul class=\"intro-text\">\n<li>Click the Preview <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\" width=\"13\" height=\"14\" \/> button again, to go back into Design mode.<\/li>\n<li>Open the Hierarchy Query in the Triggers panel, start typing a template name (type \"Oil\"), and then select a template (<em>Oil Producing Well<\/em>) from the drop-down list.<\/li>\n<\/ul>\n<p class=\"intro-text\">The drop-down list shows the matching templates in IFS OI Server. Clicking one of these automatically adds it to the list of template filters.<\/p>\n<p class=\"left-bar\">Related: <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/primers\/templates\/\">Templates<\/a><\/p>\n<p class=\"intro-text\"><strong>To try out the new template filter:<\/strong><\/p>\n<ul class=\"intro-text\">\n<li>Click the Preview <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\" width=\"13\" height=\"14\" \/> button on the Studio toolbar.<\/li>\n<li>Click the <strong>Far North Coast<\/strong> node of the hierarchy.<\/li>\n<li>Notice how not all of the child entities are selected; only those that have <strong>Oil Producing Well<\/strong> as a template (the template could be the entity's primary template or a secondary template).<\/li>\n<\/ul>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-3.png\" rel=\"lightbox-22\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-33892\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-3.png\" alt=\"\" width=\"957\" height=\"768\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-3.png 957w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-3-768x616.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-3-150x120.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-3-24x19.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-3-36x29.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-3-48x39.png 48w\" sizes=\"auto, (max-width: 957px) 100vw, 957px\" \/><\/a><\/p>\n<p class=\"intro-text\"><strong>Step 3. Filter By Primary Template<\/strong><\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-4.png\" rel=\"lightbox-23\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-33893\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-4.png\" alt=\"\" width=\"956\" height=\"768\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-4.png 956w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-4-768x617.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-4-150x121.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-4-24x19.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-4-36x29.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut2-4-48x39.png 48w\" sizes=\"auto, (max-width: 956px) 100vw, 956px\" \/><\/a><\/p>\n<p class=\"note\">A primary template defines the type of an entity. In a hierarchy, the entity's icon indicates the entity type (or primary template). Sometimes, you may only want to show the entities of a certain type. This is where you use the <strong>Filter By Primary Only<\/strong> option in the trigger. It further restricts the child entities to only show those that have the specified template as their primary template.<\/p>\n<ul class=\"intro-text\">\n<li>You can update the Triggers panel while still in Preview <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\" width=\"13\" height=\"14\" \/>\u00a0mode.\u00a0<\/li>\n<li>In the Triggers panel, select the <strong>Filter By Primary Only<\/strong> option.<\/li>\n<li>Notice that the selection list automatically updates to show only the entities with a primary Oil Producing Well template.<\/li>\n<\/ul>\n<p class=\"note\">In the Hierarchy, the icon next to the entity indicates what that entity's primary template is. In the example above, this icon <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/oil-producing-well-icon.png\" rel=\"lightbox-24\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-33894\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/oil-producing-well-icon.png\" alt=\"\" width=\"19\" height=\"20\" \/><\/a>\u00a0indicates a primary Oil Producing Well template.<\/p>\n<p>&nbsp;<\/p>\n<h3>Tutorial 3: Paging the Results<\/h3>\n<p class=\"intro-text\">If you're expecting large sets of child entities from a hierarchy query, you can configure the hierarchy query so that a user can page through the resulting child entities. This is only available where the child entities are displayed in a component that supports paging, such as a\u00a0Data Table or Table Layout. To do this, you need a <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/paging-control\/\n\">Paging Control<\/a>.<\/p>\n<p class=\"intro-text\">The Paging Control works by using 3 variables: <em>Page Number, Page Size<\/em>, and <em>Total Record Count<\/em>. These need to be defined in the page Default Values before they can be used on the page.<\/p>\n<p class=\"intro-text\"><strong>Step 1. Add Default Values for Paging<\/strong><\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-1a.png\" rel=\"lightbox-25\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-33943 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-1a.png\" alt=\"\" width=\"1211\" height=\"830\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-1a.png 1211w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-1a-768x526.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-1a-150x103.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-1a-24x16.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-1a-36x25.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-1a-48x33.png 48w\" sizes=\"auto, (max-width: 1211px) 100vw, 1211px\" \/><\/a><\/p>\n<p class=\"intro-text\">Click the <strong>Default Values<\/strong> button in the Studio ribbon tab, and add the following default values:<\/p>\n<table>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>pageNumber<\/strong><\/td>\n<td>Number<\/td>\n<td>1<\/td>\n<td><em>This represents the page of data to display when the Explorer page is loaded.\u00a0<\/em><\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>pageSize<\/strong><\/td>\n<td>Number<\/td>\n<td>5<\/td>\n<td><em>This is the number of items to display on each data page.<\/em><\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>totalRecordCount<\/strong><\/td>\n<td>Number<\/td>\n<td>&nbsp;<\/td>\n<td><em>Do not enter a value here, this is calculated automatically by the set of data and represents the number of child entities.<\/em><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p class=\"intro-text\">\u00a0<\/p>\n<p class=\"intro-text\"><strong>Step 2. Configure the Hierarchy Query for Paging<\/strong><\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-2.png\" rel=\"lightbox-26\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-33944\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-2.png\" alt=\"\" width=\"350\" height=\"460\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-2.png 350w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-2-114x150.png 114w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-2-18x24.png 18w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-2-27x36.png 27w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-2-37x48.png 37w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><\/a><\/p>\n<ul>\n<li class=\"intro-text\">Open the <strong>Triggers<\/strong> <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/trigger-icon.png\" rel=\"lightbox-11\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-33455\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/trigger-icon.png\" alt=\"\" width=\"11\" height=\"21\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/trigger-icon.png 16w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/trigger-icon-13x24.png 13w\" sizes=\"auto, (max-width: 11px) 100vw, 11px\" \/><\/a>\u00a0panel again, expand the <em>Corporate Hierarchy Trigger<\/em>, and click <strong>More Settings<\/strong>.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-2a.png\" rel=\"lightbox-28\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-33945\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-2a.png\" alt=\"\" width=\"351\" height=\"602\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-2a.png 351w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-2a-87x150.png 87w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-2a-14x24.png 14w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-2a-21x36.png 21w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-2a-28x48.png 28w\" sizes=\"auto, (max-width: 351px) 100vw, 351px\" \/><\/a><\/p>\n<p class=\"intro-text\">Update the paging properties as follows:<\/p>\n<ul class=\"intro-text\">\n<li><strong>Page Number<\/strong>: Select the <em>pageNumber<\/em> variable from the drop-down list.<\/li>\n<li><strong>Page Size<\/strong>: Select the <em>pageSize<\/em> variable from the drop-down list.<\/li>\n<li><strong>Total Record Count<\/strong>: Select the\u00a0<em>totalRecordCount<\/em>\u00a0variable from the drop-down list.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p class=\"intro-text\"><strong>Step 3. Add and Configure the Paging Control<\/strong><\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-3.png\" rel=\"lightbox-29\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-33946\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-3.png\" alt=\"\" width=\"1402\" height=\"646\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-3.png 1402w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-3-768x354.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-3-150x69.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-3-1280x590.png 1280w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-3-24x11.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-3-36x17.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/hq-tut3-3-48x22.png 48w\" sizes=\"auto, (max-width: 1402px) 100vw, 1402px\" \/><\/a><\/p>\n<p class=\"intro-text\">Click the Preview <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\" width=\"13\" height=\"14\" \/> button again, to go back into Design mode.<\/p>\n<p class=\"intro-text\">Drag and drop a <strong>Paging Control<\/strong> component onto the page (in the Table <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/tablesicon_sm.png\" rel=\"lightbox-30\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1861\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/tablesicon_sm.png\" alt=\"\" width=\"18\" height=\"16\" \/><\/a>\u00a0group), position it below the Selection List, and configure it as follows.<\/p>\n<ul class=\"intro-text\">\n<li><strong>Page Number<\/strong>: Select the <em>pageNumber<\/em> variable from the drop-down list.<\/li>\n<li><strong>Page Size<\/strong>: Select the <em>pageSize<\/em> variable from the drop-down list.<\/li>\n<li><strong>Total Record Count<\/strong>: Select the <em>totalRecordCount<\/em> variable from the drop-down list.<\/li>\n<\/ul>\n<p class=\"left-bar\">Related: <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/paging-control\/\">Paging Control<\/a><\/p>\n<p class=\"intro-text\"><strong>To try out the new paging functionality:<\/strong><\/p>\n<ul class=\"intro-text\">\n<li>Click the Preview <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\" width=\"13\" height=\"14\" \/> button on the Studio toolbar to see what your page will look like in display mode.<\/li>\n<li>Click <strong>New South Wales<\/strong>, near the top of the hierarchy.<\/li>\n<li>Click the <strong>Next<\/strong> button on the Paging Control to see the next five child entities appear in the selection list.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/07\/Use-the-paging-control.png\" rel=\"lightbox-31\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-29033 size-full alignnone\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/07\/Use-the-paging-control.png\" alt=\"\" width=\"754\" height=\"458\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/07\/Use-the-paging-control.png 754w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/07\/Use-the-paging-control-150x91.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/07\/Use-the-paging-control-24x15.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/07\/Use-the-paging-control-36x22.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/07\/Use-the-paging-control-48x29.png 48w\" sizes=\"auto, (max-width: 754px) 100vw, 754px\" \/><\/a><\/p>\n<h3>Tutorial 4: Template Name<\/h3>\n<p class=\"intro-text\">The <em>More Settings<\/em> section also contains the property for the selected entity's primary template . We're going to display this variable on the page.<\/p>\n<p class=\"intro-text\">First click the Preview <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\" width=\"13\" height=\"14\" \/> button again, to go back into Design mode.<\/p>\n<p class=\"intro-text\">1. Drag a Data Label onto the page.<\/p>\n<p class=\"intro-text\">2. Type the variable name <em>currentTemplate<\/em> into the <strong>Value<\/strong> property.<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/07\/Data-Label-3-1.png\" rel=\"lightbox-32\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-29039 size-full alignnone\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/07\/Data-Label-3-1.png\" alt=\"\" width=\"367\" height=\"243\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/07\/Data-Label-3-1.png 367w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/07\/Data-Label-3-1-150x99.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/07\/Data-Label-3-1-24x16.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/07\/Data-Label-3-1-36x24.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/07\/Data-Label-3-1-48x32.png 48w\" sizes=\"auto, (max-width: 367px) 100vw, 367px\" \/><\/a><\/p>\n<p class=\"intro-text\">Click the Preview <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\" width=\"13\" height=\"14\" \/> button to view the value in the new label.<\/p>\n<p class=\"note\">Notice how this value changes as you select different entities in the hierarchy.<\/p>\n<h3>Tutorial 5. Attributes in Table Layout<\/h3>\n<p class=\"intro-text\">A common way of using the full power of a Hierarchy Query is in conjunction with a Table Layout. This allows users to dynamically update a table from a\u00a0<strong>hierarchy<\/strong>\u00a0that uses time series data. This scenario takes full advantage of an\u00a0<strong>asset model<\/strong>\u00a0setup, and enables you to construct powerful tables that allow you to drill down and determine the cause of a problem.<\/p>\n<p class=\"left-bar\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/table-layout\/#Tutorials_-_Hierarchy_Attributes\">Follow this tutorial in the Table Layout article so see how to use the Hierarchy Query Trigger in conjunction with a Table Layout<\/a>.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/table-layout-tut-hierarchy.png\" \/><\/p>\n<hr \/>\n<h2 class=\"page-subheading\">Release History<\/h2>\n<ul class=\"intro-text\">\n<li class=\"overview\">Hierarchy Query 4.5.4 (this release)\n<ul class=\"overview\">\n<li>New configuration option <em>Trigger Title<\/em> allows you to name the hierarchy query for easier identification in the list of triggers.\u00a0<\/li>\n<\/ul>\n<\/li>\n<li><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/triggers\/hierarchy-query\/hierarchy-query-4-5-2\/\">Hierarchy Query 4.5.2<\/a>\n<ul class=\"intro-text\">\n<li>Initial release<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>A Hierarchy Query is used to generate a list of child entities from a hierarchy, for a selected entity. This article explains how to set up the Hierarchy Query trigger in IFS OI Explorer 4.5.4 and later.<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/triggers\/hierarchy-query\/\">Read more<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":33527,"parent":39670,"menu_order":5,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[11],"tags":[584,587],"class_list":["post-33522","page","type-page","status-publish","has-post-thumbnail","hentry","category-tutorial","tag-hierarchy-query","tag-trigger","Version-4-5-4","Product-ex"],"_links":{"self":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/33522","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=33522"}],"version-history":[{"count":3,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/33522\/revisions"}],"predecessor-version":[{"id":67087,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/33522\/revisions\/67087"}],"up":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/39670"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media\/33527"}],"wp:attachment":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media?parent=33522"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/categories?post=33522"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/tags?post=33522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}