MDL by Example
This part presents complete, self-contained MDL examples that show how the language comes together for real use cases. Each example is ready to run against a Mendix project.
Where Part III covers MDL syntax one statement at a time, these examples show full features built end to end – domain model, business logic, pages, and security working together.
Examples
| Example | What It Shows |
|---|---|
| CRM Module | Full CRUD feature: entities with documented attributes, associations, validation microflow, overview and edit pages, security |
| REST Integration | Call external APIs from microflows: GET/POST, headers, authentication, error handling, JSON responses |
| Data Import Pipeline | Connect to an external database, explore schema, import data with association linking, generate connectors |
| Master-Detail Page | Gallery with selection binding, detail form, save/cancel actions |
| Modifying Existing Pages | ALTER PAGE to add fields, change buttons, replace sections, drop widgets |
| Validation Pattern | Two-microflow validation with field-level feedback |
| Role-Based Security | Module roles, user roles, entity access with XPath row-level constraints, demo users |
| View Entities | OQL-backed aggregation with JOIN, filtered retrieval in microflows |