This forum is closed to new posts and
responses. The content has been migrated to the Digital Solutions Community. Please join us there for new content as well as this content. For customer support, please visit the official HCL customer support channels below:
RE: How to run agent in lotus script using evaluate function ~Holly Opkiskiakoi 21.Oct.03 11:06 AM a Web browser Domino Designer 6.0.1Windows 98
Sir,
I give the example code for my problem.This code working correctly my main code will work perfectly.
The example code is:
In a view action button click event code
Sub Click(Source As Button)
Dim s As New NotesSession
Dim db As NotesDatabase
Dim agent As NotesAgent
Set db = s.CurrentDatabase
Set agent = db.GetAgent("test") 'Test is the agent name
If agent.Run = 0 Then
Messagebox "Agent ran",, "Success"
Else
Messagebox "Agent did not run",, "Failure"
End If
End Sub
My agent code : "Test"
Sub Initialize
Msgbox "Test the agent"
End Sub
I click the action button,the msgbox not display,but an error is display. The error is
Unsupported trigger and search in the background or embedded agent.
I run the agent using formula command runagent event the msgbox display correctly.