How to retain the form in open mode when onclose dissatisfy?

chandrurecchandrurec Member Posts: 560
Hi all,

I am writing a code to check some conditions in on Close form trigger.When the condition satisfies, I dont want to close the form but the form should be in open state with the filters applied before closing the form.When the condition is not getting satisfied the form can close.

The coding I have written is as follows

ok := DIALOG.CONFIRM('Have you madde the Indent Qty to 0 ?');
IF not ok THEN

But Irrespective of whether the condition is satisfued or not, the form is getting closed.Is there any solution to retain the form when the condtion is not satisfied with the filters applied before closing the form.

Thanks in advance.



Sign In or Register to comment.