08-27-2015 04:20 AM
Hello
I need to increase the maximum search results, when i'm searching data with the Data Finder -> ValueMaxCount
I would like to set it to 2000
I tried tho change it with the help of the property page and the given example.
The result looks like this:
Set DataFinder = Navigator.ConnectDataFinder(Navigator.Display.CurrDataFinder.Name)
Set IndexedFileProperties = DataFinder.GetIndexedProperties(eSearchFile)
Set IndexedProperty = IndexedFileProperties("fileName")
Set ValueList = IndexedProperty.GetValueList
DataFinder.ValueMaxCount = 2000
Set ValueList = IndexedProperty.GetValueList
But the amount of serach result stays at 200
Am i refering to the wrong object or do i need to increase it at a certain time?
Regards
Janick
Solved! Go to Solution.
08-27-2015 05:00 AM
Hi Janick,
your script increases the number of values which are returned if you ask for all values indexed for a specific property (in the NAVIGATOR QueryForm you would receive this list with clicking on the ...-button at the right of one condition row).
To increase the maximum number of search results you would use the MaxCount property for the results elements.
DataFinder.Results.MaxCount = 2000 ' when searching without GUI
or
Navigator.Display.CurrDataFinder.ResultsList.Elements.MaxCount ' when searching with the NAVIGATOR GUI
Which version of DIAdem are you using? For DIAdem 2015 it is also possible to determine the maximum number of search results in the search method:
DataFinder.SearchElements(Query, 2000)
I hope this helps.
Have a nice day,
Eva
08-27-2015 05:33 AM
Hi
Thank You for your answer.
That's what i was looking for.
Now I receive the expectet result.
Janick