Quintiq file version 2.0
#parent: QueryGroupPanel/TaskQueryButton
Response OnClick () id:Response_QueryGroupPanel_TaskQueryButton_OnClick
{
  #keys: '[100828.0.15367247]'
  Body:
  [*
    // Query tasks
    if ( QueryFilteringCheckBox.Checkstate() = 0 )
    {
      list := ExternalModeledRunningTaskList::GetTaskList("", Duration::Zero());
      info('-------------------- 1 --------------')
      traverse( list, Elements, e )
      {
        info( 'Desc:', e.Description(),
              ' GUID:', e.GUID(),
              ' Start:', e.Start(),
              ' Type:', e.TaskType(),
              ' Trace:', e.Trace(),
              ' Duration:', e.Duration() );
      }
      Form.Data(&list);
    }
    else if ( QueryFilteringCheckBox.Checkstate() = 1 )
    {
      list := ExternalModeledRunningTaskList::GetTaskList(TypeFilteringEditor.Text(), DurationFilteringGUIDurationSelector.Duration());
      info('-------------------- 2 --------------')
      traverse( list, Elements, e )
      {
        info( 'Desc:', e.Description(),
              ' GUID:', e.GUID(),
              ' Start:', e.Start(),
              ' Type:', e.TaskType(),
              ' Trace:', e.Trace(),
              ' Duration:', e.Duration() );
      }
      Form.Data(&list);
    }
  *]
  DefinitionID: 'Responsedef_GUIButtonBase_OnClick'
}
