Solved

Message Box

Posted on 2001-06-20
3
211 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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks for the help!!  I got it working.
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

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
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

17 Experts available now in Live!

Get 1:1 Help Now