How do I catch "are you sure you want to delete" in EIP, ABC

How do I catch “Are you sure you want to delete…” in EIP, ABC?

Standard browse with EIP, need to catch the Delete button press…

While you’re waiting for an answer, abbrowse.clw might be interesting to look at.

1 Like

When you are saying “catch” what point are you talking about?
You can use the Browse.Ask or Browse.AskRecord methods to detect delete before anything is done.

1 Like

Rick,

I’m working on a Clarion application with an EIP. I need to capture the moment when a user receives the message ‘Are you sure you want to delete…’ and then chooses to either ‘OK’ or ‘Cancel.’ While I’m familiar with how to handle this in a standard browse-form, I’m unsure about the specific approach for EIPs.

You’re not going to be able to get right at the moment the user picks OK or Cancel. That message is actually coming from the relation manager Delete method. This is called in EIP in the BrowseEIPManager Init method.
You could derive the BrowseEIPManager and then derive the Init method and put your own code for handling delete and pass to the parent for other requests. Other than that, you’ll need to use the browse Ask or AskRecord method and look at the request type.

I meant to get the moment before and after the Message, so I will know request and respond