Need to reset table to page 1 with code

Any solution for this issue? I also need… (venko gligorov answer doen’t work for me)