Quintiq file version 2.0
#parent: #root
Method ValidateInput (
  output String feedback_o
) as Boolean id:Method_ScenarioManager_DialogCreateEditStrategy_ValidateInput
{
  #keys: '[110880.5.2024207096]'
  Body:
  [*
    // Validate input for the dialog as shadows cannot use server method
    
    value := Strategy::ValidateInput( feedback_o,
                                      SelectionStrategy.Text(),       
                                      ScenarioManager,
                                      Dialog.Data().WrappedInstance(),
                                      1.0, //placeholder value for scaling factors since they're now edited in their own dialog
                                      1.0,
                                      1.0,
                                      1.0,
                                      1.0,
                                      Dialog.Data().DefaultNumberOfPeriodsForAvgDemand(),
                                      Dialog.Data().NumberOfPeriodsSmartPlan(),
                                      Dialog.Data().UseSlidingWindowsApproach(),
                                      Dialog.Data().NumberOfPeriodsInWindow(),
                                      Dialog.Data().NumberOfPeriodsPerSlide(),
                                      Dialog.Data().UseMetaOptimizer(),
                                      Dialog.Data().MetaOptimizerFirstLevelHasOverride(),
                                      Dialog.Data().MetaOptimizerLastLevelHasOverride(),
                                      Dialog.Data().MetaOptimizerFirstLevel(),
                                      Dialog.Data().MetaOptimizerLastLevel(),
                                      Dialog.Data().MetaOptimizerMaxNumberOfSecondsAllIterations(),
                                      Dialog.Data().MaxNrOfElemementsCampaignOptimizerCombi(), 
                                      Dialog.Data().MetaOptimizerIsCollapseLevel(), 
                                      Dialog.Data().MetaOptimizerCollapseLevelWeight() )
                                      and Dialog.ValidateLevels( feedback_o );
    
    return value;
  *]
}
