10-17-2006 07:56 AM
10-19-2006 02:01 AM
Hello Kaan,
you have many files and you want to find them in DIAdem. Which version do you have? Are the files in search paths? Because it´s only possible to find files which are in search paths.
10-19-2006 03:35 AM
Hi Rebecca,
All the files are in search paths. I am trying to find the files which couldnt be indexed by DataFinder. I have DIAdem 10.0
As i mentioned before i wanted to search file through "index status" and find files with the property "eIndexedFailure" or "eIndexedTimeout"
but it is not possible.
cheers
Kaan
10-19-2006 05:58 AM
Hello again,
DIAdem can only find Files which are indexed. Perhaps you can make a file where you write all files in it, and make a new one after indexing and compare them??
10-19-2006 09:55 AM
Hi Kaan,
I remember answering this post yesterday, but today I don't see my answer. I must be getting senile. Oh well. The DataFinder can only see files in the declared Search Areas which also have a file extension that is on the "to-index" list. At that point the DataFinder will attempt to index that file. The File properties that store the indexing result are "File.ErrorLog", which contains any error message as a string, and "File.IndexStatus", which stores the indexing state as an enumeration integer:
eIndexedNotYet
eIndexedFailure
eIndexedSuccess
eIndexedTimeout]
Now, as I thought I explained yesterday (but can't find today), DIAdem 10.0 will not be able to search on this property, basically due to bugs in the interface between DIAdem and the DataFinder (though it's actually more complicated than that). The good news is that DIAdem 10.1 can search on these properties, both interactively and programmatically.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
11-02-2006 07:12 AM
11-03-2006 08:36 AM
Hi Kaan,
You should be able to search on it (I can), but it is a bit tricky. First of all, the "indexStatus" property does not show up in the drop-list of File properties, you have to know it exists and type it in yourself. Second, this is an integer property which expects enumeration strings, so any condition of the type File.IndexStatus=* will fail. Only the enumeration values I listed above will work in comparisons.
I have to admit, though, that I'm not sure when this was implemented. I know it works in the released DIAdem 10.1 (which I'm using now), and I know it doesn't work in DIAdem 10.1.0b2794 (which I also happen to have handy), but I'm not sure if it works in Beta2 or Beta3.
I have seen the promised land, though...
Brad Turpin
DIAdem ProductSupport Engineer
National Instruments
12-07-2006 07:50 AM
It should be available in 10.1 in beta 3 and it needs to be typed "indexStatus" without the space just as Brad said.
If you are using DIAdem 10.1, re-indexing is easier than with 10.0. Once you've found the files you want to reindex, call Browser.ReindexElement (accepts an Element as it is returned by a search for files.) Here's an example of reindexing the focused element in the browser:
Call Navigator.Display.CurrDataProvider.Browser.ReindexElement(Navigator.Display.CurrDataProvider.Browser.FocusedElement)
Hope that helps,
Myrle