Does anybody know how to return the data from an agent that is called by a form’s WebQueryOpen event back to the calling form?
I want the agent to create a document collection which it then passes back to the form. The form then in turn needs to display the documents in an embedded view (like $$ViewBody).
Why don’t I use ?Searchview to do all this work you may ask? ?Searchview uses the Full-text index of the database so relies on periodic update. This is too slow for my purposes.
The document context indeed allows me access to the opening form. When I set a standard text field it all works fine, but I’m struggling with returning all document in my collection to the form in the following order:
Subject Date Who
doc 1 date 1 who 1
doc 2 date 2 who 2
etc…
The documents all need to be able to open as well when selected.
You could create a folder for the results of the agent and then return the folder name to the DocumentContext where you could use this to choose an embedded view.
The next problem would be when the folder should be deleted …