Quintiq file version 2.0
#parent: ListIteration
Response OnClick () id:Response_ListIteration_MenuToggleIterationCalculation_OnClick
{
  #keys: '[139544.3.53250789]'
  Body:
  [*
    Form.ToggleHasIterations();
    
    Form.UpdateToggleButton();
  *]
  CanBindMultiple: false
  DefinitionID => /ListIteration/Responsedef_ListIteration_Menu_OnClick
  Initiator: 'MenuToggleIterationCalculation'
  Precondition:
  [*
    value := forall( DataHolderRun.Data(), Elements, run, run.HasIterations() );
    MenuToggleIterationCalculation.Checked( value );
    
    LibOpt_Run::ToggleHasIterationsPrecondition( DataHolderRunForButton.Data() );
    
    return DataHolderRunForButton.HasData()
        and DataHolderRunForButton.Data().Size() > 0
        and FeedbackObject::IsAllowedWithOverride( useroverride );
  *]
}
