dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #38585
Re: Using OU-Tree inside a DHIS2 App
Just placed the modified ouwt.js file inside our app. Thanks!
Regards
harsh
On 15 July 2015 at 12:04, Harsh Atal <harsh.atal@xxxxxxxxx> wrote:
> 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
>
>
>
References