Recipes editor customization

Instead of using the default recipes editor, you can design a custom recipes management interface.

Tip: You can develop a custom recipes management interface based on the objects reused from the default recipes editor. For more information, see Reuse objects from the default recipes editor.

Graphical objects and scripts for ingredients

Important: While building your custom recipe management solution, you must include the objects from these NetLogic scripts.
Item Functions Usage

RecipesEditor object

  • Contains other graphical objects that enable you to manage recipes.

  • Defines the reference recipe schema

In the Properties pane, in the RecipeSchema property, select a recipe schema.

RecipesEditorUISetup NetLogic

Create the following set of objects for each ingredient of the selected recipe schema:
  • A Text box object with the name of the ingredient

  • The graphical object most suitable for changing the value of the ingredient, based on the ingredient data type (Text box, Spin box, Checkbox, Date and time or Duration).

    Note: At runtime, the value of this graphical object is copied automatically to the Edit model object.

To create the graphical objects, right-click RecipesEditor or RecipesEditorUISetup and select Execute Setup.

Stored recipes selection

Item Functions

RecipesComboBox object

  • Inserts the name of a recipe to store in the database associated with the recipe schema referenced in the RecipesEditor object

  • Displays the names of the recipes stored in the database

In RecipesComboBox, RecipesEditorComboBoxLogic NetLogic

  • Reads the data of the recipes stored in the database

  • Displays the recipes names in RecipesComboBox and displays the values of the ingredients

Recipes management

Note: The following button objects invoke the respective methods of the recipe schema object.
Item Function

SaveButton object

Save or update in the database the recipe written or selected in RecipesComboBox

In SaveButton, RecipesEditorSaveButtonLogic NetLogic

DeleteRecipeButton object

Delete the selected recipe from the database by using RecipesComboBox

LoadButton object

Load the selected recipe from the controller to the FTOptixApplication by using RecipesComboBox

ApplyButton object

Apply the selected recipe on the controller by using RecipesComboBox

Notifications

Object Function

OutputMessage object

When the user saves, deletes, loads or applies a recipe, an output message displays for five seconds.

Tip: To change the message retention time, double-click the RecipesEditorOutputMessageLogic NetLogic script and change the value expressed in milliseconds.

RecipesEditorOutputMessageLogic NetLogic