cancel
Showing results for 
Search instead for 
Did you mean: 

Form Close Event

Former Member
0 Kudos
421

Hi,

I have a situation that when user closes the form( 'X' at top right corner of the UD form) , then i need to truncate the table.

Is there any event that works on when 'X' is clicked?

Thanks In advance

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member201110
Active Contributor
0 Kudos

Hi Ravii,

Here's how I tackle the problem of triggering code when a user closes a particular form:

http://scn.sap.com/thread/2006198

Kind Regards,

Owen

Former Member
0 Kudos

Yes,

When you click the red X, B1 will trigger the form_close event (you'll get both the before and afteer) and the form_unload event (before and after).

You can see that for yourself by downloading the Event Viewer executable which shows all the events associated with the instance of the currently running B1 client.  It shows them whether or not you are filtering for them in your addon or not.