New toolbar button and runagent command

Dear All,

I have created a new toolbar in Notes. I have created a new button in this toolbar.

This button runs the following formula command:

@Command([RunAgent];“MYAGENT”)

This new button must be accessible from the “Home” page of Notes, from the “Mail Inbox” view of Notes, from the “Calendar” view etc … In fact, this button must be accessible everywhere in Notes.

My problem is that MYAGENT (whose runtime Target has been set to “None”) is stores in bookmark.nsf and is not accessible from views other than the “Home” page.

If I store my agent in mail/usermail.nsf, then the agent is accessible from the “Mail Inbox” and “Calendar” view but not from the “Home” page.

Have you some ideas to share my agent everywhere in Notes? Or perhaps the agent concept is not the correct way for that?

Thanks for your help.

Mikaël Donini.

Subject: RE: new toolbar button and runagent command

You could have your formula open the bookmark file first, but what I generally do in cases like this, is put the code in the Queryopen or Postopen event of a form. Since the Compose command lets you specify in which database, this can be activated from anywhere.

Subject: RE: new toolbar button and runagent command

Thanks again for your precisous help …

Mikaël.