troubleshooting Question

Action on embedded view acts on doc containing the view, not the doc selected in the view

Avatar of HarryR3
HarryR3 asked on
Lotus IBM
5 Comments1 Solution1188 ViewsLast Modified:
Hi

I have a view with an action that calls a simple LotusScript agent that runs on all selected docs in the view.
It sets a new value to a field in each doc.
This new value is then visible in the view.

When I click the action it acts on the selected docs which it finds with dc = db.UnprocessedDocuments.
dc.Count is equal to the number of docs selected.

So far so good.

I have embedded this view in a form and create a doc with this form so the view can be seen in context (= 'context' doc)
Now, when I click on the action at the top of the embedded view, dc = db.UnprocessedDocuments returns only one document which is the current 'context' document, not the documents selected in the view.

I developed this agent earlier specifically to use withing the embedded view and am convinced it was working.

I have rebooted in case Notes had got confused but no change.

Why is this happening?
How can I make the view action in the embedded view actually act on the view docs?

This is stopping me progressing so any suggestions welcome.

Regards
Harry
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros