DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Determine in script when files added/updated on My DataFinder have been re-indexed

I want to be able to determine in a script when a set of files have been either indexed for the first time (new files added to My DataFinder), or when they have been updated (new properties, revised property values).  The function I have now uses the DIAdem extended file property "indexStatus", but it doesn't work in all scenarios. I cannot provide code example because I get Blocked by NI.

 

Does a better and more robust method exist?

20210719 NI forum post - file index status(1).png

0 Kudos
Message 1 of 5
(1,575 Views)

You can add the VBS script as a text file to your post.

That wat will be easy for you and the readers.

 

The DIAdem Advanced Course teaches you how to automate common tasks in the DIAdem panels with DIAdem’s standard VBScript commands. You also learn how to customize the DIAdem environment by creating user-defined dialog boxes, user commands, and custom menus, which enable you to use DIAdem as the basis for complex applications.

https://learn.ni.com/learn/learning-path/diadem-advanced-english

0 Kudos
Message 2 of 5
(1,486 Views)

Hi Mark,

 

can you please provide a bit more detail about the use-case?

Why is it important for your application if a file was indexed the first or for a second or third time?

 

Thanks (and greetings from cloudy Aachen ;-))

Stefan

0 Kudos
Message 3 of 5
(1,481 Views)

To clarify, my interest is to know when (by using a script) the indexing of a set of files has been completed.  The set of files may be new files added to the DataFinder search area, or existing files that have had their file properties modified.   I want to be sure the indexing is complete so I can generate (by script) a new Navigator search that will reference some of the new file properties in the files.  If indexing is not complete, the search results will be incomplete.  

0 Kudos
Message 4 of 5
(1,471 Views)

Hey Mark,

 

Have you ever worked with job file indexing in the DataFinder?  I don't know what polling/notification options exist for that approach, but at leas each collection of files is clearly defined in a file that the DataFinder knows when it's done with.

 

Brad Turpin

Principal Technical Support Engineer

NI

0 Kudos
Message 5 of 5
(1,209 Views)