I have a situation where I update several records (n records) at once and send some kind of email summarizing the update process. The problem is my update method on the dmi is called (n times) which results to n emails. I searched this forum about how I can perform a bulk update with only one call to the DMI but to no avail.
Any advice will be highly appreciated.
Code:
... recordsList.setUpdateOperation("updatereviewdata"); RPCManager.startQueue(); for (int rowNum : recordsList.getAllEditRows()) { recordsList.getDataSource().updateData(recordsList.getEditedRecord(rowNum)); } recordsList.saveAllEdits(); RPCManager.sendQueue();
Comment