Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: polished

What this module does

...

1.) Navigate to System Administration --> Manage Apps in the Administration UI.

2.) Disable the reportingui.reports, by clicking the "Stop" button next to the default Reporting App. If you don't stop the built-in app, you will see two Report icons after you create your custom one.

...

4.) Give it a name like "my.reportingui.reports".

5.) Copy the contents from the Default JSON Config, and paste it into the Definition (required) field on the Add App Definition you created in step 3 above.

6.) Edit the code you copied in and add additional JSON objects under "extensions". Specifically, you'd copy the thing that's currently attached to dataExports (see https://github.com/openmrs/openmrs-module-reportingui/blob/master/omod/src/main/resources/apps/reports_app.json#L361 see the code here) and: 

  • Set your own id
  • Set your own label
  • Set your own requiredPrivilege
  • Set your own URL (the URL should be "reportingui/runReport.page?reportDefinition={uuid}", but replace {uuid} with the actual uuid of the report that you want linked.)
  • Remove the "featureToggle" property

...