Import or export recipes at runtime

Use the RecipeImportExport NetLogic script to import recipes from a
CSV
file or export recipes to a
CSV
file at runtime.
  1. From the
    FactoryTalk Optix Studio
    toolbar, select
    Template libraries
    .
  2. In :
    1. Select
      Scripts
      .
    2. From the right pane, drag
      Recipes Import Export
      to a folder in the
      FactoryTalk Optix Studio
      pane.
      Drag
      Recipes Import Export
      to the
      Model
      folder.
    3. Select
      Close
      .
  3. In the pane, select the
    RecipeImportExport
    object.
  4. In the pane:
    1. In the
      RecipeSchema
      property, select the recipe schema of the reference object.
    2. In the
      CSVFile
      , enter the full path of the
      CSV
      file to import or export.
      C:\temp\export_recipes.csv
      NOTE: The fields of the
      CSV
      file to import must be the same as the database columns.
    3. In the
      CSVSeparator
      property, set the CSV delimiter.
    4. To delimit the fields with quotation marks in the
      CSV
      file, set the
      WrapFields
      property to
      True
      .
  5. Configure the buttons to trigger import or export:
    • Add a Button object in a container and associate its MouseClick Event with the NetLogic Import method.
    • Add a Button object in a container and associate its MouseClick Event with the NetLogic Export method.
    For more information, see Base control objects.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.