7. Setting up the mSupply Mobile app dashboard

mSupply Mobile has the capability to display store specific information as a Mobile dashboard. There is also a function to view data for other stores anonymised.

The Mobile dashboard is completely different to the mSupply Grafana web dashboard and is configured in a different manner.

Mobile dashboards are built on the idea of reusing the same report sets as the legacy (non-grafana) mSupply web dashboard. A lot of the legacy web dashboards can be used as mobile dashboards.

Mobile specific dashboard configuration

Dashboard reports are configured on the mSupply central server, refer Dashboard set up.

This section describes the additional configuration of reports on the mSupply central server to make dashboard reports show on mSupply Mobile. The mSupply central server generates reports on a schedule, and those reports that have been correctly configured for Mobile dashboards will be generated for mobile sites. These reports will be synced to mobile store tablets when they connect to the central server.

  • Once a report is configured to be sent to mSupply Mobile sites, it will be sent to every mSupply Mobile site that has the Dashboard store preference turned on.
  • Remember reports configured to be sent to mSupply Mobile sites will NOT be sent to the legacy (non-grafana) mSupply web dashboard.

Dashboard reports need the following properties added to them in order for them to show in the mSupply mobile stores.

Property Values Description
isMobile True or False This is the important one! This enables or disables sending this report to mobile sites.
When isMobile is True, Mobile dashboard reports are generated, and no legacy (non-grafana) mSupply web dashboard report is generated.
When isMobile is False, a legacy (non-grafana) mSupply web dashboard report is generated and no Mobile dashboard reports are generated.
reportType Table, BarChart, LineChart or PieChart The report display type. This parameter is mobile specific, but needs to be consistent with the report method's 'type'. If the reportType parameter is not set, it defaults to Table.
#[report property] [field on store table] This allows you to pick a value from the store table, which is therefore store specific, and assign the value to the report property. In this way you can create a report which is customised to each store. The report property must exist in your report for this to work. See report options for available reports and properties. See example below

Internal code logic description