Sorry about that, I was in a hurry when I wrote the piece and didn’t fact check it correctly.
You will need to call QRTE.getTrialData / QRTE.setTrialData. QRTEngine.setTrialData, unlike what is claimed in my previous post, does not exist (nor does QRTEngine.getBlockData etc.), hence the ‘undefined’ values.
Note that Trial Data is reset after each trial, so you would need to use Block Data