Managing recipes
Creating a recipe
To create a recipe for your project:
- In ProjectView right-click Recipes and select Insert Recipe: an empty recipe is added. You create and configure recipes using the Recipe Editor.
Recipe editor
Path: ProjectView> Recipes > double-click RecipeName
Configuring recipe properties
In the Properties pane of each recipe you set the following parameters:
Parameter | Description |
---|---|
Recipe Name | Name of the recipe |
Number of sets | Number of values sets for each recipe element. Each set has a different configurable name. |
Setting up a recipe
- Click + to add an element of the recipe.
- Link the tags to each recipe element.
Defining recipe fields
Create a recipe field in the page using a numeric widget and attaching it to a recipe item after selecting Recipe as the Source.
In the Attach to dialog you have the choice of all the different recipe variables, such as:
- Current Recipe >Current Selected Recipe Set> Element > Value
- Selected Recipe > Selected Set0 > Element > Value
- recipeList
When numeric widgets are defined as read/write, the default recipe data can be edited at runtime. These new values are stored in a separate file as modified recipe data.
Note: Since JavaScript API functions are used, the recipe elements and sets can be referenced by name or by position. To avoid ambiguity between names and index, the names of the recipe elements and sets must include at least one alphanumeric character.
Storing recipe data
In the Recipe Editor click the storage type icon to select where to store recipe data: the Storage Device dialog is displayed.
For USB drive and SD card storage you can provide the folder location.
WARNING: Recipe configuration files are created automatically when the project is saved and stored in the data subfolder of the project. To use external storage devices, you need to copy this folder into the external device. Note that you have the responsibility to manage the data folder inside external devices. Even dynamic files are not deleted when project is updated using the “Delete dynamic file” option.
Important: You can add a subfolder but you must not rename the "data" subfolder.
Import/Export recipes
To import/export the recipes configuration of your project:
In ProjectView right-click Recipes and select Export Recipe or Import Recipe
The following formats are supported for import:
- Comma Separated Values (.csv)
- Unicode Text (.txt)
Note: Use the Unicode Text file format when you import a file modified using Microsoft® Excel®.