item.markAsUnchanged();
item.setValue(DcObject._ID, tblItems.getValueAt(row, colID, true));
item.setValue(field, tblItems.getValueAt(row, colValue, true));
try {
if (view.getType() == View._TYPE_SEARCH) {
item.saveUpdate(false, false);
} else if (view.getType() == View._TYPE_INSERT) {
view.updateItem(item.getID(), item);
}
} catch (Exception e) {
// warn the user of the event that occurred (for example an incorrect parent for a container)