it's because in a User Event script the variable i...
# suitescript
j
it's because in a User Event script the variable is newRecord not currentRecord