Quintiq file version 2.0
#parent: PanelPRDataButton/ButtonExportPR
Response OnClick () id:Response_PanelPRDataButton_ButtonExportPR_OnClick
{
  #keys: '[414384.0.859041698]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebButton_OnClick'
  Precondition:
  [*
    return not isnull( GlobalOTDTable ) and not isnull( MacroPlan );
  *]
  QuillAction
  {
    Body:
    [*
      tableBinaryData := PRData::ExportTheFileStream( MacroPlan ).AsBinaryData();
      Application.Download( "PRData.xlsx", tableBinaryData );
    *]
    GroupServerCalls: false
  }
}
