Quintiq file version 2.0
#parent: PanelExport_957/ButtonSearch
Response OnClick () id:Response_PanelExport_957_ButtonSearch_OnClick
{
  #keys: '[415136.0.1066488536]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebButton_OnClick'
  QuillAction
  {
    Body:
    [*
      columns     := construct( LibCal_SubscriberEventColumns );
      rows        := construct( LibCal_SubscriberEventRows );
      subscribers := dhSubscribers.Data();
      eventtypes  := dhEventTypes.Data();
      date        := dhDate.Data();
      traverse( dhCalendar.Data(), LibCal_SubscriberEventTable, table ){
        columns  := selectset( table, LibCal_SubscriberEventColumn, column, column.FilterByDatePeriod( date.Start(), date.End(), RadioButtonGroupUseForPlanning.BoundValue() ) );
        rows     := selectset( table, LibCal_SubscriberEventRow, row, row.FilterBySubscriberAndEventType( subscribers, eventtypes ) );
      }
      dhColumns.Data( &columns );
      dhRows.Data( &rows );
    *]
    GroupServerCalls: false
  }
}
