{"id":71178,"date":"2025-10-18T18:17:36","date_gmt":"2025-10-18T10:17:36","guid":{"rendered":"https:\/\/oihelp.corporate.ifs.com\/help\/?page_id=71178"},"modified":"2025-10-18T18:22:44","modified_gmt":"2025-10-18T10:22:44","slug":"templated-trends-4-9","status":"publish","type":"page","link":"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/trends\/templated-trends\/templated-trends-4-9\/","title":{"rendered":"Templated Trends (4.9)"},"content":{"rendered":"<p class=\"page-subheading\"><\/p>\n<p class=\"left-bar\">This article applies to version 4.9 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\">This article explains how to create a templated trend, with a link which appears on an entity's Table of Contents tab on the Explorer ribbon.<\/p>\n<p class=\"intro-text\">When you click on a link for a templated trend, the trace lines that use templated attributes use the entity that's currently selected in the hierarchy navigator.<\/p>\n<h2 class=\"page-subheading\"><span id=\"Instructions\">Tutorial<\/span><\/h2>\n<p class=\"intro-text\">This tutorial uses an example to describe how to create a templated trend. A link to the trend is added to one of entity Beardy Well's templates (Oil Producing Well), so that it appears on the ribbon's Table of Contents for Beardy Well, and for all other entities using the Oil Producing Well template.<\/p>\n<p class=\"left-bar\"><strong>Note<\/strong>: This configuration uses the Sample Data table that can be optionally made available during 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<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-1-3.png\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-47187\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-1-3-600x237.png\" alt=\"\" width=\"730\" height=\"288\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-1-3-600x237.png 600w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-1-3-768x303.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-1-3-150x59.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-1-3-48x19.png 48w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-1-3.png 1013w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/a><\/p>\n<h3>Step 1: Create the Templated Trend in Explorer<\/h3>\n<p class=\"note\"><strong>Tip:<\/strong> Before you start, identify which template this trend will be associated with. In our example, we are using the <strong>Oil Producing Well<\/strong> template.<\/p>\n<p class=\"intro-text\">1. Add a new <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/trends\/creating-a-trend\/#Step_by_Step_Adding_a_New_Trend\">Trend<\/a> by clicking <strong>New Trend<\/strong> on the Home ribbon tab.<\/p>\n<p class=\"intro-text\">2. Open the <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-getting-started\/tag-search-and-hierarchy-navigation\/#Hierarchy_Navigator\">Hierarchy Navigator<\/a> and select the <strong>P2 Corporate<\/strong> hierarchy.<\/p>\n<p class=\"intro-text\">3. Select entity <strong>Beardy Well<\/strong>\u00a0in the hierarchy navigator.<\/p>\n<p class=\"intro-text\">4. Click <strong>Show Attributes<\/strong> to open the <strong>Attributes Panel<\/strong>. (This button changes to <strong>Hide Attributes<\/strong>.)<\/p>\n<p class=\"intro-text\">5. In the Attributes panel, under the <strong>Oil Producing Well<\/strong> template, locate the <strong>Choke!Inlet Pressure<\/strong> attribute value. Drag and drop this attribute value onto the trend.<\/p>\n<p class=\"intro-text\">6. Now locate the <strong>Choke!Max Position<\/strong> attribute value. Drag and drop this attribute value onto the trend.<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-2-2.png\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-47188\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-2-2-600x323.png\" alt=\"\" width=\"730\" height=\"393\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-2-2-600x323.png 600w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-2-2-768x414.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-2-2-150x81.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-2-2-48x26.png 48w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-2-2.png 1080w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/a><\/p>\n<p class=\"intro-text\">This adds <em>{Beardy Well[Oil Producing Well]:Choke!Inlet Pressure}<\/em> and <em>{Beardy Well[Oil Producing Well]:Choke!Max Position} <\/em> attribute values into the Trace Table, displayed respectively as <img loading=\"lazy\" decoding=\"async\" class=\"wp-image-38716 size-full alignnone\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/05\/Oil-producing-well-icon-1.png\" alt=\"\" width=\"15\" height=\"16\" \/><strong> Beardy Well<strong>-&gt;<\/strong> Choke <strong>-&gt;<\/strong> Inlet Pressure <\/strong> and <img loading=\"lazy\" decoding=\"async\" class=\"wp-image-38716 size-full alignnone\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/05\/Oil-producing-well-icon-1.png\" alt=\"\" width=\"15\" height=\"16\" \/> <strong>Beardy Well<strong>-&gt;<\/strong> Choke <strong>-&gt;<\/strong> Max Position<\/strong>.<\/p>\n<hr \/>\n<p class=\"intro-text\">7. Select Save As, name the trend Templated Choke, and create a new workspace Templated.<\/p>\n<p class=\"intro-text\">8. Select Save this as a Template Link, and in this example, the Template is Oil Producing Well.<\/p>\n<p class=\"intro-text\">9. Name the link Choke Trend, and the link group Templated Trend.<\/p>\n<p class=\"intro-text\">10. Click Save.<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-A.png\" rel=\"lightbox-2\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-47139 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-A.png\" alt=\"\" width=\"543\" height=\"503\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-A.png 543w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-A-150x139.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-A-48x44.png 48w\" sizes=\"auto, (max-width: 543px) 100vw, 543px\" \/><\/a><\/p>\n<p class=\"left-bar\">Read more: <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/trends\/link-to-a-trend-via-a-url\/\">Linking to a Trend<\/a><\/p>\n<h3>Step 2: Try out the Link in Explorer<\/h3>\n<p class=\"intro-text\">In this step, we're going to click on an entity to open its Table of Contents tab on the Explorer Ribbon, then click on the link to the trend. Once the trend is open, you can click on other entities in the hierarchy to change the entity context in the trend, or you can click the button on that entity's table of contents, to open another trend in a new tab.<\/p>\n<p class=\"intro-text\">1. In the Hierarchy Navigator, locate entity <strong>Hunter<\/strong> in the <strong>P2 Corporate<\/strong> hierarchy.<\/p>\n<p class=\"intro-text\">2. Click <strong>Hunter<\/strong> to open its Table of Contents tab.<\/p>\n<p class=\"intro-text\">3. In the Table of Contents ribbon, click <strong>Choke Trend<\/strong>.<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-B.png\" rel=\"lightbox-3\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-47140\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-B-600x310.png\" alt=\"\" width=\"730\" height=\"377\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-B-600x310.png 600w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-B-768x397.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-B-150x78.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-B-48x25.png 48w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-B.png 1014w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/a><\/p>\n<p class=\"intro-text\">The trend opens in a new tab.<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-D.png\" rel=\"lightbox-4\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-47191\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-D-600x492.png\" alt=\"\" width=\"730\" height=\"599\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-D-600x492.png 600w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-D-768x630.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-D-150x123.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-D-1080x885.png 1080w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-D-48x39.png 48w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-D.png 1116w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/a><\/p>\n<p class=\"note\"><strong>Note:<\/strong> In our example, The templated calculation trace has entity <em>Hunter<\/em> for context. If we click on another entity in the hierarchy the context changes, as shown below.<\/p>\n<p class=\"instruct\">Click <strong>Queen<\/strong> in the Hierarchy Navigator, to change context for the templated traces.<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-C.png\" rel=\"lightbox-5\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-47141\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-C-600x505.png\" alt=\"\" width=\"730\" height=\"615\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-C-600x505.png 600w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-C-768x647.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-C-150x126.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-C-1080x910.png 1080w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-C-48x40.png 48w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-C.png 1091w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<h3>Creating an Unpopulated Templated Trend<\/h3>\n<p class=\"intro-text\">You can create a templated trend by adding a calculation to a new trend. The saved Templated Trend will be blank and will be populated when you select an entity.<\/p>\n<p class=\"intro-text\">In the example below\u00a0<em>{entity[Oil Producing Well]:Choke!Current Position}<\/em> was entered into the\u00a0<strong>Name<\/strong> field and the template saved as Choke Template A.<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-entity-2.png\" rel=\"lightbox-6\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-47193\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-entity-2-600x649.png\" alt=\"\" width=\"730\" height=\"790\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-entity-2-600x649.png 600w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-entity-2-768x831.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-entity-2-139x150.png 139w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-entity-2-44x48.png 44w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2021\/02\/Templated-Trends-entity-2.png 832w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p class=\"left-bar\">Read more: <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-getting-started\/explorer-ribbon\/#Table_of_Contents_Tab\">Table of Contents Tab<\/a><\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<h2 class=\"page-subheading\">Release History<\/h2>\n<ul class=\"intro-text\">\n<li>Templated Trends 4.9\n<\/li>\n<li>Templated Trends 4.8\n<ul class=\"intro-text\">\n<li>Entity names are replaced with \"entity\" keyword when opening the calculation when using the 'Save this as a Template Link' option.<\/li>\n<\/ul>\n<\/li>\n<li>Templated Trends 4.6.7\n<ul class=\"intro-text\">\n<li>Save a link to the trend as a template link<\/li>\n<\/ul>\n<\/li>\n<li>Templated Trends 4.6.5\n<ul class=\"intro-text\">\n<li>Comments can be added to entities in templated trends and charts<\/li>\n<li>Name of selected entity displays in trend templated entity<\/li>\n<\/ul>\n<\/li>\n<li><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/trends\/templated-trends\/templated-trends-4-6\/\">Templated Trends 4.6<\/a>\n<\/li>\n<li><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/trends\/templated-trends\/templated-trends-4-5-2\/\">Templated Trends 4.5.2<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This article explains how to create a templated trend. A link to the trend is added to a template of an entity, so that it appears on an entity's Table of Contents tab on the Explorer ribbon. Tasks are performed in IFS OI Server Managment as well as IFS OI Explorer to achieve this.<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/trends\/templated-trends\/templated-trends-4-9\/\">Read more<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":38,"featured_media":38725,"parent":38690,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[1],"tags":[538,316],"class_list":["post-71178","page","type-page","status-publish","has-post-thumbnail","hentry","category-uncategorized","tag-templated-trends","tag-trends","Version-4-6-0","Product-ex"],"_links":{"self":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/71178","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\/38"}],"replies":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/comments?post=71178"}],"version-history":[{"count":2,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/71178\/revisions"}],"predecessor-version":[{"id":71317,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/71178\/revisions\/71317"}],"up":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/38690"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media\/38725"}],"wp:attachment":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media?parent=71178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/categories?post=71178"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/tags?post=71178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}