09-04-2024 07:53 AM
In a manual application plan in Perceptive, one of my field is assigned to a predefined list. I would like to know if it is possible to read what value was chosen in the list from a script when indexing the document?
When defining the indexes in the manual application plan designer, I added a simple vb script to display the content of the field
msgbox(Field1)
But it is always empty even when I pick an item from the list.
It works if the field is literal but not with a list.
Any suggestions?
Nathalie
09-04-2024 10:33 AM
Hi
Set INObj = GetObject(, "imagenow6.CtrlPanel")' Prerequisite to get the opened viewers instance IDcurViewer = INObj.INGetTopViewerInstance()msgbox INObj.INGetCurrentViewerKeys(curViewer)' Returns DocKeys string from specified Viewer. "^Drawer^Field1^Field2^Field3^Field4^Field5^Doctype^Docname^"
09-05-2024 04:59 AM
Hi Brandon,
Thanks for the quick response!
Sounds like a good solution, but I don't know where to use that code? Do I add it in a script in the application plan Field attribute window where you can add a vb script?
Nathalie
09-05-2024 06:42 AM
Hi
09-05-2024 07:37 AM
Hi Brandon,
Thanks a lot for your help.
When I copy your code in a vb Script and test it, I get the error :
Script error detected at line 1, position 0.
Description: Un composant ActiveX ne peut pas créer un objet : 'GetObject'
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.