Topic: onclose issue

Hi, first time question, so I hope to communicate well...
When I use the form event 'onclose' to 'click' a button on another form with a script it works when I click a 'close' button but not when I click the 'save' button which then closes the form.  Is there a script to save the form and then close?  The important thing is to trigger the 'onclose' script.

Thank you.

Re: onclose issue

Checked, OnClose event is triggered when click on button with action "SaveRecord"

Please, attach your project to your post (zip file without exe and dll), I'll check it.

Dmitry.

Re: onclose issue

the form in question is the "Job_Description_EDIT" when saving is not triggering the Form OnClose event.  Project attached.  I have version 1.51

Re: onclose issue

here is attachment

Post's attachments

Attachment icon find-A-badge - Copy.zip 26.14 kb, 444 downloads since 2015-06-08 

Re: onclose issue

Checked, event OnClose is triggered, try to add function ShowMessage for test, example:

procedure Job_Description_EDIT_OnClose (Sender: string; Action: string);
begin
       ShowMessage('Close');
       JS_Job.Button4.Click;
end;
Dmitry.