Lai,Risheng
2023-11-02 30c02e0c981b16be0918483543f4b812956c45d4
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 O_PreInitialize () derived id:Method_DialogExcelExport_O_PreInitialize
{
  #keys: '[144528.1.180086060]'
  BaseType: 'Method_LibSOPImpExp_DialogExcelExport_O_PreInitialize'
  Body:
  [*
    // TO OVERRIDE. If any pre-initialization to dialog before showing to user.
    // FindCreate export object to execute on server
    MacroPlan.CalendarImportExport().Export( Key::NextPersistentKey(), MacroPlan.CalendarRegistry().GetAllCalendars());
    exportObj := ExportExcel::FindCreate( MPSync, ApplicationScope.UserName(), guard( MacroPlan.MDSMacroPlan().Name(), '' ) );
    
    // Set export object into application dataholder (so that labels that depend on the dataholders are notified)
    ApplicationMacroPlanner.LibSOPImpExp_DataHolderExportBase().Data( exportObj );
    
    // Create the data sources for user to choose for export
    LibSOPImpExp_DataSource::CreateDataSources( MPSync, exportObj, true );
  *]
}