Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

How handle Validation error in ajax call? #304


User avatar
0
omital created

Hi. How can I handle and view error validation to end user in right way ? for example suppose below code: vm.saveLab = function () { abp.ui.setBusy( null, labService.updateLab( vm.lab ).success(function () { abp.notify.info(abp.utils.formatString(localize("LabEditedMessage"), vm.lab.name)); $location.path('/lab/list'); }). error(function (data) { if (data.validationErrors != null && data.validationErrors.length>0) { ?????????????? } else abp.message.error('error'); }) ); };


1 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    See that answer: #308

    You can override showError and show validation errors to the user if you want.