Can not find agent on current database

I have a problem finding agent on current db!!!

Right frame of the Frameset displayes results of the left frame which has a Page with Embedded Outline.

1st entry of outline displays view from current db.

2nd entry runs agent from current db.

3rd entry of outline displays view from different db.

Agent does: msgbox “Running”, that is all.

When I open db and click on “2nEntry” agent runs.

When I open “1stEntry” and then click on “2ndEntry”, it also runs.

But, when I open the “3rdEntry” (view from different db) and then click on “2ndEntry”, it does not run. I get message: “The specified agent does not exist.”

Then 2nd outline entry has:@Command([ToolsRunMacro];“MyAgent”).

I understand that in the last scenario notes looking for agent “MyAgent” in different db.

But, I cannot see, how to specify db name in the command…

Please, HELP

Thanks

Subject: Can not find agent on current database

Would @UpdateFormulaContext before the @Command([ToolsRunMacro];“MyAgent”)help?Alternatively, try calling the agent from LS.

hth

Tony

Subject: RE: Can not find agent on current database

@I did tryed to put @UpdateFormulaContext before and after @Command([ToolsRunMacro];“MyAgent”) but result is the same…

Calling agent from LS does not look possible:

This is an Outline Entry, Computed and I do not see any place to insert Lotus Script…

HELP, please…

Subject: RE: Can not find agent on current database

Sorry, that LS suggestion was stupid.Try putting @Command([FileOpenDatabase]; @DbName) before you invoke the agent - @dbname returns the name of the database containing the outline, and if that database is already open, it has no effect, but if the view from the external database was previously opened, this will be replaced by the internal one, but the agent will then run.

hth

Tony