Mauro T Simoes 13.Apr.11 10:57 AM a Web browser Domino Designer6.5.4Windows 2003
Im trying to run this code in an agent MyAgent1.
Dim agent As NotesAgent
Set db = session.CurrentDatabase
Forall a In db.Agents
If ( a.Name = "myAgent2" ) Then
Set agent = a
Exit Forall
End If
End Forall
Call agent.RunOnServer
It is running on web. A form button triggers it.
The agent has LotusScript code and triggered by @command([ToolsRunMacro];"MyAgent1"). This agent runs on client and web and two internal functions select the appropriate classes.
MyAgent2 has two commands, like:
@SetTargetFrame("MyFrame1");@Command([OpenPage];"MyPage1")
It is intended to load MyPage1 into MyFrame1. MyPage1 has a view inside it, which selects docs created by MyAgent1, but in Domino log appears the following message:
04/13/2011 11:45:09 AM HTTP Server: Agent 'MyAgent1' error: Notes error: @Function is not valid in this context