ข้ามไปยังเนื้อหา

Build an application

หมายเหตุ: บทความนี้ยังเป็นภาษาอังกฤษ เนื่องจากคำแปลภาษาไทยกำลังอยู่ระหว่างจัดทำ

Create a coherent metadata-driven application in the order required by its references, then expose it through forms, menus, permissions, and actions.

  • A working development environment; see Set up a development environment.
  • A stable application name and artifact naming convention.
  • A decision about whether metadata is source-controlled or owned by Web Designer.
flowchart TD
A[App manifest] --> M[Models]
M --> L[Model layer]
L --> B[Enums]
B --> C[Tables and fields]
C --> V[Views]
V --> Z[Charts]
C --> D[Forms and reports]
Z --> D
D --> E[Menus]
E --> F[Privileges]
F --> G[Duties]
G --> H[Roles]
H --> I[Users and app access]
C --> J[Hooks, Scripts, and Functions]
J --> F

Create the App first; it starts with zero Models. Add and select a Model before any artifact. Then create referenced enums and tables before Views, Charts, Forms, Reports, menus, security, Scripts, or Functions. The registry validates App/Model scope and cross-references during application loading.

  1. Create the App with the CLI or Web Designer and verify that it has no implicit Model.
  2. Add its Models, dependencies, and Layer ownership explicitly.
  3. Define enums, tables, fields, references, and indexes.
  4. Define Views and Charts when the App needs reusable queries or visualizations.
  5. Define Forms, list fields, embedded Charts, menus, and Reports.
  6. Add Privileges (including Views), Duties, Roles, and App Access.
  7. Choose the smallest business-logic mechanism for each rule.
  8. Validate metadata, App/Model scope, and cross-references.
  9. Test generated lists, Forms, Charts, actions, permissions, and database effects.
  10. Export a package or commit the source-controlled metadata.

Use file-based metadata for application definitions that require code review, repeatable deployment, and version control. Use Web Designer for runtime or customer-owned customization. Both paths must obey the same metadata schema, security policy, and extension boundaries.

Metadata · Views and Charts · Security · Extensions · Functions and actions · Testing