Solved

Hot-spot from an e-mail not working

Posted on 2003-12-01
4
273 Views
Last Modified: 2013-12-18
Hi There:

In my database I have a form that has a field set up as a hot spot.  The Click event runs an agent that opens another related document.  This works fine when in the database.  

However, there is also an action, 'Send and E-mail', that copies the form into an email message allowing the user to send out an email with the form in it. When the e-mail is received and opened the hot spot no longer functions properly.  An error is returned saying 'The specified agent does not exist'.  It should open the same related document from the database.

Any suggestions, explanations?

Thanks a lot,

Brad.
0
Comment
Question by:BECKETBM
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 63 total points
ID: 9852006
When you mail out the form, the related agents or script libraries are not mailed out. So you will get into these kind of problems..

In order to mail out fully functional document to the users follow these

1. Enable Store form in document form property
2. Don't externalize scripts (like agents, script libraries or use lsx)
3. Create all functions and scripts within the form and save it.

Now when you mail the document attach the form with document (look for Notesdocument.send in help)



~Hemanth
0
 
LVL 31

Assisted Solution

by:qwaletee
qwaletee earned 62 total points
ID: 9853165
Problem is that the hotspot calls an agent in the "current" database.  When in "your" database's form, that's the agent you wrote, and it works fine.  When in an e-Mail, it tries to find an agent by that name in the user's mail database, which does not work, of course.

So, you need the e-mail to contain enough hidden information to locate teh other database and possibly provide some content as to which document is being refereced. And youthen need to either:

1) put all the code in teh hotspot directly
or
2) have the hotspot open the agent in the source database

...and of course, it won't work at all if the mail user has a different server, or is working offline.

An example of some code that might work:

FORWARD CODE, setting source (s_) info:
docID := @Text(@DocumentUniqueID);
server := @Subset(@DbName;1);
path := @Subset(@DbName;-1);
@Command([MailForward]);
FIELD s_docID := docID;
FIELD s_server := server;
FIELD s_path := path;

HOTSPOT CODE:
agent := "My agent name";
ENVIRONMENT macroPassValue := s_docid;
@If(s_server = "" & s_path = ""; SKIP_DB_OPEN; @PostedCommand([FileOpenDatabase; s_server : s_path));
@PostedCommand([ToolsRunMacro]; agent);



You MAY have to change the agent so that it is sensitive to the environment variable.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
IBM Enterprise Integrator - ZID File 1 181
IBM SAN DS 3512 Controllers Networking issues 11 75
See used databases in Domino 8 110
Domino Website - Redirection 12 125
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question