Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Document save command

Status
Not open for further replies.

australia3

Technical User
Nov 9, 2004
64
GB
I want to be able to save a load of dcouments at the same time without going into each one. I have been told I can write an agent to help. Can anyone help me?
 
Use an agent, and add in the change you want in each document (Could be ANYTHING of course)

In e.g. (FORMULA agent)

FIELD PID := @If(@Length(PID) < 7; @Left(UniqueID; 5) + PID; PID);

In agent properties make sure the following are set:
- Action Menu Selection
- All SELECTED documents

Then you can run it on a small selection first to make sure that it does whart you want, and when satisfied, use CTRL+A to select all and use the agent from the Action menu in the view...

TrooDOS

 
Thanks for your response. i only want to be able to save each document and not change something. Would this still work? Please help!
 
Well, some kind of 'refresh' is needed to actually trigger a document update. Run something simple like:

FIELD From := From;
@True

which will not make any changes to the document, but still run an update... (Can be any fieldname of course)

Brgds,

TrooDOS
 
Sorry, but there is something I would like to have specified : are these documents open in the UI, or are they already in the view ?

You say that you want to save documents "without going into each one of them". If they are already there and you're not editing them, then you have no need to save them.

Unless you want them to refresh, in which case an agent with the formula @Command([ToolsRefreshSelectedDocs]) will do the trick.

Pascal.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top