Quintiq file version 2.0
#parent: #root
Response OnCreated () id:Response_DialogResetPlan_OnCreated
{
  #keys: '[146140.1.1022026793]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebComponent_OnCreated'
  QuillAction
  {
    Body:
    [*
      // Populate dropdownlist with the lastest reset optimizer puzzle
      
      // Find last used optimizer
      resetoptimizer := select( MacroPlan, OptimizerPuzzle, optimizer, optimizer.IsLastUsedReset() );
      
      if( isnull( resetoptimizer ) )
      {
        resetoptimizer := MacroPlan.OptimizerPuzzleWorld();
      }
      
      // Put optimizer in dialog
      DropDownListPuzzle.Data( resetoptimizer );
    *]
    GroupServerCalls: false
  }
}
