hongji.li
2023-11-07 1a1ba3ad5ed9e4380185aa1ccad20204a0e5f115
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Quintiq file version 2.0
#parent: CustomDrawComponent
Response OnClick () id:Response_CustomDrawComponent_MenuExport_OnClick
{
  #keys: '[132448.0.516479766]'
  Body:
  [*
    // Export view to XML file
    filename := Application.GetSaveFileName();
    xmlfile := OSFile::Construct( filename );
    if( not isnull( xmlfile ) and xmlfile.FileName() <> '' )
    {
      xml := DataHolderView.Data().XMLExportSupplyChainViewXML();
      Application.WriteTextFile( filename, xml )
    
    }
  *]
  CanBindMultiple: false
  DefinitionID => /CustomDrawComponent/Responsedef_CustomDrawComponent_Menu_OnClick
  Initiator: 'MenuExport'
  Precondition:
  [*
    return MacroPlan::HasMacroPlan( MacroPlan, feedback )
           and not isnull( DataHolderView.Data() );
  *]
}