DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How to access optimized DataFinder property values in a script?

Solved!
Go to solution

Is it possible (and how) do I access optimized property values from a DataFinder?  In the interface, when I click on the "..." button to the right of the Value field, I'd like to access these values in a script.  

 

Or, I'd like to know all the unique possible values of a file property, in a script.

 

Thanks!

Julia

0 Kudos
Message 1 of 3
(2,138 Views)
Solution
Accepted by topic author JuliaDawkins

Its GetValueList that you are looking for.

 

option explicit

dim df : Set df = Navigator.ConnectDataFinder("My DataFinder")

dim query : Set query = df.CreateQuery(eAdvancedQuery)
query.ReturnType = eSearchFile
Call query.Conditions.Add(eSearchFile,"fileName","=","TR*")
  
dim authors : set authors = df.GetIndexedProperties(eSearchFile).Item("fileName").GetValueList(query)
dim i: for i = 1 to authors.Count
  LogFileWrite authors.values(i)
Next
Message 2 of 3
(2,115 Views)

This is perfect, thank you!

0 Kudos
Message 3 of 3
(2,099 Views)