16. Complex Business Grids
The Problem
ERP grids combine columns, editing, selection, validation, commands, and business data rather than being simple HTML tables.
The Angular Difficulty
Angular is flexible for grids, but complex ERP grids normally require a grid/UI library and explicit configuration, data, events, and editing state.
Angular Approach
// A production Angular ERP grid is commonly supplied by a UI/grid library.
// The component owns columns, editing and events.
columns = [
{ field: "code" },
{ field: "name" },
{ field: "quantity" }
];
MS Approach
ManySet provides a direct runtime-oriented approach for this recurring business-application task.
const g = ms.form.grid();
g.fields = [
{ key: "Id", label: "ID" },
{ key: "Code", label: "Code" },
{ key: "Name", label: "Name" },
{ key: "Quantity", label: "Quantity" }
];
g.editFields = { Quantity: "int(0-9999)" };
Why this way is useful in business applications :
The comparison is intended to show where ManySet supplies a business-application abstraction around a recurring task, while keeping HTML and JavaScript visible and directly usable.
Key Point :
ManySet reduces the amount of framework-specific composition required for this particular task, without requiring the React/Angular mechanism to be represented as inherently wrong or incapable.