I'm facing the same problem like this question. But I have to send a post request to the backend first , to get the DB data for checking is the input in the pop-window already existed or not . It seems ,the code "args.cancel=true" can not work well if I put it after await.this.http.post....in a async onPopupClose method .I want know if you have any idea about this problem.
Please refer to the below sample where we have done this by making use of the popupOpen and popupClose events.
Thanks a lot.I get your point.By the way, is there any possible by make uses of onActionComplete method? It seems,Once I enter the onActionComplete method.The popup window will must be trun off.Am I right?
Yes WEIMIN. Once you enter the onACtionComplete method, the popup will be turned off. Since the added/updated data will be saved in the database before entering the onActionComplete, this is not possible to validate the data in the onActionComplete method. So we recommend you use the popupClose method to perform better data validation.