| Quintiq file version 2.0 | 
| #parent: Toolbar/btnImportExport | 
| Response OnClick () inherited id:Response_Toolbar_btnImportExport_OnClick | 
| { | 
|   #keys: '[108486.0.1414251234]' | 
|   BaseType => //DialogEDIImportExport/Response_Toolbar_btnImportExport_OnClick | 
|   Body: | 
|   [* | 
|     //set path to usersetting | 
|     ScenarioManager.UpdateUserSetting( EditorImportExportPath.Text() ); | 
|     Dialog.ApplyChanges(); | 
|     Dialog.EndModal(1); | 
|   *] | 
|   DefinitionID: 'Responsedef_GUIButtonBase_OnClick' | 
|   Precondition: | 
|   [* | 
|     value := true;                                                            | 
|      | 
|     if ( RadioButtonGroupExcelOrDataManager.BoundValue() = MPSyncUtility::ID_Source_DEF() ) | 
|     { | 
|       value := ScenarioManager::CanImportFromDataManager( feedback, | 
|                                                           ScenarioManager, | 
|                                                           CheckBoxSalesDemandsDM.Checked(), | 
|                                                           SelectionSalesDemand.Text(), | 
|                                                           RadioButtonGroupMPSCMode.BoundValue() = 'DEF', | 
|                                                           CheckBoxSC_MPParamsDM.Checked(), | 
|                                                           SelectionSC_MPSParams.Text(), | 
|                                                           CheckBoxSCPlanDM.Checked(), | 
|                                                           SelectionSCPlan.Text(), | 
|                                                           not Application.ClientFileExists( EditorMPSCExcelPath.Text() ) )                                                    | 
|     }   | 
|     else // 3DDrive or Excel | 
|     {      | 
|       value := DialogEDIImport.GetIsPathValid( feedback ) and Dialog.CanImport( feedback ); | 
|     }  | 
|      | 
|     return value; | 
|   *] | 
| } |