Somehow it worked when I changed this line ...
# suitescript
f
Somehow it worked when I changed this line pagedData.fetch({index: actualPage}).data.forEach(function (result) {