Hook Contents
Hooks are used to implement specific behavior in a business interface implementation.
For all hooks in a business interface implementation for LN, coding is done in the language as used in LN (Enterprise Server 8) scripts and libraries.
Each hook, except the Include Hook, contains a function body. So it does not include a function header or { }.
Each hook must:
- return(0) if successful;
- use dal.set.error.message(…) and return(DALHOOKERROR) if an error occurs. (Exception: method hooks on batch methods, do not need to use dal.set.error.message() but can provide a result XML structure instead if an error occurs, see Hooks for Batch Methods).
Hooks are edited in a context-sensitive source viewer within the Business Interface Implementation editor. The source viewer offers functionality for code completion, hovering for function usage, and open declaration.