Scenario:
Embedded view on a form (or page) has an action button that invokes a LS agent to work on selected documents. This works fine in a regular view.
Problem:
This action button returns the error: "Document has not yet been saved".
Solution:
In embedded views, the LS needs to be in the action button.