{"id":2574,"date":"2017-09-21T10:31:38","date_gmt":"2017-09-21T09:31:38","guid":{"rendered":"https:\/\/www.threesl.com\/blog\/?p=2574"},"modified":"2022-08-23T15:40:02","modified_gmt":"2022-08-23T14:40:02","slug":"calculations-in-cradle","status":"publish","type":"post","link":"https:\/\/www.threesl.com\/blog\/calculations-in-cradle\/","title":{"rendered":"Calculations in Cradle"},"content":{"rendered":"<h2>Calculations<\/h2>\n<p>It&#8217;s possible to calculate values for display, query upon or to set a category within a Cradle item. Calculations can perform basic addition, subtraction, multiplication and division.<\/p>\n<h3>Setup<\/h3>\n<ul>\n<li>Open <em>Project Setup<\/em> and navigate to the <strong>Item Definitions<\/strong> section.<\/li>\n<li>Ensure you have <em>categories<\/em> set up to contain any inputs you require. In this example <em>Width<\/em> and <em>Length<\/em> of type <em>Real<\/em> have been added and also an additional category of <em>Area<\/em> also of type<em> Real<\/em>.<\/li>\n<li>Select the <strong>Item Types<\/strong> tab<\/li>\n<li>Add these <em>categories<\/em> to your item type, here it is to the <em>Bedroom item<\/em><\/li>\n<li>Choose <strong>Calculations<\/strong> and add a <strong>New<\/strong> one, here called <em>Floor Area<\/em><\/li>\n<li>Create the <em>calculation<\/em>, in this case multiplying <samp>[@CAT:Length] * [@CAT:Width]<\/samp> and set the output type to <em>Real<\/em>.<\/li>\n<li>Optionally set a <em>category<\/em> with the resultant value, in the example this is <em>Area<\/em><\/li>\n<li>Save the schema and return to the main interface.<\/li>\n<\/ul>\n<div style=\"width: 525px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-2574-1\" width=\"525\" height=\"331\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.threesl.com\/blog\/wp-content\/uploads\/2017\/09\/Calculation.mp4?_=1\" \/><a href=\"https:\/\/www.threesl.com\/blog\/wp-content\/uploads\/2017\/09\/Calculation.mp4\">https:\/\/www.threesl.com\/blog\/wp-content\/uploads\/2017\/09\/Calculation.mp4<\/a><\/video><\/div>\n<h3>Run<\/h3>\n<ul>\n<li>Edit the item to include values for the categories that are inputs to the calculation.<\/li>\n<li>Save the item and the calculation will be updated and in this case also set the associated category.<\/li>\n<\/ul>\n<h6>Related Articles<\/h6>\n<p>Rule Sets can be used to set values based on categories and calculations where the value is based on logic matching rather than on simply the mathematical result.<\/p>\n<p>A quick way to see calculation values without changing the <em>View<\/em> or<em> Form<\/em><\/p>\n<aside class=\"mashsb-container mashsb-main mashsb-stretched\"><div class=\"mashsb-box\"><div class=\"mashsb-buttons\"><a class=\"mashicon-twitter mash-small mash-center mashsb-noshadow\" href=\"https:\/\/twitter.com\/intent\/tweet?text=&amp;url=https:\/\/www.threesl.com\/blog\/calculations-in-cradle\/&amp;via=threesl\" target=\"_top\" rel=\"nofollow\"><span class=\"icon\"><\/span><span class=\"text\">Tweet<\/span><\/a><a class=\"mashicon-facebook mash-small mash-center mashsb-noshadow\" href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fwww.threesl.com%2Fblog%2Fcalculations-in-cradle%2F\" target=\"_top\" rel=\"nofollow\"><span class=\"icon\"><\/span><span class=\"text\">Share<\/span><\/a><a class=\"mashicon-subscribe mash-small mash-center mashsb-noshadow\" href=\"#\" target=\"_top\" rel=\"nofollow\"><span class=\"icon\"><\/span><span class=\"text\">Newsletter<\/span><\/a><div class=\"onoffswitch2 mash-small mashsb-noshadow\" style=\"display:none\"><\/div><\/div>\n            <\/div>\n                <div style=\"clear:both\"><\/div><\/aside>\n            <!-- Share buttons by mashshare.net - Version: 4.0.47-->","protected":false},"excerpt":{"rendered":"<p>Calculations It&#8217;s possible to calculate values for display, query upon or to set a category within a Cradle item. Calculations can perform basic addition, subtraction, multiplication and division. Setup Open Project Setup and navigate to the Item Definitions section. Ensure you have categories set up to contain any inputs you require. In this example Width &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.threesl.com\/blog\/calculations-in-cradle\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Calculations in Cradle&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"no","_lmt_disable":"no","footnotes":""},"categories":[6],"tags":[22,28],"class_list":["post-2574","post","type-post","status-publish","format-standard","hentry","category-tips","tag-settings-configuration-preferences-customise","tag-workbench"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Calculations in Cradle - 3SL Blog<\/title>\n<meta name=\"description\" content=\"How to set up a calculation based on category values in Cradle and use the result to set another category. Calculations can be viewed or queried.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.threesl.com\/blog\/calculations-in-cradle\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Calculations in Cradle - 3SL Blog\" \/>\n<meta property=\"og:description\" content=\"How to set up a calculation based on category values in Cradle and use the result to set another category. Calculations can be viewed or queried.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.threesl.com\/blog\/calculations-in-cradle\/\" \/>\n<meta property=\"og:site_name\" content=\"3SL Blog\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/3SLCradle\" \/>\n<meta property=\"article:published_time\" content=\"2017-09-21T09:31:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-08-23T14:40:02+00:00\" \/>\n<meta name=\"author\" content=\"3SL\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@threesl\" \/>\n<meta name=\"twitter:site\" content=\"@threesl\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"3SL\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.threesl.com\\\/blog\\\/calculations-in-cradle\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.threesl.com\\\/blog\\\/calculations-in-cradle\\\/\"},\"author\":{\"name\":\"3SL\",\"@id\":\"https:\\\/\\\/www.threesl.com\\\/blog\\\/#\\\/schema\\\/person\\\/749ccd9b2d74303fa8927e06c2af8b0b\"},\"headline\":\"Calculations in Cradle\",\"datePublished\":\"2017-09-21T09:31:38+00:00\",\"dateModified\":\"2022-08-23T14:40:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.threesl.com\\\/blog\\\/calculations-in-cradle\\\/\"},\"wordCount\":239,\"publisher\":{\"@id\":\"https:\\\/\\\/www.threesl.com\\\/blog\\\/#organization\"},\"keywords\":[\"settings\\\/configuration\\\/prefs\\\/customise\",\"WorkBench\"],\"articleSection\":[\"Hints &amp; Tips\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.threesl.com\\\/blog\\\/calculations-in-cradle\\\/\",\"url\":\"https:\\\/\\\/www.threesl.com\\\/blog\\\/calculations-in-cradle\\\/\",\"name\":\"Calculations in Cradle - 3SL Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.threesl.com\\\/blog\\\/#website\"},\"datePublished\":\"2017-09-21T09:31:38+00:00\",\"dateModified\":\"2022-08-23T14:40:02+00:00\",\"description\":\"How to set up a calculation based on category values in Cradle and use the result to set another category. Calculations can be viewed or queried.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.threesl.com\\\/blog\\\/calculations-in-cradle\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.threesl.com\\\/blog\\\/calculations-in-cradle\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.threesl.com\\\/blog\\\/calculations-in-cradle\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.threesl.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Calculations in Cradle\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.threesl.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.threesl.com\\\/blog\\\/\",\"name\":\"3SL Blog\",\"description\":\"From concept to creation\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.threesl.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.threesl.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.threesl.com\\\/blog\\\/#organization\",\"name\":\"3SL\",\"url\":\"https:\\\/\\\/www.threesl.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.threesl.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.threesl.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/02\\\/3SL_Logo_Medium.png\",\"contentUrl\":\"https:\\\/\\\/www.threesl.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/02\\\/3SL_Logo_Medium.png\",\"width\":152,\"height\":80,\"caption\":\"3SL\"},\"image\":{\"@id\":\"https:\\\/\\\/www.threesl.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"http:\\\/\\\/facebook.com\\\/3SLCradle\",\"https:\\\/\\\/x.com\\\/threesl\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.threesl.com\\\/blog\\\/#\\\/schema\\\/person\\\/749ccd9b2d74303fa8927e06c2af8b0b\",\"name\":\"3SL\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cee8089745b3e7d79c57d621cc634da71def3561fcf40d4932a3e38743e23af0?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cee8089745b3e7d79c57d621cc634da71def3561fcf40d4932a3e38743e23af0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cee8089745b3e7d79c57d621cc634da71def3561fcf40d4932a3e38743e23af0?s=96&d=mm&r=g\",\"caption\":\"3SL\"},\"sameAs\":[\"http:\\\/\\\/www.threesl.com\\\/\",\"https:\\\/\\\/x.com\\\/threesl\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Calculations in Cradle - 3SL Blog","description":"How to set up a calculation based on category values in Cradle and use the result to set another category. Calculations can be viewed or queried.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.threesl.com\/blog\/calculations-in-cradle\/","og_locale":"en_GB","og_type":"article","og_title":"Calculations in Cradle - 3SL Blog","og_description":"How to set up a calculation based on category values in Cradle and use the result to set another category. Calculations can be viewed or queried.","og_url":"https:\/\/www.threesl.com\/blog\/calculations-in-cradle\/","og_site_name":"3SL Blog","article_publisher":"http:\/\/facebook.com\/3SLCradle","article_published_time":"2017-09-21T09:31:38+00:00","article_modified_time":"2022-08-23T14:40:02+00:00","author":"3SL","twitter_card":"summary_large_image","twitter_creator":"@threesl","twitter_site":"@threesl","twitter_misc":{"Written by":"3SL","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.threesl.com\/blog\/calculations-in-cradle\/#article","isPartOf":{"@id":"https:\/\/www.threesl.com\/blog\/calculations-in-cradle\/"},"author":{"name":"3SL","@id":"https:\/\/www.threesl.com\/blog\/#\/schema\/person\/749ccd9b2d74303fa8927e06c2af8b0b"},"headline":"Calculations in Cradle","datePublished":"2017-09-21T09:31:38+00:00","dateModified":"2022-08-23T14:40:02+00:00","mainEntityOfPage":{"@id":"https:\/\/www.threesl.com\/blog\/calculations-in-cradle\/"},"wordCount":239,"publisher":{"@id":"https:\/\/www.threesl.com\/blog\/#organization"},"keywords":["settings\/configuration\/prefs\/customise","WorkBench"],"articleSection":["Hints &amp; Tips"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/www.threesl.com\/blog\/calculations-in-cradle\/","url":"https:\/\/www.threesl.com\/blog\/calculations-in-cradle\/","name":"Calculations in Cradle - 3SL Blog","isPartOf":{"@id":"https:\/\/www.threesl.com\/blog\/#website"},"datePublished":"2017-09-21T09:31:38+00:00","dateModified":"2022-08-23T14:40:02+00:00","description":"How to set up a calculation based on category values in Cradle and use the result to set another category. Calculations can be viewed or queried.","breadcrumb":{"@id":"https:\/\/www.threesl.com\/blog\/calculations-in-cradle\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.threesl.com\/blog\/calculations-in-cradle\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.threesl.com\/blog\/calculations-in-cradle\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.threesl.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Calculations in Cradle"}]},{"@type":"WebSite","@id":"https:\/\/www.threesl.com\/blog\/#website","url":"https:\/\/www.threesl.com\/blog\/","name":"3SL Blog","description":"From concept to creation","publisher":{"@id":"https:\/\/www.threesl.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.threesl.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.threesl.com\/blog\/#organization","name":"3SL","url":"https:\/\/www.threesl.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.threesl.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.threesl.com\/blog\/wp-content\/uploads\/2017\/02\/3SL_Logo_Medium.png","contentUrl":"https:\/\/www.threesl.com\/blog\/wp-content\/uploads\/2017\/02\/3SL_Logo_Medium.png","width":152,"height":80,"caption":"3SL"},"image":{"@id":"https:\/\/www.threesl.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["http:\/\/facebook.com\/3SLCradle","https:\/\/x.com\/threesl"]},{"@type":"Person","@id":"https:\/\/www.threesl.com\/blog\/#\/schema\/person\/749ccd9b2d74303fa8927e06c2af8b0b","name":"3SL","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/cee8089745b3e7d79c57d621cc634da71def3561fcf40d4932a3e38743e23af0?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/cee8089745b3e7d79c57d621cc634da71def3561fcf40d4932a3e38743e23af0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cee8089745b3e7d79c57d621cc634da71def3561fcf40d4932a3e38743e23af0?s=96&d=mm&r=g","caption":"3SL"},"sameAs":["http:\/\/www.threesl.com\/","https:\/\/x.com\/threesl"]}]}},"modified_by":"Jan Lamb","_links":{"self":[{"href":"https:\/\/www.threesl.com\/blog\/wp-json\/wp\/v2\/posts\/2574","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.threesl.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.threesl.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.threesl.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.threesl.com\/blog\/wp-json\/wp\/v2\/comments?post=2574"}],"version-history":[{"count":4,"href":"https:\/\/www.threesl.com\/blog\/wp-json\/wp\/v2\/posts\/2574\/revisions"}],"predecessor-version":[{"id":7536,"href":"https:\/\/www.threesl.com\/blog\/wp-json\/wp\/v2\/posts\/2574\/revisions\/7536"}],"wp:attachment":[{"href":"https:\/\/www.threesl.com\/blog\/wp-json\/wp\/v2\/media?parent=2574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.threesl.com\/blog\/wp-json\/wp\/v2\/categories?post=2574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.threesl.com\/blog\/wp-json\/wp\/v2\/tags?post=2574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}