Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I test for the user choosing cancel on a delete window 1

Status
Not open for further replies.

rleiman

Programmer
May 3, 2006
258
US
Hi Everyone,

Can you tell me what code to use to test for the user choosing cancel after a delete confirmation window is displayed? This is the default window that is displayed when the user chooses the delete button from a form.

Thanks.

Emad-ud-deen Richard Leiman
 
Hi Emad,

The FORM is called from the browse in the WM.Run(Number, Request). When a form is OK'd the GlobalResponse is RequestCompleted and if the Cancel button is pressed, the GlobalResponse is RequestCancelled. On a Delete Action, the form is displayed ONLY if you have asked the FORM to display, otherwise the standard dialog "Do you want to delete the highlighted record?" is displayed. Either way, the best way to check is to see the GlobalResponse after the form has been called in the Browse i.e. the Run(Number, Request) method. Change the Embed View to Source to choose the proper embed.

Regards
 
Hi ShankarJ,

Thanks.

I will put that code in.

Truly,
Emad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top