Quintiq file version 2.0
#parent: #root
Method ValidateInputOnlineScenarioNr (
  output String feedback_o
) as Boolean id:Method_ScenarioManager_DialogResourceManager_ValidateInputOnlineScenarioNr
{
  #keys: '[133968.0.226431972]'
  Body:
  [*
    // The number of online scenarios must be less than scenarios
    onlinescenarionr := ApplicationLibMacroPlanner.FormatStringToNumber( EditorMaxNrOfOnlineScenario.Text() );
    scenarionr := ApplicationLibMacroPlanner.FormatStringToNumber( EditorMaxNrScenarioAllowed.Text() );
    
    value := true;
    
    if( onlinescenarionr > scenarionr )
    {
      value := false;
      feedback_o := Translations::MP_Designer_SizingParam_InvalidOnlineScenarioNr( onlinescenarionr,
                                                                                   scenarionr );
    }
    
    return value;
  *]
}
