@ixxxl,
Have you declared the table variable? Replace the table with the fd.control('dtMovements') and test the code.
fd.control('dtMovements')
Please also see this post to learn how to debug the code.