{"id":53186,"date":"2023-10-05T13:55:08","date_gmt":"2023-10-05T11:55:08","guid":{"rendered":"https:\/\/www.myscada.org\/?post_type=docs&#038;p=53186"},"modified":"2023-12-20T18:06:10","modified_gmt":"2023-12-20T16:06:10","password":"","slug":"%e2%9c%b5-recipes-advanced","status":"publish","type":"docs","link":"https:\/\/amitomation.cz\/en\/documentation\/%e2%9c%b5-recipes-advanced\/","title":{"rendered":"\u2735 Recipes Advanced"},"content":{"rendered":"<p>Advanced recipes give you the option to combine recipes together with scripting and components such as smart input component, in that way you can do step-by-step filtering to make it more user friendly.<\/p>\n<p><strong>Using recipes together with smart input field:<\/strong><\/p>\n<p>First, we need to create a recipe as shown in the recipe section.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/myDESIGNER_NEW\/Screenshot_189.jpg\" alt=\"\" width=\"1917\" height=\"1036\" \/><\/p>\n<p>Then we fill recipe with some data.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/myDESIGNER_NEW\/Screenshot_190.jpg\" alt=\"\" width=\"1917\" height=\"1038\" \/><\/p>\n<p>Now we will create a view and set active recipe on this view<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/myDESIGNER_NEW\/Screenshot_191.jpg\" alt=\"\" width=\"1917\" height=\"1037\" \/><\/p>\n<p>We want to filter by name.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/myDESIGNER_NEW\/Screenshot_192.jpg\" alt=\"\" width=\"1918\" height=\"1040\" \/><\/p>\n<p>We add smart-input component into our view<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/myDESIGNER_NEW\/Screenshot_193.jpg\" alt=\"\" width=\"1918\" height=\"1036\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/myDESIGNER_NEW\/Screenshot_194.jpg\" alt=\"\" width=\"1074\" height=\"845\" \/><\/p>\n<p>As a type we can either select c<strong>ombo-box string<\/strong> or <strong>list-box string<\/strong><\/p>\n<p>Now as a tag we will click on <strong>&#8220;&#8230;&#8221;\u00a0<\/strong>go into equations and then click on &#8220;variables&#8221;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/myDESIGNER_NEW\/Screenshot_195.jpg\" alt=\"\" width=\"1073\" height=\"848\" \/><\/p>\n<p>We will select <strong>activeRecipeFilter1\u00a0<\/strong>(<strong>1<\/strong> because the name is the first item which we have checked in active recipe selection on the view), press okay.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/myDESIGNER_NEW\/Screenshot_196.jpg\" alt=\"\" width=\"1076\" height=\"849\" \/><\/p>\n<p>Now we need to set &#8220;dynamic items&#8221; scroll down a bit, now because we want to filter out the name we put a variable <strong>activeRecipeFilteredData[&#8216;name&#8217;]\u00a0<\/strong>inside.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/myDESIGNER_NEW\/Screenshot_197.jpg\" alt=\"http:\/\/myscada.org\/downloads\/manuals_image\/myDESIGNER_NEW\/Screenshot_197.jpg\" width=\"1239\" height=\"930\" \/><\/p>\n<p>Now we can insert component.<\/p>\n<p>To make it more automatic without need of user action we can also create a function in view script which will open up the active area with the filter which user select.<\/p>\n<p>So we will create a active area inside view without any init and then head to view script.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/myDESIGNER_NEW\/Screenshot_198.jpg\" alt=\"http:\/\/myscada.org\/downloads\/manuals_image\/myDESIGNER_NEW\/Screenshot_189.jpg\" width=\"1062\" height=\"842\" \/><\/p>\n<p>We will create a function<\/p>\n<p><strong>function openRecipeFilter(){<\/strong><\/p>\n<p><strong>var options1={};<\/strong><br \/>\n<strong>options1[&#8216;type&#8217;]=&#8221;recipe&#8221;;<\/strong><br \/>\n<strong>options1[&#8216;screen&#8217;]=&#8221;activeRecipeShow&#8221;;<\/strong><br \/>\n<strong>options1[&#8216;target&#8217;]=1;<\/strong><br \/>\n<strong>options1[&#8216;textScale&#8217;]=100;<\/strong><br \/>\n<strong>options1[&#8216;rowFilter&#8217;]=true;<\/strong><br \/>\n<strong>options1[&#8216;disableFilterRow&#8217;]=false;<\/strong><br \/>\n<strong>myscada.openCommand(options1);<\/strong><\/p>\n<p><strong>}<\/strong><\/p>\n<p>Which will open up &#8220;Active recipe&#8221; in Active area when called.<\/p>\n<p>Now head back to the view, on the smart-input component there is a option to use &#8220;callback function&#8221; which will call a function from view script when the selection of filter is done.<br \/>\nSo when the user select his recipe filter it will open up active area with selected filter and recipes which fits the filtered text or value.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/myDESIGNER_NEW\/Screenshot_199.jpg\" alt=\"http:\/\/myscada.org\/downloads\/manuals_image\/myDESIGNER_NEW\/Screenshot_189.jpg\" width=\"1530\" height=\"954\" \/><\/p>\n<p>Now if we download a project it will look like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/myDESIGNER_NEW\/Screenshot_200.jpg\" alt=\"\" width=\"1916\" height=\"1001\" \/><\/p>\n<p>As you can see inside listbox we display all the available recipe names now if we select one of them it will open up active area with filtered recipe.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/myDESIGNER_NEW\/Screenshot_201.jpg\" alt=\"\" width=\"1915\" height=\"998\" \/><\/p>\n<p>Now as you can see once we have selected item we can&#8217;t just go back and select the other recipe (Like if we miss-clicked or something).<br \/>\nThere is a feature on smart input which solves this.<br \/>\nSimply just check &#8220;Add not selected item&#8221;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/myDESIGNER_NEW\/Screenshot_202.jpg\" alt=\"\" width=\"1525\" height=\"952\" \/><\/p>\n<p>And download the project once again.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/myDESIGNER_NEW\/Screenshot_203.jpg\" alt=\"\" width=\"1918\" height=\"963\" \/><\/p>\n<p>Now we can select again but as you can see we have a <strong>&#8220;&#8212;&#8221;\u00a0<\/strong>which gives us option to reset filter.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/myDESIGNER_NEW\/Screenshot_205.jpg\" alt=\"\" width=\"1915\" height=\"998\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/myDESIGNER_NEW\/Screenshot_206.jpg\" alt=\"\" width=\"1912\" height=\"997\" \/><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Advanced recipes give you the option to combine recipes together with scripting and components such as smart input component, in that way you can do step-by-step filtering to make it more user friendly. Using recipes together with smart input field: First, we need to create a recipe as shown in the recipe section. Then we<a class=\"moretag excerpt orangelink\" href=\"https:\/\/amitomation.cz\/en\/documentation\/%e2%9c%b5-recipes-advanced\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":2555,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[325],"doc_tag":[],"class_list":["post-53186","docs","type-docs","status-publish","hentry","doc_category-mydesigner-v8"],"year_month":"2026-04","word_count":429,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Musilda","author_nicename":"musilda","author_url":"https:\/\/amitomation.cz\/en\/author\/musilda\/"},"doc_category_info":[{"term_name":"AMiTDesigner","term_url":"https:\/\/amitomation.cz\/en\/docs-category\/mydesigner-v8\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u2735 Recipes Advanced - AMiT Automation<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/amitomation.cz\/en\/documentation\/%e2%9c%b5-recipes-advanced\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u2735 Recipes Advanced - AMiT Automation\" \/>\n<meta property=\"og:description\" content=\"Advanced recipes give you the option to combine recipes together with scripting and components such as smart input component, in that way you can do step-by-step filtering to make it more user friendly. Using recipes together with smart input field: First, we need to create a recipe as shown in the recipe section. Then we[...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/amitomation.cz\/en\/documentation\/%e2%9c%b5-recipes-advanced\/\" \/>\n<meta property=\"og:site_name\" content=\"AMiT Automation\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-20T16:06:10+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/myscada.org\/downloads\/manuals_image\/myDESIGNER_NEW\/Screenshot_189.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/amitomation.cz\/en\/documentation\/%e2%9c%b5-recipes-advanced\/\",\"url\":\"https:\/\/amitomation.cz\/en\/documentation\/%e2%9c%b5-recipes-advanced\/\",\"name\":\"\u2735 Recipes Advanced - AMiT Automation\",\"isPartOf\":{\"@id\":\"https:\/\/amitomation.cz\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/amitomation.cz\/en\/documentation\/%e2%9c%b5-recipes-advanced\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/amitomation.cz\/en\/documentation\/%e2%9c%b5-recipes-advanced\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/myscada.org\/downloads\/manuals_image\/myDESIGNER_NEW\/Screenshot_189.jpg\",\"datePublished\":\"2023-10-05T11:55:08+00:00\",\"dateModified\":\"2023-12-20T16:06:10+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/amitomation.cz\/en\/documentation\/%e2%9c%b5-recipes-advanced\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/amitomation.cz\/en\/documentation\/%e2%9c%b5-recipes-advanced\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/amitomation.cz\/en\/documentation\/%e2%9c%b5-recipes-advanced\/#primaryimage\",\"url\":\"http:\/\/myscada.org\/downloads\/manuals_image\/myDESIGNER_NEW\/Screenshot_189.jpg\",\"contentUrl\":\"http:\/\/myscada.org\/downloads\/manuals_image\/myDESIGNER_NEW\/Screenshot_189.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/amitomation.cz\/en\/documentation\/%e2%9c%b5-recipes-advanced\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/amitomation.cz\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Documentation\",\"item\":\"https:\/\/amitomation.cz\/en\/documentation\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u2735 Recipes Advanced\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/amitomation.cz\/en\/#website\",\"url\":\"https:\/\/amitomation.cz\/en\/\",\"name\":\"AMiT Automation\",\"description\":\"Czech manufacturer of Control Systems and Industrial Automation Electronics\",\"publisher\":{\"@id\":\"https:\/\/amitomation.cz\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/amitomation.cz\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/amitomation.cz\/en\/#organization\",\"name\":\"AMiT, spol. s r.o.\",\"url\":\"https:\/\/amitomation.cz\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/amitomation.cz\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/amitomation.cz\/wp-content\/uploads\/2017\/07\/amit_automation_100x42.gif\",\"contentUrl\":\"https:\/\/amitomation.cz\/wp-content\/uploads\/2017\/07\/amit_automation_100x42.gif\",\"width\":100,\"height\":42,\"caption\":\"AMiT, spol. s r.o.\"},\"image\":{\"@id\":\"https:\/\/amitomation.cz\/en\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.linkedin.com\/organization\/10939938\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u2735 Recipes Advanced - AMiT Automation","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:\/\/amitomation.cz\/en\/documentation\/%e2%9c%b5-recipes-advanced\/","og_locale":"en_US","og_type":"article","og_title":"\u2735 Recipes Advanced - AMiT Automation","og_description":"Advanced recipes give you the option to combine recipes together with scripting and components such as smart input component, in that way you can do step-by-step filtering to make it more user friendly. Using recipes together with smart input field: First, we need to create a recipe as shown in the recipe section. Then we[...]","og_url":"https:\/\/amitomation.cz\/en\/documentation\/%e2%9c%b5-recipes-advanced\/","og_site_name":"AMiT Automation","article_modified_time":"2023-12-20T16:06:10+00:00","og_image":[{"url":"http:\/\/myscada.org\/downloads\/manuals_image\/myDESIGNER_NEW\/Screenshot_189.jpg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/amitomation.cz\/en\/documentation\/%e2%9c%b5-recipes-advanced\/","url":"https:\/\/amitomation.cz\/en\/documentation\/%e2%9c%b5-recipes-advanced\/","name":"\u2735 Recipes Advanced - AMiT Automation","isPartOf":{"@id":"https:\/\/amitomation.cz\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/amitomation.cz\/en\/documentation\/%e2%9c%b5-recipes-advanced\/#primaryimage"},"image":{"@id":"https:\/\/amitomation.cz\/en\/documentation\/%e2%9c%b5-recipes-advanced\/#primaryimage"},"thumbnailUrl":"http:\/\/myscada.org\/downloads\/manuals_image\/myDESIGNER_NEW\/Screenshot_189.jpg","datePublished":"2023-10-05T11:55:08+00:00","dateModified":"2023-12-20T16:06:10+00:00","breadcrumb":{"@id":"https:\/\/amitomation.cz\/en\/documentation\/%e2%9c%b5-recipes-advanced\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/amitomation.cz\/en\/documentation\/%e2%9c%b5-recipes-advanced\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/amitomation.cz\/en\/documentation\/%e2%9c%b5-recipes-advanced\/#primaryimage","url":"http:\/\/myscada.org\/downloads\/manuals_image\/myDESIGNER_NEW\/Screenshot_189.jpg","contentUrl":"http:\/\/myscada.org\/downloads\/manuals_image\/myDESIGNER_NEW\/Screenshot_189.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/amitomation.cz\/en\/documentation\/%e2%9c%b5-recipes-advanced\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/amitomation.cz\/en\/"},{"@type":"ListItem","position":2,"name":"Documentation","item":"https:\/\/amitomation.cz\/en\/documentation\/"},{"@type":"ListItem","position":3,"name":"\u2735 Recipes Advanced"}]},{"@type":"WebSite","@id":"https:\/\/amitomation.cz\/en\/#website","url":"https:\/\/amitomation.cz\/en\/","name":"AMiT Automation","description":"Czech manufacturer of Control Systems and Industrial Automation Electronics","publisher":{"@id":"https:\/\/amitomation.cz\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/amitomation.cz\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/amitomation.cz\/en\/#organization","name":"AMiT, spol. s r.o.","url":"https:\/\/amitomation.cz\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/amitomation.cz\/en\/#\/schema\/logo\/image\/","url":"https:\/\/amitomation.cz\/wp-content\/uploads\/2017\/07\/amit_automation_100x42.gif","contentUrl":"https:\/\/amitomation.cz\/wp-content\/uploads\/2017\/07\/amit_automation_100x42.gif","width":100,"height":42,"caption":"AMiT, spol. s r.o."},"image":{"@id":"https:\/\/amitomation.cz\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.linkedin.com\/organization\/10939938\/"]}]}},"_links":{"self":[{"href":"https:\/\/amitomation.cz\/en\/wp-json\/wp\/v2\/docs\/53186","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/amitomation.cz\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/amitomation.cz\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/amitomation.cz\/en\/wp-json\/wp\/v2\/users\/2555"}],"replies":[{"embeddable":true,"href":"https:\/\/amitomation.cz\/en\/wp-json\/wp\/v2\/comments?post=53186"}],"version-history":[{"count":2,"href":"https:\/\/amitomation.cz\/en\/wp-json\/wp\/v2\/docs\/53186\/revisions"}],"predecessor-version":[{"id":54795,"href":"https:\/\/amitomation.cz\/en\/wp-json\/wp\/v2\/docs\/53186\/revisions\/54795"}],"wp:attachment":[{"href":"https:\/\/amitomation.cz\/en\/wp-json\/wp\/v2\/media?parent=53186"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/amitomation.cz\/en\/wp-json\/wp\/v2\/doc_category?post=53186"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/amitomation.cz\/en\/wp-json\/wp\/v2\/doc_tag?post=53186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}