Build an application
Purpose
Section titled “Purpose”Create a coherent metadata-driven application in the order required by its references, then expose it through forms, menus, permissions, and actions.
Prerequisites
Section titled “Prerequisites”- A working development environment; see Set up a development environment.
- A stable application name and artifact naming convention.
- A decision about how App/Model package exports will be reviewed and promoted between environments.
Build order
Section titled “Build order”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 --> T[Translations and Data Entities] C --> J[Hooks, Scripts, and Functions] J --> FCreate 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.
Procedure
Section titled “Procedure”- Create the App with Web Designer and verify that it has no implicit Model. AI tokens can target only Apps that already exist.
- Add its Models, dependencies, and Layer ownership explicitly.
- Define enums, tables, fields, references, and indexes.
- Define Views and Charts when the App needs reusable queries or visualizations.
- Define Forms, list fields, embedded Charts, menus, and Reports.
- Add Privileges (including Views), Duties, Roles, and App Access.
- Optionally add Translations and set the App
defaultLocale, and add Data Entities for documents that users exchange as spreadsheets. - Choose the smallest business-logic mechanism for each rule. Keep hooks and events synchronous and put awaited work in async Functions; see Record lifecycle.
- Validate metadata, App/Model scope, and cross-references.
- Test generated lists, Forms, new-record drafts, Charts, actions, permissions, and database effects.
- Export an App or Model package, or a selected-model deployment package, and commit it when the metadata needs source review or promotion.
Review and promotion
Section titled “Review and promotion”Use Web Designer for human authoring and reviewed AI REST proposals for automated assistance inside an existing App. Export App or Model packages when definitions require code review and version control. Use selected-model packages, in vendor or promotion mode, to move several Models between installations; business data, users, and licenses are not part of a package. Every path obeys the same metadata schema, security policy, and Extension boundaries.
Related topics
Section titled “Related topics”Metadata · Views and Charts · Security · Extensions · Functions and actions · Localization · Data Entities · Model deployment · Testing