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…
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.