lazhen
2025-01-09 8afe90b633046db39042aada36b88193062f8cff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Quintiq file version 2.0
#parent: #root
Method SynchronizeData () id:Method_LibCal_pnlImportButton_SynchronizeData
{
  #keys: '[131094.0.1850058924]'
  Body:
  [*
    // Call SynchronizeData in the planning-dataset, providing the dataset that contains the imported data as input.
    // Also the context is provided, which can be used to determine which calendars are expected to be part of the import-data.
    // Calendars that are expected to be part of the import-data but are not, are considered to be deleted.  
    
    // By default do a full sync, i.e. assume that the imported data is the complete new situation,
    // so delete data that is not part of the imported data (anymore), even if the data was not created by a previous import.
    doDelete                 := true;
    keepIfNotCreatedByImport := false;
    
    LibCal_GlobalState.dhImportExport().Data().SynchronizeData( LibCal_ImportExportDataset, vhContext.Data(),
                                                                doDelete, keepIfNotCreatedByImport );
  *]
}