I know that on clicking the esc button the form will call for close method and if we write any validation in canclose and the form will not allow user to close the form until the validation gets filled as the canclose method will gets called first to close method.
So my question is,is there a way i can write the validation in canclose and user should be able to close the form using esc button eventhough the validation in canclose method doesn't gets filled?Please let me know.
Thanks for your help!!!
you can achieve it thru task method
i just make one example , please test it by ur side as well
declare 1 integer in class declaration
override task() on form and assign value of _taskId argument to new variable
public int task(int _taskId)
ret = super(_taskId);
esc = _taskId;
use this variable in canclose() to filter the code
public boolean canClose()
ret = super();
ret = false;
ret = true;