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() ); *] }