Categories | Question details Back To List | ||
DataProcessor DeleteItem Hi , I am using this code to delete multiple items in one shot, myDataProcessor.setUpdateMode("off"); for(i=0; i<itemArr.length; i++){ myDataProcessor.serverProcessor="../serverURL?deleteClassIds="+itemArr[i]; myDataProcessor.setUpdated(itemArr[i],true); categoryTree.deleteItem(itemArr[i],categoryTree.getParentId(itemArr[i])); } myDataProcessor.sendData(); But the problem is -> itemArr[i] value is common in every request generated? whereas the same code is working fine with moving items. Is Deleting Item API is effecting it? Answer posted by Support on Feb 04, 2008 07:06 Please be sure that you not have dupplicates in itemArr, calling deleteItem two times against the same element, will delete element without waiting for data sync. with server. |