Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added version tags to URL

If you have developed an OWA under OpenMRS, then you can only access through OpenWebApps Module -> Manage Apps dashboard. So every time user wants to go there to open the required OWA. There is an easy way to maintain your OWA for the user's access, you can easily create an Icon for you OWA  on the reference application home page. Then, the user can simply click on that Icon to use the required OWA. 

...

Just edit on this following commands as your needs, and Insert into the Definition box in the Add App Definition window.

Code Block
languagejs
themeMidnight
languagejs
titleHome Page Link Config
{
    "id": "sysadmin",
    "description": "OpenMRS System Administration",
    "order": 0,
    "extensions": [
        {
            "id": "demoapp.homepageLink",
            "extensionPointId": "org.openmrs.referenceapplication.homepageLink",
            "type": "link",
            "label": "Sys Admin",
            "url": "owa/systemadminstration-1.1/index.html",
            "icon": "icon-list-alt",
            "requiredPrivilege": "Replace with a privilege name, or else remove"
        }
    ]
}

 Here,

TypeDescription
ID You can mention your OWA ID
DescriptionSimple description about your OWA
Order Order your Application Icon in the Reference application homepage (0,1,2,.....)
Label Text under your Icon on the home page
Url Which URL wanted to open when user click that Icon on the homepage (Should be added with the version tag in this format : owa/name-version/abcd.html)
Icon 

Which Icon wanted to show on the homepage.

You can see the available icons at http://demo.openmrs.org/openmrs/uicommons/icons.page.

...