{"id":23465,"date":"2017-12-13T13:37:20","date_gmt":"2017-12-13T05:37:20","guid":{"rendered":"http:\/\/localhost\/help\/?page_id=23465"},"modified":"2024-11-22T14:06:53","modified_gmt":"2024-11-22T06:06:53","slug":"triggers-4-5-4","status":"publish","type":"page","link":"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/triggers\/triggers-4-5-4\/","title":{"rendered":"Triggers (4.5.4)"},"content":{"rendered":"\n<p class=\"left-bar\">This article applies to versions 4.5.4 and later of P2 Explorer.<\/p>\n<p class=\"overview\">Triggers are actions that you can add to a page, in order to control how certain variables behave on the page.\u00a0<\/p>\n<p class=\"intro-text\">A trigger is a special type of component in Explorer, whose job it is to watch a variable on the page, and then do some type of action when this variable changes.<\/p>\n<p class=\"intro-text\">Triggers are useful for adding advanced interactions to a page, by regulating variables to conform to certain rules.\u00a0Triggers currently allow manipulation of entity and time variables.<\/p>\n<p class=\"intro-text\">An example of a trigger is the Hierarchy Query. This trigger watches for the user to select an entity. Any time the selected entity changes, the trigger will run and return a list of child entities.<\/p>\n<p class=\"intro-text\">Triggers are accessed via the ribbon in Explorer Studio, and are only visible to the page designer.<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/triggers-panel-overview.png\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-33617\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/triggers-panel-overview.png\" alt=\"\" width=\"755\" height=\"247\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/triggers-panel-overview.png 755w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/triggers-panel-overview-150x49.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/triggers-panel-overview-24x8.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/triggers-panel-overview-36x12.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/triggers-panel-overview-48x16.png 48w\" sizes=\"auto, (max-width: 755px) 100vw, 755px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<h2 class=\"page-subheading\">Types of Triggers<\/h2>\n<p class=\"intro-text\">P2 Explorer currently offers two types of triggers. Click the links below to see detailed information and tutorials on how to use each trigger.<\/p>\n<table class=\"intro-text\">\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\" width=\"135\"><strong><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/triggers\/hierarchy-query\/\">Hierarchy Query<\/a><\/strong><\/td>\n<td>Generates a list of child entities from a hierarchy, for a selected entity. This is useful when using an asset model to display entities, but you want to restrict the type of entities displayed depending on the template and level in a hierarchy.<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/triggers\/relative-time\/\"><strong>Relative Time<\/strong><\/a><\/td>\n<td>Sets a time difference between two\u00a0<em>datetime<\/em>\u00a0variables on a page. It does this by applying a specified time offset to an input variable, and designating this new time to an output variable. The time difference is a period of time either before or after the input time.\u00a0The output variable can be used elsewhere on the page, effectively allowing you to have a relative time that keeps pace with the date and time that you are selecting.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<hr \/>\n<h2 class=\"page-subheading\">Adding a Trigger<\/h2>\n<p class=\"intro-text\">Triggers are only available from Explorer Studio, while designing a page.<\/p>\n<p class=\"intro-text\">To open the Triggers panel, click the <strong>Triggers<\/strong> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-33455 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/11\/trigger-icon.png\" alt=\"\" width=\"16\" height=\"30\" 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: 16px) 100vw, 16px\" \/>\u00a0button in the <em>Configuration<\/em> group on the Studio ribbon tab.<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/trigger-ribbon.png\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-33612\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/trigger-ribbon.png\" alt=\"\" width=\"728\" height=\"137\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/trigger-ribbon.png 728w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/trigger-ribbon-150x28.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/trigger-ribbon-24x5.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/trigger-ribbon-36x7.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/trigger-ribbon-48x9.png 48w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a><\/p>\n<p class=\"intro-text\">The <strong>Triggers<\/strong> panel on the right shows the available triggers.<\/p>\n<p class=\"intro-text\">To add a trigger, click the <strong>Add<\/strong> button next to the type of trigger you want to add.<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/triggers-panel.png\" rel=\"lightbox-2\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-33616\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/triggers-panel.png\" alt=\"\" width=\"1094\" height=\"377\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/triggers-panel.png 1094w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/triggers-panel-768x265.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/triggers-panel-150x52.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/triggers-panel-24x8.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/triggers-panel-36x12.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/triggers-panel-48x17.png 48w\" sizes=\"auto, (max-width: 1094px) 100vw, 1094px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p class=\"intro-text\">Then, click the arrow next to the trigger to expand its <strong>configuration<\/strong> options.<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/trigger-expand2.png\" rel=\"lightbox-3\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-33627 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/trigger-expand2.png\" alt=\"\" width=\"617\" height=\"162\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/trigger-expand2.png 617w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/trigger-expand2-150x39.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/trigger-expand2-24x6.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/trigger-expand2-36x9.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/trigger-expand2-48x13.png 48w\" sizes=\"auto, (max-width: 617px) 100vw, 617px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p class=\"intro-text\">To <strong>remove<\/strong> a trigger, click the bin <img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-16697 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2016\/07\/deleteicon.png\" alt=\"Delete bin trash icon\" width=\"17\" height=\"18\" \/>\u00a0icon next to it.<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/trigger-delete2.png\" rel=\"lightbox-4\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-33628 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/trigger-delete2.png\" alt=\"\" width=\"601\" height=\"162\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/trigger-delete2.png 601w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/trigger-delete2-150x40.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/trigger-delete2-24x6.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/trigger-delete2-36x10.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2017\/12\/trigger-delete2-48x13.png 48w\" sizes=\"auto, (max-width: 601px) 100vw, 601px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Triggers are useful for adding advanced interactions to a page, by regulating variables to conform to certain rules. Triggers currently allow manipulation of entity and time variables.<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/triggers\/triggers-4-5-4\/\">Read more<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":29134,"parent":39670,"menu_order":1,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[11],"tags":[584,587],"class_list":["post-23465","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\/23465","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=23465"}],"version-history":[{"count":1,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/23465\/revisions"}],"predecessor-version":[{"id":69701,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/23465\/revisions\/69701"}],"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\/29134"}],"wp:attachment":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media?parent=23465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/categories?post=23465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/tags?post=23465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}