refs #2703: Write element fields and add corect TransactionCode