↓ Skip to main content
A gouache browser window with its frames nested one inside the next around a dashboard of six tiles, cabled to a server cabinet

Anatomy of a MAF Web App

Most people meet the Maximo Application Framework through Maximo Mobile, and then they conclude that MAF is a mobile technology. The majority of the apps that IBM ships on it never run on a phone. One of them is the Operational Dashboard, which replaces the Start Center, so every MAS customer meets it and sooner or later somebody has to change it.

MAS 9.2 series framework 3.2.8xx OPDASHBOARD 9.2.x

This is the twin of Anatomy of a Maximo Mobile App. Same cross-section, same order, and the other build target. Read them together and the second one is mostly a diff, which is the fastest way we know to learn either of them.

The specimens are OPDASHBOARD, because that is the one you will be asked about, and WOSUMMARY as a plain-app control, so that dashboard-specific things stay separate from web-app things.

Two kinds of version number appear on this page and they measure different things. The 3.2.8xx line is the framework version that most of the apps declare in package.json, and the 9.2.x number is OPDASHBOARD’s own build number in build.json. The mobile post carries the full spread of both.

Treat every figure here as a snapshot of a 9.2-series install. The pictures come from our test system. IBM ships a point release about every month, so details and version strings move. The architecture is the durable part. When you need an exact version, read it from your own system.

Three layers where the mobile app has five
#

Take the mobile stack, delete the container, and what remains is a web app.

d2 diagram d2 diagram

Three layers where the mobile app has five. The native package and the container app are gone with the whole offline stack, and the Manage UI shell stands where NAVIGATOR stood.

The deletions are the interesting part, because each one removes a whole category of problem together with a whole category of capability. Losing the sync engine removes the stale local snapshot, and it removes working offline. Losing NAVIGATOR removes the tile and the launch context, and it removes shell version skew. Losing the native bridge removes the camera plugin, and it leaves nothing to inherit from a parent frame.

What is exactly the same
#

More than people expect, which is the reason these two posts share a skeleton.

The root element is <maximo-application> on both targets, and pages are MAML documents referenced by file. Datasources are declared with a <schema> of <attribute> elements and they bind the same way on both. Controllers are plain classes resolved by name, and labels are generated into src/i18n/labels.json by the same tool. The build runs maxdev-cli and then graphite-cli, exactly as it does for a mobile app. Binding expressions, page state, dialogs and the lifecycle hooks all carry over without a change.

Modular structure follows the app’s age, and the build target has no part in it. There is one small app and one enormous app on each side.

Read on a 9.2-series install. The sizes move with every release; the spread across orders of magnitude is what lasts.

apptargetsrc/app.xml
OPDASHBOARDweba short manifest that references page files
TIMESHEETmobilea short manifest that references page files
WOSUMMARYweba monolith
TECHMOBILEmobilea monolith

Whether an app is a short manifest that references page files, or a monolith of thousands of lines, depends on when it was last rewritten and it says nothing about where it runs.

Here is OPDASHBOARD on our test system. The views are tabs across the top, and the open one, Maintenance management, shows its tiles: four KPI tiles, a KPI comparison chart and a list of the safety-critical backlog.

The Operational dashboard of Maximo Application Suite in a browser tab. Under the title, tabs for the views Default view, EMISSIONVIEW, ASSETMANAGERVIEW and MCIDASHBOARD and a menu for more. The open view, Maintenance management, marked Public, shows four KPI tiles (Overdue Emergency Work, Overdue PM Work, PM Performance, Health of Assets for PM Work), a Selected KPI comparison chart and a Safety critical backlog tile with no results.
OPDASHBOARD: views as tabs, the tiles of one view, on our test system

What is actually different
#

Across every mobile app and every web app of a 9.2-series install, with the generated label file and the ibm-config/ snapshot left out, the differences are these:

Element or attributeWhere you find it
<table>web apps only
<dashboard-view>web apps only
<chart>web apps only
<card-group>both, and clearly more in web apps
<data-list>both, and clearly more in mobile apps
mobile-qbe-filtermobile apps only, in most of them
offline-immediate-downloadmostly mobile apps, in a few web apps
graphite.platformdeclared in every mobile app, in no web app

