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 fill recipe with some data.
Now we will create a view and set active recipe on this view
We want to filter by name.
We add smart-input component into our view
As a type we can either select combo-box string or list-box string
Now as a tag we will click on “…” go into equations and then click on “variables”
We will select activeRecipeFilter1 (1 because the name is the first item which we have checked in active recipe selection on the view), press okay.
Now we need to set “dynamic items” scroll down a bit, now because we want to filter out the name we put a variable activeRecipeFilteredData[‘name’] inside.
Now we can insert component.
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.
So we will create a active area inside view without any init and then head to view script.
We will create a function
function openRecipeFilter(){
var options1={};
options1[‘type’]=”recipe”;
options1[‘screen’]=”activeRecipeShow”;
options1[‘target’]=1;
options1[‘textScale’]=100;
options1[‘rowFilter’]=true;
options1[‘disableFilterRow’]=false;
myscada.openCommand(options1);
}
Which will open up “Active recipe” in Active area when called.
Now head back to the view, on the smart-input component there is a option to use “callback function” which will call a function from view script when the selection of filter is done.
So 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.
Now if we download a project it will look like this:
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.
Now as you can see once we have selected item we can’t just go back and select the other recipe (Like if we miss-clicked or something).
There is a feature on smart input which solves this.
Simply just check “Add not selected item”.
And download the project once again.
Now we can select again but as you can see we have a “—” which gives us option to reset filter.
Vídeňská 186/118
619 00 Brno
Česká republika
IČO: 276 52 203
DIČ: CZ27652203
We often send out our newsletter with news and great offers. We will never disclose your data to third parties and you can unsubscribe from the newsletter at any time.
Unfortunately, we’re unable to offer free samples. As a retailer, we buy all magazines from their publishers at the regular trade price. However, you could contact the magazine’s publisher directly to ask if they can send you a free copy.
You can create a new account at the end of the order process or on the following page. You can view all of your orders and subscriptions in your customer account. You can also change your addresses and your password.
No, you don’t have to create an account. But there are a few advantages if you create an account.
You never have to enter your billing and shipping address again
Find all of your orders, subscriptions and addresses in your account
Download invoices of your orders
No, we don’t have a physical store location at the moment. We accept only orders through our online shop and we’re shipping all orders with the Swiss Post Service. Please visit our shipping section for more details.
From time to time you will find us at design fairs and popup markets in Switzerland. Subscribe to our newsletter and you’ll receive the latest news.
Pro zobrazení tohoto formuláře se musíte přihlásit.
Zadejte svůj e-mail, na který vám zašleme odkaz pro obnovení hesla.
We often send out our newsletter with news and great offers. We will never disclose your data to third parties and you can unsubscribe from the newsletter at any time.
Unfortunately, we’re unable to offer free samples. As a retailer, we buy all magazines from their publishers at the regular trade price. However, you could contact the magazine’s publisher directly to ask if they can send you a free copy.
You can create a new account at the end of the order process or on the following page. You can view all of your orders and subscriptions in your customer account. You can also change your addresses and your password.
No, you don’t have to create an account. But there are a few advantages if you create an account.
You never have to enter your billing and shipping address again
Find all of your orders, subscriptions and addresses in your account
Download invoices of your orders
No, we don’t have a physical store location at the moment. We accept only orders through our online shop and we’re shipping all orders with the Swiss Post Service. Please visit our shipping section for more details.
From time to time you will find us at design fairs and popup markets in Switzerland. Subscribe to our newsletter and you’ll receive the latest news.