Page 1 of 1

Recipe load from Controller

Posted: Fri May 22, 2015 6:49 pm
by cklim
Hi Mark

I worked on the code that the controller to trigger automatic download of recipe instead of trigger the recipe load through button. However, it does not seem to call out the recipe. Can you help to see what wrong with the code below?

public partial class Screen1
{
List<string> listRecipeNames = new List<string>();

void Button_TestRecipe_Click(System.Object sender, System.EventArgs e)
{
listRecipeNames.Clear();
Globals.RecipeUtility.GetRecipesNamesInTable("Recipe1", ref listRecipeNames);

if (listRecipeNames.Contains(Globals.Tags.RecipeName.Value.ToString()))
{
Globals.Tags.RecipeExists.SetTag();
Globals.Recipe1.LoadRecipe(Globals.Tags.RecipeName.Value);
}
else
{
Globals.Tags.RecipeExists.ResetTag();
}
}

Re: Recipe load from Controller

Posted: Wed Jan 29, 2020 2:17 pm
by Russ C.
Hello,

We understand that this is a very old post. If there is anyone who is still experiencing this or similar issues and require assistance, please visit us at https://www.beijerelectronics.us/en-US/ ... ___support or give us call at 801.708.6690.

Thank you.