Object: DataFinder



DIAdem 2018ヘルプ


発行年月: 2018年6月
製品番号: 370858P-0112
製品情報を参照

ダウンロード (Windowsのみ)


DIAdem 2017 ヘルプ
DIAdem 2018 ヘルプ
DIAdem 2019 ヘルプ
DIAdem 2020 ヘルプ
DIAdem 2020 SP1 ヘルプ

The DataFinder object provides a DataFinder without using the DIAdem NAVIGATOR interface. You can run a Quick search and an Advanced search with the DataFinder object. Use the properties ResultsElements and ResultsProperties to access the search results.

Note  Use the ‎‏DataFinderDisplay object to execute a search on the Navigator interface.

The following example executes a quick search without the interface and loads the files it finds into the Data Portal:

Dim oMyCurrDataProvider, oMyQuery, oMyResults, Element, Output
Call Data.Root.Clear()
Set oMyCurrDataProvider = Navigator.ConnectDataFinder("My DataFinder")
Set oMyQuery = Navigator.CreateQuery(eTextQuery)
oMyQuery.Text = "Brake*"
Call oMyCurrDataProvider.SearchElements(oMyQuery)
Set oMyResults = oMyCurrDataProvider.ResultsElements
For Each Element in oMyResults
  Output = Output & vbcrlf & Element.Name
Next
Call MsgBoxDisp("Results Elements: " & Output)
Call Navigator.LoadData(oMyResults)

The following example executes an advanced search without the interface and loads the files it finds into the Data Portal:

Dim oMyCurrDataProvider, oMyQuery, oMyConditions, oMyResults
Call Data.Root.Clear()
Set oMyCurrDataProvider = Navigator.ConnectDataFinder("My DataFinder")
Set oMyQuery = oMyCurrDataProvider.CreateQuery(eAdvancedQuery)
Set oMyConditions = oMyQuery.Conditions
Call oMyConditions.Add(eSearchFile,"fileName","=","TR_M17_QT_*")
Call oMyConditions.Add(eSearchChannelGroup,"Test_Status","=","fail")
Call oMyConditions.Add(eSearchChannel,"maximum",">","45")
Call oMyConditions.Add(eSearchChannel,"minimum","<",23)
Call oMyConditions.Add(eSearchChannel,"Limit_High","=",50)
Call oMyConditions.Add(eSearchChannel,"unit_string","=","°C")
Call oMyCurrDataProvider.SearchElements(oMyQuery)
Set oMyResults = oMyCurrDataProvider.ResultsElements
Call Navigator.LoadData(oMyResults)


この記事は役に立ちましたか。

役に立たなかった