Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Message Box

Posted on 2001-06-20
3
Medium Priority
?
225 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 150 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
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.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

719 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