Define And Save Recipes
Now that we've got the variables for our recipes, we need to tell HELIO that these variables make up a recipe type.
1. Define a Recipe Type
- Add a Recipe Type
Navigate to the Recipes View and…
- Click the
Add
button next to theRecipe Types
header on the left. - Name the recipe type
Product Recipe
.
- Add Parameters
- Set Permissions
2. Save Your First Recipe
Next, we'll save a first recipe of our new type. We will create a Parameter Page with all the values of our recipe type and a Save as Recipe Action button so that we can actually create different recipes with different settings quickly.
In a real world scenario, the parameters of a recipe type might actually be scattered all over your HMI and you may want to add a Save as Recipe Action button to your header or footer.
- Add a Parameter Page
Navigate to the Content View and…
- Add a Parameter Page and name it however you like.
- Add a Parameter with a Magic Input for each of our recipe parameters.
- Add a Button to the footer of the page, set its action to Save as Recipe Action,
and select our
Product Recipe
recipe type.
- Save A Recipe
Use the HMI Preview Panel and switch to Test
mode
in order to…
- set any values you like for the recipe parameters and click the
Save as Recipe
button. - enter a name for the recipe, for example "Recipe 1" and save.
- Save Another One
Hey, could you save another recipe with different values? That'll help us compare our first recipe to something else.
We've got some reusable recipes saved for later, and we'll learn how to load them next.