← Back to team overview

dhis2-devs team mailing list archive

Using OU-Tree inside a DHIS2 App

 

Hi

We are making a dhis2 App and have used the "ouwt.js" library for
displaying the ou tree inside of our app.  But for this a little change had
to be made in the ouwt.js file. This is the change(marked in red):-

.
.
18 if (dhis2BaseUrl == undefined){
19 var dhis2BaseUrl = "..";
20 }
21 var organisationUnitTreePath = dhis2BaseUrl + "/dhis-web-commons/ouwt/";
.
.

Then inside our app we change the context by  initializing dhis2BaseUrl  =
"../../../" so that the ajax call gets the right path.

Please consider this change.

Thank You
harsh

Follow ups