Day 5: How FormSchema Drives SQL Generation in a Definition-Driven ERP Framework
This post explains how a new form is created in a definition-driven ERP framework using only configuration files and no code, touching six places in total. The FormSchema is the only file written from scratch, while the remaining definition files are derived from it and adjusted. The framework uses the same FormSchema to build queries, assembling joins from relationship declarations, and to build saves, producing INSERT, UPDATE and DELETE statements from the field set. Relationships are declared between forms via program identifiers rather than physical table names, which the author argues makes the design easier to change. The article illustrates this with a generated SELECT query that joins an order table to customer and employee tables.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in