We use sparseUpdates="true" to avoid updating fields when the user hasn't made any changes, but this makes coding Velocity expressions in validators a real pain when they need to refer to multiple field values. There isn't a consistent way to refer to fields in the record being updated. If the user changed the field, the value you want to use is in $record.fieldName. But if they didn't change the field you need to use $dsRequest.oldValues.fieldName.
Is there some convenient way to refer to the merged set of values, so that if a field is in $record it comes from there, but if not it comes from oldValues?
Is there some convenient way to refer to the merged set of values, so that if a field is in $record it comes from there, but if not it comes from oldValues?
Comment