Page('LOCKPAGE') and Page('UNLOCKPAGE')

This command locks the current Anveo Page for user input. Use this command in your Anveo Script if you expect long run-times.

PAGE('LOCKPAGE');
PAGE('UNLOCKPAGE');

example:
PAGE('LOCKPAGE');
--[[Do something here like SalesHeader creation…]]
PAGE('UNLOCKPAGE');
PAGE_OPEN('SALESORDER_CARD', SalesHeader, SalesHeader);

You have to unlock the user interface at the end of your script.