title: How to filter/get Test Lab instances/configurations using cross filter in ALM using OTA API?
body: <p>Hi am trying to get a list of test configurations using complex filter I got from ALM GUI (its from the button Copy Filter Settings)</p>
  
  <pre><code>[Filter]{
  TableName:CYCLE,
  ColumnName:CY_CYCLE_ID,
  LogicalFilter:409,
  VisualFilter:409,
  NO_CASE:
  }
  {
  TableName:CYCLE,
  ColumnName:CY_FOLDER_ID,
  LogicalFilter:\0000001a\^Root\Test sety 01\Podzim^,
  VisualFilter:\0000001a\^Root\Test sety 01\Podzim^,
  NO_CASE:
  }
  {
  FLT:[X],
  TYPE:TESTSET-TSTEST,
  EXISTS_IN_IDS:Y,
  IN_IDS:\0000007a\[Filter]{
  TableName:TESTCYCL,
  ColumnName:TC_TESTER_NAME,
  LogicalFilter:username,
  VisualFilter:username,
  NO_CASE:
  }
  
  }
  </code></pre>
  
  <p>I only know how to filter easily using</p>
  
  <pre><code>TestConfigFactory.Filter.SetXFilter ("Value from database") = "Value"
  </code></pre>
  
  <p>I only found this example in OTA API Documentation:</p>
  
  <pre><code>' Get the Test filter object. This filter is unconditional.
  ' We want all the tests from the test set.
  '
      Dim testF As TestFactory, testFilter As TDFilter
      Set testF = tdc.TestFactory
      Set testFilter = testF.Filter
  
  ' Set the cross filter: All tests associated with the
  ' test sets that meet the criteria - in this case, the
  ' one test set whose name was passed to this routine.
      testFilter.SetXFilter "TEST-TESTSET", True, tsFilter.Text
  </code></pre>
  
  <p>Is there any way in ALM Customization to achieve it like this?:</p>
  
  <pre><code>   set testConfigFact = TDConnection.TestConfigFactory
     set testConfigFilter = testConfigFact.Filter
     testConfigFilter.SetXFilter ("SOMETHING") = [Filter]{
                  TableName:CYCLE,
                  ColumnName:CY_CYCLE,
                  LogicalFilter:igor,
                  VisualFilter:igor,
                  NO_CASE:
                  }
     set testConfigList = testConfigFilter.NewList()
     set testCfg = testConfigList.Item(1)
     msgbox "test config: " &amp; testCfg.ID
  </code></pre>