Hook Up Tips

Keep these tips in mind when calling Begin Document:

  • You must call a function at least once before calling Edit Line.

  • If errors occur during validation of the header field when the function is called, call the function again to verify that errors have been cleared before calling Edit Line.

  • If this function might be called multiple times from different events, include it on a hidden button on an application to reduce duplicate code and ensure consistency. This button might then be called from focus on grid because the user is then adding or deleting detail records, and is finished adding header information. In case of a Copy in which the user does not use the grid, this button might also be called on OK button.

  • Calling a button from an asynchronous event breaks the asynchronous flow and forces the button to be processed in synchronous mode (inline).