The table row is the one to remember, because <table> never appears in a mobile app and appears in force across the web apps. RELENGINEER carries the most of them, and SERVICEVIEW, SERVICEDELIVERY and WOSUMMARY carry many. Port a screen from a web app to a mobile one and that row is most of your work estimate.

On the left is WOSUMMARY on our test system: a <table> with a filter field under every column header, filter chips above it and paging below it. On the right is a mobile <data-list> from our own explorer, on a phone. There a row is a tap target, and the list grows as you scroll.

On the left, the Work orders list of WOSUMMARY in a browser: filter chips for class, history, task and site, a table with the columns Work Order, Description, Location, Asset, Status, Scheduled Start and Type, a row of filter fields under the headers, and below the rows the paging control with 1–10 of 664 items and 67 pages. On the right, a phone with a Maximo Mobile list of work orders, each row a number, a description and a chevron.
A web table with filter row and paging, next to the mobile data-list that replaces it

The card is a web idiom too, and by a wide margin. Web apps use <card-group> several times as often as mobile apps do. The mobile signature is <data-list>, which the mobile apps use clearly more often than the web apps do, together with the complete absence of the table. Anybody who tells you that cards are the mobile pattern has looked at one side.

The build manifest tells the same story by omission, and it is worth reading carefully. OPDASHBOARD’s build.json holds routes and contexts and properties as empty, keeps hasMapPreload as false, and simply lacks navigatorTileOrder, mapMaxNumberTilesPreload, mobileVersion, winShell and winZipVersion. Those five missing keys are messages to a container that is not there.

One attribute that fails to discriminate, and it is the one you would bet on. lookup-data="true" marks an object structure for the mobile preload database. It appears in most of the mobile apps and in many of the web apps, on apps that can never have a preload database. It is inherited from copied datasource declarations and it means nothing there. Judging what an app downloads by the presence of this attribute will mislead you.

The thing everybody gets backwards
#

Entitlement by signature option is widely described as a web-app trait, and the shipped apps say the opposite.

In the shipped apps of the 9.2 series, app.checkSigOption(...) appears in most of the mobile apps and in only a few of the web apps. Widen it to every signature-option spelling, in markup as well as JavaScript, and it reaches nearly every mobile app and a good part of the web apps. So signature options gate features on both targets, and they are commoner on the mobile side.

They are more visible on a dashboard, which is where the impression comes from. A dashboard consists mostly of features, so its entitlement checks sit in the markup where a reader meets them immediately. On a mobile app the same checks are spread across a dozen pages of work order handling and nobody counts them.

The dashboard’s own unit of composition
#

Everything above applies to any web app, and this part is specific to OPDASHBOARD, which is what explains such a short manifest.

A normal MAF app composes pages, and a dashboard composes views inside one page instead.

d2 diagram d2 diagram

OPDASHBOARD: two pages, one of which holds six independently-filed dashboard views.

That short app.xml is mostly message definitions. The structural part is two <page> elements, two <maximo-datasource> elements and one <dialog>. Everything a reader thinks of as the dashboard lives in views/common/dashboard.xml, which is just as short and references six <dashboard-view> files.

Each view sits in its own directory under src/views/, and the persona is the organising idea:

  • maintmanager
  • assetmanager
  • emissions
  • civil/defects
  • mcidashboard
  • utilities

A common directory beside them holds the page and the shared datasources. The page also registers more than one controller, which a mobile page normally leaves alone.

<page id="Overview" controller="./views/common/controllers/PageController">
  <datasources id="shared" file="./views/common/datasources.xml"/>

  <controller  id="fleetcontroller" class="./views/fleet/controllers/FleetController.js"/>
  <datasources id="alerts"          file="./views/fleet/datasources/alertDatasources.xml"/>

  <dashboard id="dash_main"
             allow-runtime-editing="true"
             add-private="{app.checkSigOption(`INSERT_PRIVATE`)==true}">
    <dashboard-view id="FLEETVIEW"  file="./views/fleet/fleet.xml"/>
    <dashboard-view id="DEPOTVIEW"  file="./views/depot/depot.xml"/>
  </dashboard>
