Find/Replace text on selected doc's in a View?

I would like go to a view, check the documents that I want to change and do the following by clicking on a button:

Change the text in the Dept text field from “Claims” to “Claims Center” for all documents that I checked in my view.

I opened my view in Notes Client, selected my documents and ran the following action I created:

@ReplaceSubstring(Dept;“Claims”;“Claims Center”)

But nothing happens? This function is new to me so Im sure I am missing something or doing something wrong. Can anyone help me out?

Subject: Find/Replace text on selected doc’s in a View?

place the formula in an agent and be sure that the setting is for selected documents only

create a button in the view you are using and place the following code for the button:

@command([toolsrunmacro]; “name of agent”)

Your code will work from there. You could also use: @setfield(“Dept.”; “Claims Center”) for the formula as well, but it must be in an agent first.

Subject: RE: Find/Replace text on selected doc’s in a View?

Jon, thanks a ton - you saved me a truck load of work and taught me a bit as well. I wish all my forum experiences were as good as this one!

BTW, I used your second option of “@SetField” and it worked great! Thanks for giving me two ways of doing it.

-Cheers.

Subject: RE: Find/Replace text on selected doc’s in a View?

glad to be of help

Cheers