Navigation¶
navigator {
entry WoApp toplevel at index 0 {
label = "Work Order App";
entry WorkOrders;
entry Customers;
}
entry WorkOrders {
label = "Work Orders";
page WorkOrdersPage;
icon = "clipboard";
count = GetWorkOrdersCount;
}
entry Customers {
label = "Customers";
page CustomersPage;
icon = "person";
count = CustomersSet;
}
}
If only one entry is defined within the navigator, then it will be used as a default start page. This implies that the "dashboard" or "home" screen will not be shown on startup and in the navigation menu (side menu).
The count
keyword can be used in navigator entries to specify an entity set or a function which can be used to retrieve a value that is to be shown in the home screen (dashboard) item.
Limitations¶
Navigator hierarchy is not supported. Apps should use a minimal number of entries under a single main entry and they should use commands to drill down to other pages. If there are multiple entries defined, only the toplevel
entry is considered. If there are no toplevel
entries, then the first one is considered.