This tutorial shows how to create overview and edit pages for your entities.
Run scripts/02-create-entity.mdl first to create the Task and Category entities.
An overview page lists entities in a data grid:
mxcli -p App.mpr -c "
CREATE PAGE MyFirstModule.Task_Overview
(
Title: 'Tasks',
Layout: Atlas_Web_Content.Atlas_Default
)
{
LAYOUTGRID mainGrid {
ROW row1 {
COLUMN col1 (DesktopWidth: 12) {
DYNAMICTEXT heading (Content: 'Task Overview', RenderMode: H2)
}
}
ROW row2 {
COLUMN col2 (DesktopWidth: 12) {
DATAGRID dgTasks (
DataSource: MICROFLOW MyFirstModule.DS_GetOpenTasks
) {
COLUMN colTitle (Attribute: Title, Caption: 'Title')
COLUMN colStatus (Attribute: Status, Caption: 'Status')
COLUMN colDueDate (Attribute: DueDate, Caption: 'Due Date')
}
}
}
}
};
"See the MDL definition of any page:
mxcli -p App.mpr -c "DESCRIBE PAGE MyFirstModule.Task_Overview"mxcli exec scripts/04-create-page.mdl -p App.mpr- Microflow Logic -- Add business logic
- Linting & Testing -- Check quality