icmobile. It does one job in three ways, and its source is small enough to read from the first line to the last. We counted a demo storeroom with it and counted the app itself in our MAF editor.MAS 9.2 series case study
We looked at the app on our test system, on the MAS 9.2 series, with IBM’s demo data. The numbers belong to that release and change with every new version of the app, so read them as a size. This case study follows the same plan as TECHMOBILE - The Technician App, and its table carries the numbers of Technician for comparison.
A count in four screens#
The app opens with a menu of three entries: count books, an ad hoc count, and the reconciliation.

A count book is a planned count. Somebody prepares it in Maximo Manage, with the items to count, and the person in the storeroom works through it. Our test system has no count book, so we took the second way.
An ad hoc count needs no preparation. The user picks a storeroom, and the app lists its items: 151 for the central storeroom of the demo data. Each card shows the item, its ABC type, the bin and the unit, and a field for the counted quantity with a minus and a plus button. Two tabs split the items into those still in progress and those counted.
The reconciliation compares what was counted with the balance in Maximo. Its two tabs separate the items that match from those that differ. We had counted nothing, so both tabs read 0.
The app in numbers#
We opened the source of the app in our MAF editor. Its structure view counts the app as the build sees it:
| Part | Inventory Counting | Technician |
|---|---|---|
| Pages | 6 | 28 |
| Datasources | 26 | 148 |
of these: maximo-datasource | 7 | 89 |
of these: maximo-datasource-override | 12 | 24 |
of these: json-datasource | 7 | 35 |
| Object structures | 6 | 26 |
| Dialogs | 6 | 91 |
| Sliding drawers | 3 | 22 |
| States | 71 | 147 |
| Controller classes | 11 | 50 |
| Methods in these classes | 145 | 1,012 |
| Ways from one page to another | 8 | 65 |
Lines in app.xml | 1,396 | 6,133 |
XML files, with app.xml | 2 | 49 |
| Lines in all XML files | 1,470 | 9,932 |
| JavaScript files, without tests and mock data | 14 | 118 |
| Lines in these JavaScript files | 4,302 | 43,613 |
Both apps as shipped with our system of the MAS 9.2 series, where Inventory Counting is app version 9.2.109 and Technician is app version 9.2.124. The lines are counted with wc -l over the source folder, the other rows by the structure view of our MAF editor.
The app has a tenth of the JavaScript of Technician and less than a quarter of its app.xml. Almost all of its markup is in one file. The whole app reads through six object structures.
One row stands out. The app has more overrides than plain maximo-datasource elements. It defines a datasource once, with its schema, and then uses it again with another saved query or another filter. Technician does the same for its work lists. Here the pattern shapes almost half of all datasources. The two tabs of the reconciliation are such a pair: two overrides with the same saved query and a different filter.
A good first app to read#
Most projects we see are about Technician, so a developer who starts with Maximo Mobile opens Technician first. That is the hardest start. Technician has 28 pages and more than 40,000 lines of JavaScript.
Inventory Counting has everything a real app has, in a size a person can hold in the head:
| What you want to see | Where it is in this app |
|---|---|
| a menu page that leads to the work | the start page |
| a list with a search field and tabs | the ad hoc count |
| a drawer that picks a value for the whole page | the choice of the storeroom |
| a datasource that is defined once and used several times | the overrides |
| a page controller with a clear job | eleven classes, about 13 methods each on average |
| a write that changes Maximo | the save of a count |
Read this app before you read Technician. The patterns are the same, and here they are easy to find.
Where the weight sits#
| Page | Datasources | Dialogs | Drawers | States |
|---|---|---|---|---|
| the start page | 2 | 0 | 1 | 0 |
| the list of count books | 0 | 1 | 0 | 2 |
| one count book | 0 | 2 | 0 | 17 |
| the ad hoc count | 3 | 1 | 1 | 12 |
| the reconciliation | 0 | 0 | 1 | 4 |
| the sync of records | 2 | 1 | 0 | 3 |
Parts declared on the page itself, in the same version of the app on the MAS 9.2 series. One more dialog belongs to the application.
The pages declare seven of the 26 datasources. All others belong to the application, so every page can use them. The page for one count book has the most states and the largest controller class.
How the pages connect#

Our MAF editor finds eight fixed ways between the six pages. Four more calls compute the name of the next page at run time. Follow these four in the running app before you change the navigation.
What the app asks of Maximo#
- Storerooms and balances. The ad hoc count lists the items of a storeroom from the inventory balances. Three datasources name the object structure
mxapiinvbal. - Count books. The planned count needs count books and their lines, which are prepared in Maximo Manage.
- The rights to adjust a count. A saved count changes inventory data, so the users of this app need the rights for that.
What to read next#
TECHMOBILE - The Technician App is the large app with the same patterns. Anatomy of a Maximo Mobile App explains the parts that the table of this case study counts.
IBM describes the Inventory Counting app in the documentation of Maximo Mobile, and count books in the documentation of the inventory applications of Maximo Manage.
