Page 1 of 1

Recipe Save

Posted: Mon Jul 22, 2019 9:31 am
by Arch
Is there a way to save a recipe without getting the prompt window " Recipe name exists. Do you want replace it"

I have some Local HMI descriptions which I store as a recipe so that they don't get lost on power down. On power up I load the recipe and re-populate all my description tags. However, sometimes the descriptions need to be changed, so I save them back to the same recipe with a button but I don't want that popup.

Thanks in advance

Re: Recipe Save

Posted: Tue Oct 22, 2019 2:26 pm
by Russ C.
Yes, in scripting you can pass a boolean parameter to the SaveRecipe() function to determine if the user confirmation dialog is shown:

Code: Select all

	
void Button_Click(System.Object sender, System.EventArgs e)
{
	Globals.Recipe1.SaveRecipe("RecipeTitle", false); //false suppresses user confirmation dialog
}