Selected Docs in search results view

We have a custom app where people select docs in a view and then run an action (toolrunmacro → LS agent)

The customer likes to 1st use a FT search and then deselect the docs they don’t want to process and then run the script. In v7 this worked and was intuitive.

In 8.02 it does not work so well since the search results view is not the same.

In the search results view the user can now select docs. (no more gutter)

Then they run the action thinking that only the selected docs will be processed but ALL docs in the search results are processed.

This is a big problem.

The method I use in the script is:

Set uiview = ws.CurrentView

Set docCollection = uiview.Documents

I have tried UnprocessedDocs dut it does not work. Only 1 doc returned.

How to you get a collection of selected docs in a search results view ??

Subject: Ok - found a solution

The agent needs to set to Target: All selected Docs. Then I use Unprocessed Documents in LS Agent