Recipe Save

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
Arch
Posts: 1
Joined: Mon Jul 22, 2019 8:18 am

Recipe Save

Post 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

User avatar
Russ C.
Posts: 213
Joined: Thu Nov 16, 2017 3:32 pm
Contact:

Re: Recipe Save

Post 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
}
Best regards,

Russ
(801) 708-6690
Technical Support
Contact Us

Beijer Electronics AB
http://www.beijerelectronics.us

Post Reply