</page>

Three things in that fragment need an explanation, and the third one catches most people out:

  • A page can hold several controllers, and all of them take part in the resolution chain. A handler name that is unique inside your view can still collide with one on the page.
  • Entitlement is a binding expression here. add-private is evaluated like any other binding, so the signature option sits in the markup and no code branch holds it. That is easy to grep for, and easy to miss when you read only the controllers.
  • allow-runtime-editing lets the user rearrange what you built. A dashboard is the one MAF surface where the end user is also a layout author, and the arrangement is persisted server-side. Your view definition is the starting state, and the user owns what happens to it afterwards. Only a handful of the shipped apps set the attribute, and when we looked they were OPDASHBOARD, PLANNINGDASHBOARD and RELENGINEER.

The pencil of a view switches the dashboard into edit mode. A card gallery opens beside the view, with cards such as KPI trend, Table, Work queues and Map to drag in, and the view gets Cancel and Save. We opened it on our test system and left with Cancel.

The Operational dashboard in edit mode. The view Maintenance management shows Cancel and Save at its top right. On the right a Card gallery panel with the tabs Standard and Preconfigured, a search field and a list of cards: KPI trend, KPI comparison, KPI value, Value, Favorites, Quick actions, Table, Work queues, External content, Threshold tile, Gauge tile and Map, each with a plus.
OPDASHBOARD in edit mode: the card gallery a user adds tiles from

One more resolution mechanism greets you immediately in a web app. Shared resources are addressed by a scheme, and the path is resolved by the framework.

<maximo-datasource id="maxlib_locationDS"
                   file="maximo:common/datasources/location-hierarchy-datasource.xml"/>

That maximo: prefix resolves into the shared library declared in package.json under graphite.sharedResources, which many of the apps declare. The scheme itself is used in only a few apps, so the reuse is real and narrow. The most-reused resources are the adaptive lookup row layouts, then the location hierarchical lookup filter, the location hierarchy datasource and the location map layer datasource.

Where your changes go
#

This works exactly as in the mobile app, and it is worth repeating, because people get it wrong on both targets. The markup references a handler by name, the framework walks the page controllers, then the app controller, then AppCustomizations.js, and the walk continues past the first match. Every matching method runs, in order, and the running return value threads through all of them.

So AppCustomizations.js decorates the app instead of replacing anything in it. Define a method with IBM’s name and both methods run, with yours running second. To really intercept the call, give your method a new name, point the markup at it, and delegate on purpose.

// The names here are invented. Swap in whichever handler and datasource
// the view you are customizing actually uses.
export default class AppCustomizations {
  // Wired from your customized view as on-click="approveBudgetLineChecked".
  approveBudgetLineChecked(evt) {
    const ds = this.app.currentPage.datasources.budgetLineDS;
    if (!ds.item.costcentre) {
      this.app.toast('Set a cost centre before approving.', 'error');
      return;                                        // the original handler stays out of it
    }
    return this.callController('approveBudgetLine', evt);
  }
}

On a dashboard there is a second seam with no equivalent on mobile. You can add your own <dashboard-view> to the existing <dashboard> and leave all six of IBM’s alone. On the evidence of the app’s structure that is the cleanest customization point in it, and it is the one we would reach for first.

What to read next#

Start with the twin if you have not: Anatomy of a Maximo Mobile App.

What goes inside a dashboard view, meaning the tiles, the grid, the sixteen-unit sizing and the chart types, is its own series, and it starts with the Operational Dashboard overview.


IBM’s own component reference ships with every MAS install and almost nobody finds it. In the Application Configuration application, open the ? menu and choose Developer Documentation and Component Documentation. OPDASHBOARD’s app.xml carries a documentation-link attribute pointing at ibm.com/docs, which is the authoritative source for everything named above.