DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Increase maximum number of query results

Solved!
Go to solution

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

 

 

 

0 Kudos
Message 1 of 3
(4,150 Views)
Solution
Accepted by topic author janicks

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

0 Kudos
Message 2 of 3
(4,142 Views)

Hi

 

Thank You for your answer.

 

That's what i was looking for.

Now I receive the expectet result.

 

Janick

0 Kudos
Message 3 of 3
(4,135 Views)