Quintiq file version 2.0
#parent: ListRun
Response OnClick (
  structured[LibOpt_Run] selection
) id:Response_ListRun_MenuCreateStatisticsAndIssues_OnClick
{
  #keys: '[142652.0.1830136418]'
  Body:
  [*
    // Create statistics and issues for the selected Runs.
    LibOpt_Run::CreateStatisticsAndIssues( selection );
    
    // Update data shown in Statistics form (if it's open).
    traverse( Application.Frame(), SubComponents.astype( LibOpt_FormStatistic ), formstatistic )
    {
      formstatistic.UpdateDataHolderStatistic();
    }
  *]
  CanBindMultiple: false
  DefinitionID => /ListRun/Responsedef_ListRun_Menu_OnClick
  Initiator: 'MenuCreateStatisticsAndIssues'
  Precondition:
  [*
    return LibOpt_Run::CreateStatisticsAndIssuesPreconditions( selection );
  *]
}
