Solved

Hot-spot from an e-mail not working

Posted on 2003-12-01
4
264 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
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

759 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now