Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method ExportExcel ( 
 | 
  structured[String] brokernames, 
 | 
  structured[BinaryValue] binaryvalues, 
 | 
  String exportpath 
 | 
) id:Method_DialogExport_ExportExcel 
 | 
{ 
 | 
  #keys: '[136682.0.2056294528]' 
 | 
  Body: 
 | 
  [* 
 | 
    // Write the binary data of the respective  
 | 
    // file to its export destination 
 | 
    i := 0; 
 | 
     
 | 
    traverse( brokernames, Elements, brokername ) 
 | 
    { 
 | 
      broker := select( Domain, EDIDefinitionManager.BrokerDefinitions, broker, broker.Name() = brokername ); 
 | 
      filename := broker.Destination().astype( EDIXLSLinkDefinition ).FileName()  
 | 
      binarydata := binaryvalues.Element( i ).AsBinaryData(); 
 | 
      filepath := filename + ".xlsx"; 
 | 
      Application.Download( filepath, binarydata ); 
 | 
       
 | 
      i :=i+1; 
 | 
    } 
 | 
  *] 
 | 
} 
 |