Quintiq file version 2.0 #parent: #root Method NewRecipeWithEffectiveDate ( internal[GUIComponent] parent, Product_MP owner, Recipe recipe ) as RecipeWithEffectiveDate id:Method_DialogCreateEditRecipeWithEffectiveDate_NewRecipeWithEffectiveDate { #keys: '[110994.0.979684255]' Body: [* // Create RecipeWithEffectiveDateInProduct // Set default values Dialog.SetDefaultValue( owner, recipe ); result := Dialog.DoModal( parent ); newobj := null( RecipeWithEffectiveDate ); if( result > 0 ) { newobj := RecipeWithEffectiveDate::Create( SelectionProduct.Data(), guard( SelectionRecipe.Data().Name(), '' ), GUIEffectiveDateSelector.DateTime().Date(), false ); } return newobj; *] }