Quintiq file version 2.0
#parent: #root
Method O_ImportCheckCanImport () derived id:Method_DialogExcelImport_O_ImportCheckCanImport
{
  #keys: '[144528.1.577704110]'
  BaseType: 'Method_LibSOPImpExp_DialogExcelImport_O_ImportCheckCanImport'
  Body:
  [*
    // Check if can import
    importObj := this.O_GetAppImportObject().astype( LibSOPImpExp_ImportExcel );
    missingFiles := construct( Strings ); // Track required files not uploaded by user
    
    canImport := importObj.CanImport( missingFiles );
    
    // Prompt missing files, let user decide if proceed or not
    if( not canImport )
    {
      // Inform user missing files
      message := Translations::MP_Import_MissingFiles( missingFiles.ToString( String::NewLine() ) );
      WebMessageBox::Question( Application, 
                               message, 
                               Translations::LibSOPImpExp_Dialog_Button_OK() );
    }
    
    return canImport;
  *]
}
