Solved

Message Box

Posted on 2001-06-20
3
219 Views
Last Modified: 2013-12-18
I am fairly new to Notes script, this is probably an easy question.

I have a button on the Notes toolbar that runs an archiving agent.  It has been requested of me that I create a message box when using the archive button that asks "Are you sure you want to archive the selected document(s)?"  With "Yes" or "No" as options.

How do I go about doing this?  Do I need a second agent to run the message box or can it run thru the same agent that archives the file to the nsf file?  Currently the button just runs a simple action sending the document to the nsf file.

Thanks for your help.
0
Comment
Question by:Pucktarget
[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
3 Comments
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 50 total points
ID: 6212233
Create a different agent which basically gives user a choice with this formula

Result := @Prompt([YesNo]; "Archive ?"; "This action will remove this document from this database, Do you want to continue");
@if( Result="1"; @Command( [ToolsRunMacro] ; "agent" ) ; "")

~Hemanth
0
 

Expert Comment

by:Gwr
ID: 6213061
Hi
The LotusScript(VB) version would then be:

  ans = Msgbox("This action will remove this document from this database, Do
you want to continue", MB_YESNO + MB_ICONSTOP ,"App Notice")

  if ans = 6 then
    ..send your file here..
    .
    .
  end if

Gwr
0
 

Author Comment

by:Pucktarget
ID: 6214376
Thanks for the help!!  I got it working.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Querying received e-mails from an agent 7 213
IBM Enterprise Integrator - ZID File 1 181
Only send email if contains "abcd" 3 154
Lotus Domino server 11 73
I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

752 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