Print, and set field of all selected docs in view

I want to execute a series of commands (print, and set a field), for all selected documents in a view, using an action button. However, when I click the button the documents print, but only one gets flagged as intended.

@Do(@Command( [FilePrint] ; “”; “”; “”; “”; “”; “MyPrintForm”; “pagebreak”; “resetpages”);

@SetField(“txtPrinted”; “Yes”))

Why won’t this work?

Subject: Print, and set field of all selected docs in view

Hi Karen, Try doing this via a agent and then run on selected documennts in a view.

Subject: RE: Print, and set field of all selected docs in view

I tried putting that formula in an agent, and also tried using simple actions in an agent, and calling it, but neither worked for me, so I found some LS code, and it’s working now.Thank you, though, for your suggestion, Kanchan. I appreciate it.