Quintiq file version 2.0
#parent: pnlActions/btnImport
Response OnClick () inherited id:Response_pnlActions_btnImport_OnClick
{
  #keys: '[144528.1.539475202]'
  BaseType: 'Response_pnlActions_btnImport_OnClick'
  DefinitionID: 'Responsedef_WebButton_OnClick'
  Precondition:
  [*
    // Precondition to import
    // btnImport unable to refresh if called from form method
    isdef := rbgImportSource.BoundValue() = MPSyncUtility::ID_Source_DEF();
    result := true;
    if( isdef )
    {
      result := Form.O_Precondition_Import( feedback );
    }
    else
    {
      result := ApplicationMacroPlanner.LibSOPImpExp_DataHolderImportBase().Data().astype( LibSOPImpExp_ImportExcel ).CanImport( feedback );
    }
    return result;
  *]
}
