DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How to update the ActiveX Results Display in SUD

Hello, building a SUD which is using the ActiveX controls for the DataFinder Browser, Query, and Results Display, and I am having issues with (1) identifying the event which happens when I hit the "Search" button in the Query, and (2) getting the Results Display to update with the results of the query.


Below is some code I was testing, hoping to get some number of values in the msgbox, but I get an error at ".Search()" stating that in order to search I "need to have a  ResultsClient set". Which, I can't seem to figure out.

 

Sub actx_Query_EventInitialize(ByRef This) 'Created Event Handler

  Call actx_Query.X.OpenDataFinder(oMyDF.Name)
  actx_Query.X.Mode = eAdvancedQueryForm
  actx_Query.X.ReturnType  = eSearchFile
  Call actx_Query.X.Conditions.Add(eSearchFile,sPropTestLab,"<>","*")
  Call actx_Query.X.Conditions.Add(eSearchFile,sPropTestCell,"<>","*")
  Call actx_Query.X.Search()
  Set oMyResults = oMyDF.ResultsElements
  MsgBox oMyResults.Count
  
End Sub

 

0 Kudos
Message 1 of 1
(1,863 Views)