Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 21 Next »

Steps

For configuring exports, please follow the steps mentioned below

Install bahmni-endtb-batch rpm

Choose required version of rpm and install using the below sample command

Installing 1.1.0 version of rpm
yum install -y https://dl.bintray.com/bahmni/rpm/rpms/bahmni-endtb-batch-1.1.0-66.noarch.rpm

Add custom html page for Exports

One has to configure custom html page for exports.

Use the sample report.html

Add css and fonts

If you are using the sample html page mentioned above, then add the css and fonts required to /var/www/bahmni_config/openmrs/apps/exports

Please make sure the the reference to css is correct @ https://github.com/Bahmni/endtb-config/blob/master/report.html#L9

One can choose to make required changes to the html page (report.html) and add it to /var/www/bahmni_config/


Configure app on home dashboard

On Bahmni Home Dashboard, configure separate app for Exports. 

Please look at Home App#extension.json for understanding more about available fields to configure and customise the app

Please follow the sample code snippet and add similar section in home/extension.json


 Click here to expand the configuration...
"bahmni_exports": {

        "id": "bahmni.reports",

        "extensionPointId": "org.bahmni.home.dashboard",

        "type": "link",

        "translationKey": "MODULE_LABEL_EXPORTS_KEY",

        "url": "../../bahmni_config/report.html",

        "icon": "fa-download",

        "order": 6,

        "requiredPrivilege": "app:reports"

    }


Please make sure to configure URL key in above code snippet with the proper navigation url. In above code snippet, the navigation url is the location of url added in AddcustomhtmlpageforExports

"requiredPrivilege" holds the privilege required to view the app. This can be used to restrict the user access to this app.


On this Page

  • No labels