| Quintiq file version 2.0 | 
| #parent: #root | 
| StaticMethod CanExecuteImport ( | 
|   output String feedback_o, | 
|   MPSync mpsync, | 
|   Boolean isRefreshFromSource, | 
|   UserImportProfiles userImportProfiles | 
| ) declarative remote as Boolean | 
| { | 
|   Description: '(Web) Precondition to check import profiles can be executed' | 
|   TextBody: | 
|   [* | 
|     // 1. Check user import profiles can be executed | 
|     canExecute := UserImportProfile::CanExecuteImportProfiles( feedback_o, mpsync, isRefreshFromSource, userImportProfiles ); | 
|      | 
|     if( canExecute ) | 
|     { | 
|       // 2. Check user import profiles are configured | 
|       canExecute := not exists( userImportProfiles, Elements, e, UserImportProfile::IsIncompleteConfiguration( e ) ); | 
|       if( not canExecute ) | 
|       { | 
|         feedback_o := Translations::MP_Web_UserImportProfile_CanExecute(); | 
|       } | 
|     } | 
|     return canExecute; | 
|   *] | 
| } |