{"id":9489,"date":"2016-02-18T15:27:46","date_gmt":"2016-02-18T07:27:46","guid":{"rendered":"http:\/\/localhost\/help\/?page_id=9489"},"modified":"2024-07-04T15:51:11","modified_gmt":"2024-07-04T07:51:11","slug":"keywords","status":"publish","type":"page","link":"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/keywords\/","title":{"rendered":"Keywords"},"content":{"rendered":"<p class=\"intro-text\">A keyword is a word with a predefined value. The available keywords are listed below.<\/p>\n<p class=\"intro-text\">Note that keywords are not case sensitive.<\/p>\n<table>\n<tbody>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\"><strong>Keyword<\/strong><\/td>\n<td><strong>Returned value<\/strong><\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\">E<\/td>\n<td>2.71828182845904523536<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\">Pi<\/td>\n<td>3.14159265358979<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\">SystemTime<\/td>\n<td>Evaluates to the system time on the machine evaluating the expression, expressed in <em>seconds since the 1st of January 1970, UTC<\/em>.<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\">Log10E<\/td>\n<td>0.434294481903251827651<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\">Log2E<\/td>\n<td>1.44269504088896340736<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\">Null<\/td>\n<td>A value of Null\u00a0<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\">True<\/td>\n<td>True\u00a0<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\">False<\/td>\n<td>False\u00a0<\/td>\n<\/tr>\n<tr style=\"border: 1px solid #cccccc;\">\n<td style=\"padding-left: 5px;\">Entity<\/td>\n<td>The value\u00a0of the tag or entity\u00a0(see below for explanation and examples)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 class=\"page-subheading\">Entity<\/h2>\n<p class=\"intro-text\">The <em>Entity<\/em> keyword replaces the THIS keyword from version 2.6.<\/p>\n<p class=\"intro-text\"><em>Entity<\/em>\u00a0applies to the parent entity when a calculation is assigned as an attribute.\u00a0For calculations assigned as attributes, the <em>Entity\u00a0<\/em>keyword will be substituted by the parent entity name, provided that <em>Entity\u00a0<\/em>is surrounded by non-alphanumeric characters (that is, it does not appear as part of another word).<\/p>\n<p class=\"intro-text\">In IFS OI Server, tags must be written between curly braces.<\/p>\n<p class=\"intro-text\">You can use the <em>Entity<\/em> keyword in 2 ways:.<\/p>\n<h3>In Entities<\/h3>\n<p class=\"intro-text\">You can use <em>Entity<\/em> as a keyword to get back the name of the parent entity.\u00a0<\/p>\n<p class=\"intro-text\">If you have <em>entity1:attr1<\/em> with the expression <span class=\"code-fragment\">\"'parent entity is: ' + entity\"<\/span>\u00a0it would return a single value with a string data type of :<br \/>\n<span class=\"code-fragment\">parent entity is: entity1<\/span><\/p>\n<p class=\"intro-text\">The syntax for specifying an <strong>attribute<\/strong> is as follows:<\/p>\n<p class=\"intro-text\"><code>{Entity:AttributeDefinition}<br \/>\n {Entity[TemplateDefinition]:AttributeDefinition}<br \/>\n {Entity:AttributeDefinition!AttributeValueDefinition}<br \/>\n {Entity[TemplateDefinition]:AttributeDefinition!AttributeValueDefinition}<\/code><\/p>\n<h3>In Tags<\/h3>\n<p class=\"intro-text\">You can use the <em>Entity<\/em> keyword in tag expressions. For example, you could create the following attributes and tags:<\/p>\n<p class=\"intro-text\"><code>CalculatedDoubleTHP = {entity:THP} * 2<br \/>\n Well1:DoubleTHP = {CalculatedDoubleTHP}<br \/>\n Well2:DoubleTHP = {CalculatedDoubleTHP}<\/code><\/p>\n<p class=\"intro-text\">In this case, <em>Entity<\/em> would get replaced with Well1 or Well2 depending on which attribute is evaluated.<\/p>\n<p class=\"intro-text\">\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A keyword is a word with a predefined value. This article lists the keywords available in IFS OI Server, and their definitions.<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/keywords\/\">Read more<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":9500,"parent":3650,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[9],"tags":[100,723,104,363],"class_list":["post-9489","page","type-page","status-publish","has-post-thumbnail","hentry","category-tech-ref","tag-calculations","tag-entity-keyword","tag-keywords","tag-this","Product-srv"],"_links":{"self":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/9489","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=9489"}],"version-history":[{"count":3,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/9489\/revisions"}],"predecessor-version":[{"id":67789,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/9489\/revisions\/67789"}],"up":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/3650"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media\/9500"}],"wp:attachment":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media?parent=9489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/categories?post=9489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/tags?post=9489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}