Categories | Question details Back To List | ||
Data processor custom error I m using data processor to validate fields and update in server. I m posting the whole data in save functionality. The server side validates the values and throws error if in case any invalid values. There are cases where it can throw mutliple error. Suppose i update 4 rows and i get a response like <action type='error1'></action> <action type='error1'></action> <action type='error2'></action> <action type='update' sid='1' tid='1'></action> The server side code is handled such that it updates error free data. And the error type is handled in the jsp page with defineAction. The validations are done properly and even data is updated correctly. But the problem i face here is after the validation i get a java script error like this.getRowById(row_id) is null setRowTextNormal()()dhtmlxgrid.js (line 176) checkBeforeUpdate()(null)dhtmlxDa...cessor.js (line 15) setUpdatedTM()(null, false, undefined)dhtmlxDa...cessor.js (line 10) _getAllData()(null, null, "periodFrequencyError")dhtmlxDa...cessor.js (line 21) _getRowData()(Object, null, null, null, Object xmlDoc=XMLHttpRequest async=true mainObject=Object)dhtmlxDa...cessor.js (line 25) loadXMLString()()dhtmlxcommon.js (line 9) [Break on this error] r.childNodes[ind].style.cssText = pfix+...ow_id){if(this.getRowById(row_id)!=null) dhtmlxgrid.js (line 176) This is the function i have written to handle the error. function periodFrequencyError(smthing1,smthng2) { alert('Please select frequency lesser than the period'); return true; } Thank You Regards, Suganya. Answer posted by dhxSupport on Feb 17, 2009 09:00 We cant reproduce this issue locally. Please provide sample where this issue occurs at the support@dhtmlx.com Answer posted by Suganya T S on Feb 18, 2009 00:41 I got the problem. I was not stopping the dp on error and was returning true instead of false. Will get back to u if any more issues. Thank You. Regards, Suganya T S |