Solved

Message Box

Posted on 2001-06-20
3
212 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Lotus Notes - Broken Links report 5 203
How to connect (using VBA) to a IBM Notes webmail server 3 232
lotus notes, exchange 7 108
Inconsistent date field in Lotus Notes 6 89
This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

910 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

22 Experts available now in Live!

Get 1:1 Help Now