We have an integration situation where we need to set focus on the top document in a folder already open in a Main window.
This is a production process that run as follows:
-- The user has launched Laserfiche, and opens a folder with multiple documents.
-- The user starts by selecting a document.
-- From a separate terminal emulator, we index the document that the user has selected via a script run from the emulator (Blue Zone).
-- At that point, workflow whisks the indexed document away, and then there is no document selected.
--In addition, focus has returned to the terminal emulator, from where we ran the script that does the indexing
So far so good. At this point we would like to force the selection of the "next" document in the main window.
The problem is that we have not found a toolkit method, or even a windows method to to this. Lots of methods are available for the selected document, where the user has made the selection. But, our issue is different - we want to make the selection programmatically.
The only solution we have at the moment is to select all of the children of the parent folder, and iterate through them one by one. Is there a simpler approach available?
Thanks!