Infor LN DAL Hook Checklist for Developers
The data access layer (DAL) is where Infor LN rules should live when they must hold regardless of how data arrives. This checklist walks a developer or reviewer through hook choice, validation, transactions, performance and upgrade safety for a DAL script.
0 of 28 items complete
8 critical items still open - these are the highest-risk gaps.
Design and hook choice
Validation and error handling
Data integrity and transactions
Performance
Testing and upgrade safety
Count the items you can tick. Treat unticked critical items as blockers before promoting a DAL change to production.
Customization inventory help
Optional: discuss how to document DAL and 4GL customizations before an upgrade.
Optional. The tool and every export work without this. No spam.
How to use the checklist
Run it as a peer review before a DAL change goes to test and again before production. Tick each item you can confirm from the code or from a test, and treat unticked critical items as blockers. Attach the exported list to the change ticket so the reasons for each decision are traceable. It works equally well for a new hook and for reviewing an old customization you inherited.
Why the DAL, and what hooks are for
A DAL script sits on the table, so a rule there applies when a user saves in a session, when an import writes a record and when an integration calls the object. Hooks are the points where your code runs: object-level hooks around new, save and destroy, and field-level hooks for validation and defaults. Validation belongs before the change is stored, follow-up work after it. Exact hook names and parameters vary by version, so match them to your environment.
- Whole-record rules go on object hooks
- Single-field rules and defaults go on field hooks
- Keep each hook short and call functions for reusable logic
Common mistakes
The usual defects are rules written only in a session script, hard-coded error text, queries inside loops that make mass updates slow, and hooks that quietly swallow an error. Developers also forget non-UI paths: an import or a BDE that bypasses the screen but not the DAL can fail in unexpected ways when a hook assumes screen state. Test the hook through every path, measure with realistic volumes and keep an upgrade inventory so nothing is lost at the next release.
Frequently Asked Questions
What is a DAL in Infor LN?
The data access layer is a script attached to a table that enforces rules and defaults whenever data is created, changed or deleted, whether through a session, an import or an integration. It centralizes business rules instead of repeating them in each screen.
When should I use a DAL hook instead of a session script?
Use a DAL hook when the rule must apply on every path to the table. Use a session script for presentation and behavior specific to one screen. Many solutions combine them, with data rules in the DAL and user interface logic in the session.
Why is my DAL change slow on mass updates?
A hook runs for each record, so a query or heavy calculation inside it multiplies. Look for selects inside loops, missing index use and repeated lookups, and measure with realistic volumes before promoting the change.
Is this checklist valid for every LN version?
The review principles hold across versions, but hook names, parameters and tools differ. Check specifics against the documentation for your version and a known working script in your environment.
If you want a faster inventory and review of DAL and 4GL customizations across your LN estate, we can discuss an on-prem assistant that reads and summarizes them.
Related Tools
Infor LN 4GL Session Script Template
Generate a clean Baan / Infor LN 4GL session script skeleton with declaration, field, choice and table I/O sections.
Infor LN & BaanInfor LN Table Name and SQL Query Builder
Turn an LN logical table such as tcibd001 into the physical SQL table name with company suffix and a ready SELECT statement.
Infor LN & BaanInfor LN Regression Test Effort Calculator
Estimate test hours, defects and calendar weeks for an LN upgrade or change, and see how adding testers shortens the schedule.
Infor LN & BaanInfor LN Session and Module Code Reference
Searchable list of the Infor LN / Baan package and module codes (tisfc, tdsls, whinh and others) with what each one covers.
More Infor LN & Baan tools
See all- Infor LN Production Order Status and Lifecycle Reference
- Infor LN Company and Enterprise Unit Design Worksheet
- Infor LN Warehousing Order Origins and Types Reference
- Infor LN and Baan Customization Inventory Worksheet
- Baan to Infor LN Data Conversion Mapping Worksheet
- Infor LN User Role and Authorization Matrix Worksheet
- Infor LN Change Request Form Template
- Infor LN Session Test Script Template
- Infor LN Cutover Runbook Template