Question 150
An AL extension team encounters the following situation: A table field for a shipping code accepts arbitrary values even though only entries in a lookup table are valid. Which technical principle best explains the relevant risk or failure?
Explanation
Correct Answer
Data integrity belongs to the data model, not only to a single UI control. The corresponding corrective design is to define an appropriate TableRelation and validation logic for the field. A passing check is: Invalid codes are rejected through both UI and programmatic entry paths as required.
Incorrect Answers
This alternative addresses the separate case “A pageextension overrides a standard action label and unintentionally hides the original business operation from users”. Page-extension navigation should not create ambiguous or duplicate commands. The deciding requirement here is “Data integrity belongs to the data model, not only to a single UI control”.
The option would apply to “An app must show additional approval details only when a document is in the relevant lifecycle state”. The underlying mechanism is that conditional UI is helpful guidance, but it is not a substitute for business-rule enforcement. This question instead requires “Data integrity belongs to the data model, not only to a single UI control”.
The related but distinct situation is “An employee imports thousands of records into a custom list page and finds the page triggers too slow for bulk updates”. UI triggers alone are not a reliable boundary for batch or API-driven writes. For the stated problem, “Data integrity belongs to the data model, not only to a single UI control” addresses the central condition.