Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Batch Management

SaveRecipeSaveWC()

  • Last UpdatedJun 08, 2017
  • 1 minute read

This method saves the control recipe information for a batch as a recipe in the recipe database. This method should be called only if the batch has a status of Done. If a different user is provided for the DoneBy and Author parameters, the DoneBy user is used for the Author. If this happens, the SaveRecipeAuthorChanged event is called. The return code is a Short integer value that can be used for error handling.

For more information on the error codes returned, see "Error Return Values".

NOTE: You must use the SaveRecipeSaveWC() method when the DoneByComment and CheckByComment is made mandatory in the System Parameter.

Syntax

ReturnCode = OcxBatchVar.SaveRecipeSaveWC(CLB, RecipeId, Author, OptMask, Comment, DoneBy, CheckBy, DoneByPswd, CheckByPswd,

DoneByComment, CheckByComment)

Parameters

CLB

Data Type: String

Campaign, Lot, and Batch data separated by forward slash (/) characters

RecipeId

Data Type: String

Recipe ID

Author

Data Type: String

Recipe author

OptMask

Data Type: Long

Flag to set whether approvals and/or equipment is retained:

0 = Retain approvals
1 = Retain equipment

Comment

Data Type: String

Recipe version comments

DoneBy

Data Type: String

Done by user ID

CheckBy

Data Type: String

Check by user ID

DoneByPswd

Data Type: String

Done by password

CheckByPswd

Data Type: String

Check by password

DoneByComment

Data Type: String

Done by comment

CheckByComment

Data Type: String

Check by comment

Related Links
TitleResults for “How to create a CRG?”Also Available in