Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

prompt trap

Posted on 2004-11-02
4
Medium Priority
?
275 Views
Last Modified: 2013-12-18
Hello All,
I have a submit button on a form that sends the document into an approval process.  I want to trap the YESNOCANCEL Prompt before the emails are sent out.  Is there a test that I can do.  Here is the submit logic.
zekepmt := "A ZEKE Event Request will be generated and sent to GIS.";
mobispmt := "A Mobius Report Request will be generated and sent to GIS.";

@If(Prod_cklst_ZEKE_flag != "" & Prod_cklst_mobius_flag = "";
@Prompt([YESNOCANCEL];"ATTENTION - Review Submission Initiated.";"This Document has been submitted for GIS Turnover Review.  " + zekepmt + " Do you wish to Submit for Review ?");
Prod_cklst_ZEKE_flag = "" & Prod_cklst_mobius_flag != "";
@Prompt([YESNOCANCEL];"ATTENTION - Review Submission Initiated.";"This Document has been submitted for GIS Turnover Review.  " + mobispmt  + "   Do you wish to Submit for Review ?");
Prod_cklst_ZEKE_flag != "" & Prod_cklst_mobius_flag != "";
@Prompt([YESNOCANCEL];"ATTENTION - Review Submission Initiated.";"This Document has been submitted for GIS Turnover Review.  " + zekepmt + " & " + mobispmt   + " Do you wish to Submit for Review ?");
@Prompt([YESNOCANCEL];"ATTENTION - Review Submission Initiated.";"This Document has been submitted for GIS Turnover Review.  No Mobius or ZEKE Event forms have been generated.  Do you wish to Submit for Review ?"));

@MailSend("Paul R Ratigan/CIV/CSC"; "";"";"An Application Turnover Document has been Submitted for GIS Review.  Please refer to the doclink CM Review Mtg Date.";"";"Turnover Doc Link =>  "; [IncludeDoclink]);

@If(input1 != "" | Output1 != "";
@MailSend("Paul R Ratigan/CIV/CSC"; "";"";"An Application Turnover Document has been Submitted Containing External Interfaces that need to be Established or Reviewed.  Please refer to the doclink for Details.";"";"Turnover Doc Link =>  "; [IncludeDoclink]);"");

@SetField("Status"; "Submitted");
@Command([FileSave]);
@Command([FileCloseWindow])
0
Comment
Question by:pratigan
  • 3
4 Comments
 
LVL 31

Accepted Solution

by:
qwaletee earned 400 total points
ID: 12476110
answer1 := @Prompt([YesNoCancel]; ...... );
@If(answer1 <> 1; @Return(Cancelled); Continue);

0
 
LVL 4

Author Comment

by:pratigan
ID: 12476158
Excellent qwaletee.... Excatly what I was looking for.
Thank You !!
0
 
LVL 4

Author Comment

by:pratigan
ID: 12476289
How do I get this inside the if statement.
I want the prompt executed only on the first @IF but I can't put the := inside the if.  If I put it first I get multiple prompts.
then the trap runs.
0
 
LVL 4

Author Comment

by:pratigan
ID: 12483385
Hello qwaletee,
Got it working using the @Return() trap.  You gave the push in the right direction.
Thank you !
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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.
Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…
Suggested Courses
Course of the Month11 days, 16 hours left to enroll

564 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