Skip to main content
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:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

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.1 Windows 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.

How i rectify this error.

reply me


Thanks for ur previous reply

Sarangan




How to run agent in lotus script us... (~Holly Opkiskia... 21.Oct.03)
. . RE: How to run agent in lotus scrip... (~Maria Prerever... 21.Oct.03)
. . . . RE: How to run agent in lotus scrip... (~Holly Opkiskia... 21.Oct.03)
. . . . . . RE: How to run agent in lotus scrip... (~Andy Nimboosit... 21.Oct.03)
. . . . . . . . RE: How to run agent in lotus scrip... (~Holly Opkiskia... 21.Oct.03)
. . . . . . . . . . RE: How to run agent in lotus scrip... (~Vera Quetpones... 21.Oct.03)
. . . . . . . . RE: How to run agent in lotus scrip... (~Vera Quetpones... 21.Oct.03)
. . . . . . . . . . RE: How to run agent in lotus scrip... (~Holly Opkiskia... 21.Oct.03)
. . . . . . . . . . . . RE: How to run agent in lotus scrip... (~Vera Quetpones... 21.Oct.03)
. . . . . . . . . . . . . . RE: How to run agent in lotus scrip... (~Holly Opkiskia... 21.Oct.03)
. . . . . . . . . . . . . . . . RE: How to run agent in lotus scrip... (~Vera Quetpones... 21.Oct.03)
. . . . . . . . . . . . . . . . . . RE: How to run agent in lotus scrip... (~Holly Opkiskia... 21.Oct.03)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS