Quintiq file version 2.0
#parent: #root
Method OnOK () id:Method_DialogEditSanityCheckGroup_OnOK
{
  #keys: '[137862.0.662947537]'
  Body:
  [*
    // OnOk
    // Disabled button to prevent the possibility of multiple firing
    btnOk.Enabled( false, '' )
    
    this.ApplyChanges();
    
    isbatchedit := DataHolderSelections.Data().Size() > 1;
    if( isbatchedit )
    {
      SanityCheckGroup::Update( DataHolderSelections.Data(), DataHolderDialogData.Data().View() );
    }
    else
    {
      DataHolderDialogData.Data().Commit();
    }
    this.Close();
  *]
}
