02-04-2019 08:17 PM
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
Solved! Go to Solution.
02-05-2019 12:20 AM
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
02-05-2019 07:39 PM
This is perfect, thank you!