404 Error when trying to use the DHIS2 menu in an APP

Hi Devs

Please can you assist me in getting the DHIS Menu to display in my app?

I’m using dhis 2,25 build 8182981

and this is the error I receive on the console :-

jquery.min.js:2 GET http://localhost:9090/dhis/api/apps/api/me/profile.json 404 (Not Found)

send @ jquery.min.js:2

ajax @ jquery.min.js:2

dhis2.menu.ui.initMenu @ dhis2.menu.ui.js:960

(anonymous) @ dhis2.menu.ui.js:1266

(anonymous) @ dhis2.menu.ui.js:1268

jquery.min.js:2 GET http://localhost:9090/dhis/api/apps/dhis-web-commons/menu/getHelpPageLinkModule.action 404 (Not Found)

send @ jquery.min.js:2

ajax @ jquery.min.js:2

dhis2.menu.ui.initMenu @ dhis2.menu.ui.js:955

(anonymous) @ dhis2.menu.ui.js:1266

(anonymous) @ dhis2.menu.ui.js:1268

This is the script as per the DHIS2 documentation:-

This is the script with the relative path I am using:-

This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer. Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to disclaimer@hisp.org and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer.

Hi Devs

Any information to assist with this error?

Regards

Pooben

···

---------- Forwarded message ----------
From: Pooben Dass pooben@hisp.org
Date: Tue, Feb 21, 2017 at 12:41 PM
Subject: 404 Error when trying to use the DHIS2 menu in an APP
To: dhis2-devs dhis2-devs@lists.launchpad.net

Hi Devs

Please can you assist me in getting the DHIS Menu to display in my app?

I’m using dhis 2,25 build 8182981

and this is the error I receive on the console :-

jquery.min.js:2 GET http://localhost:9090/dhis/api/apps/api/me/profile.json 404 (Not Found)

send @ jquery.min.js:2

ajax @ jquery.min.js:2

dhis2.menu.ui.initMenu @ dhis2.menu.ui.js:960

(anonymous) @ dhis2.menu.ui.js:1266

(anonymous) @ dhis2.menu.ui.js:1268

jquery.min.js:2 GET http://localhost:9090/dhis/api/apps/dhis-web-commons/menu/getHelpPageLinkModule.action 404 (Not Found)

send @ jquery.min.js:2

ajax @ jquery.min.js:2

dhis2.menu.ui.initMenu @ dhis2.menu.ui.js:955

(anonymous) @ dhis2.menu.ui.js:1266

(anonymous) @ dhis2.menu.ui.js:1268

This is the script as per the DHIS2 documentation:-

This is the script with the relative path I am using:-

This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer. Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to disclaimer@hisp.org and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer.

Hi Pooben,

Those are old scripts, please try to remove them from your app and see if the error still occurs.

Regards,

···

On Fri, Feb 24, 2017 at 4:08 PM, Pooben Dass pooben@hisp.org wrote:

Hi Devs

Any information to assist with this error?

Regards

Pooben

---------- Forwarded message ----------
From: Pooben Dass pooben@hisp.org
Date: Tue, Feb 21, 2017 at 12:41 PM
Subject: 404 Error when trying to use the DHIS2 menu in an APP
To: dhis2-devs dhis2-devs@lists.launchpad.net

Hi Devs

Please can you assist me in getting the DHIS Menu to display in my app?

I’m using dhis 2,25 build 8182981

and this is the error I receive on the console :-

jquery.min.js:2 GET http://localhost:9090/dhis/api/apps/api/me/profile.json 404 (Not Found)

send @ jquery.min.js:2

ajax @ jquery.min.js:2

dhis2.menu.ui.initMenu @ dhis2.menu.ui.js:960

(anonymous) @ dhis2.menu.ui.js:1266

(anonymous) @ dhis2.menu.ui.js:1268

jquery.min.js:2 GET http://localhost:9090/dhis/api/apps/dhis-web-commons/menu/getHelpPageLinkModule.action 404 (Not Found)

send @ jquery.min.js:2

ajax @ jquery.min.js:2

dhis2.menu.ui.initMenu @ dhis2.menu.ui.js:955

(anonymous) @ dhis2.menu.ui.js:1266

(anonymous) @ dhis2.menu.ui.js:1268

This is the script as per the DHIS2 documentation:-

This is the script with the relative path I am using:-

This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer. Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to disclaimer@hisp.org and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Viet Nguyen

Software Developer, DHIS 2

University of Oslo

http://www.dhis2.org

Hi Viet Nguyen

I am trying to get the DHIS2 menu to display in my app, if I remove these scripts - what script library to I need to replace it with?

Regards

Pooben

This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer. Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to disclaimer@hisp.org and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer.

···

On Mon, Feb 27, 2017 at 10:20 AM, Viet Nguyen viet@dhis2.org wrote:

Hi Pooben,

Those are old scripts, please try to remove them from your app and see if the error still occurs.

Regards,

On Fri, Feb 24, 2017 at 4:08 PM, Pooben Dass pooben@hisp.org wrote:

Hi Devs

Any information to assist with this error?

Regards

Pooben

---------- Forwarded message ----------
From: Pooben Dass pooben@hisp.org
Date: Tue, Feb 21, 2017 at 12:41 PM
Subject: 404 Error when trying to use the DHIS2 menu in an APP
To: dhis2-devs dhis2-devs@lists.launchpad.net

Hi Devs

Please can you assist me in getting the DHIS Menu to display in my app?

I’m using dhis 2,25 build 8182981

and this is the error I receive on the console :-

jquery.min.js:2 GET http://localhost:9090/dhis/api/apps/api/me/profile.json 404 (Not Found)

send @ jquery.min.js:2

ajax @ jquery.min.js:2

dhis2.menu.ui.initMenu @ dhis2.menu.ui.js:960

(anonymous) @ dhis2.menu.ui.js:1266

(anonymous) @ dhis2.menu.ui.js:1268

jquery.min.js:2 GET http://localhost:9090/dhis/api/apps/dhis-web-commons/menu/getHelpPageLinkModule.action 404 (Not Found)

send @ jquery.min.js:2

ajax @ jquery.min.js:2

dhis2.menu.ui.initMenu @ dhis2.menu.ui.js:955

(anonymous) @ dhis2.menu.ui.js:1266

(anonymous) @ dhis2.menu.ui.js:1268

This is the script as per the DHIS2 documentation:-

This is the script with the relative path I am using:-

This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer. Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to disclaimer@hisp.org and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Viet Nguyen

Software Developer, DHIS 2

University of Oslo

http://www.dhis2.org

Hi Pooben,

Please take the below file as an example. It’s the main page of the dashboard-app.

https://raw.githubusercontent.com/dhis2/dashboard-app/master/index.html

Regards,

···

On Mon, Feb 27, 2017 at 3:44 PM, Pooben Dass pooben@hisp.org wrote:

Hi Viet Nguyen

I am trying to get the DHIS2 menu to display in my app, if I remove these scripts - what script library to I need to replace it with?

Regards

Pooben

This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer. Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to disclaimer@hisp.org and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer.

On Mon, Feb 27, 2017 at 10:20 AM, Viet Nguyen viet@dhis2.org wrote:

Hi Pooben,

Those are old scripts, please try to remove them from your app and see if the error still occurs.

Regards,

On Fri, Feb 24, 2017 at 4:08 PM, Pooben Dass pooben@hisp.org wrote:

Hi Devs

Any information to assist with this error?

Regards

Pooben

---------- Forwarded message ----------
From: Pooben Dass pooben@hisp.org
Date: Tue, Feb 21, 2017 at 12:41 PM
Subject: 404 Error when trying to use the DHIS2 menu in an APP
To: dhis2-devs dhis2-devs@lists.launchpad.net

Hi Devs

Please can you assist me in getting the DHIS Menu to display in my app?

I’m using dhis 2,25 build 8182981

and this is the error I receive on the console :-

jquery.min.js:2 GET http://localhost:9090/dhis/api/apps/api/me/profile.json 404 (Not Found)

send @ jquery.min.js:2

ajax @ jquery.min.js:2

dhis2.menu.ui.initMenu @ dhis2.menu.ui.js:960

(anonymous) @ dhis2.menu.ui.js:1266

(anonymous) @ dhis2.menu.ui.js:1268

jquery.min.js:2 GET http://localhost:9090/dhis/api/apps/dhis-web-commons/menu/getHelpPageLinkModule.action 404 (Not Found)

send @ jquery.min.js:2

ajax @ jquery.min.js:2

dhis2.menu.ui.initMenu @ dhis2.menu.ui.js:955

(anonymous) @ dhis2.menu.ui.js:1266

(anonymous) @ dhis2.menu.ui.js:1268

This is the script as per the DHIS2 documentation:-

This is the script with the relative path I am using:-

This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer. Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to disclaimer@hisp.org and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Viet Nguyen

Software Developer, DHIS 2

University of Oslo

http://www.dhis2.org

Viet Nguyen

Software Developer, DHIS 2

University of Oslo

http://www.dhis2.org

Hi Viet

Thanks. I will have a look at this.

I was following the example in the DHIS2 documentation here https://docs.dhis2.org/master/en/developer/html/apps_adding_menu_to_you_app.html. Perhaps that can be updated to the correct example.

Regards

Pooben

This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer. Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to disclaimer@hisp.org and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer.

···

On Mon, Feb 27, 2017 at 10:54 AM, Viet Nguyen viet@dhis2.org wrote:

Hi Pooben,

Please take the below file as an example. It’s the main page of the dashboard-app.

https://raw.githubusercontent.com/dhis2/dashboard-app/master/index.html

Regards,

On Mon, Feb 27, 2017 at 3:44 PM, Pooben Dass pooben@hisp.org wrote:

Hi Viet Nguyen

I am trying to get the DHIS2 menu to display in my app, if I remove these scripts - what script library to I need to replace it with?

Regards

Pooben

This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer. Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to disclaimer@hisp.org and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer.

Viet Nguyen

Software Developer, DHIS 2

University of Oslo

http://www.dhis2.org

On Mon, Feb 27, 2017 at 10:20 AM, Viet Nguyen viet@dhis2.org wrote:

Hi Pooben,

Those are old scripts, please try to remove them from your app and see if the error still occurs.

Regards,

On Fri, Feb 24, 2017 at 4:08 PM, Pooben Dass pooben@hisp.org wrote:

Hi Devs

Any information to assist with this error?

Regards

Pooben

---------- Forwarded message ----------
From: Pooben Dass pooben@hisp.org
Date: Tue, Feb 21, 2017 at 12:41 PM
Subject: 404 Error when trying to use the DHIS2 menu in an APP
To: dhis2-devs dhis2-devs@lists.launchpad.net

Hi Devs

Please can you assist me in getting the DHIS Menu to display in my app?

I’m using dhis 2,25 build 8182981

and this is the error I receive on the console :-

jquery.min.js:2 GET http://localhost:9090/dhis/api/apps/api/me/profile.json 404 (Not Found)

send @ jquery.min.js:2

ajax @ jquery.min.js:2

dhis2.menu.ui.initMenu @ dhis2.menu.ui.js:960

(anonymous) @ dhis2.menu.ui.js:1266

(anonymous) @ dhis2.menu.ui.js:1268

jquery.min.js:2 GET http://localhost:9090/dhis/api/apps/dhis-web-commons/menu/getHelpPageLinkModule.action 404 (Not Found)

send @ jquery.min.js:2

ajax @ jquery.min.js:2

dhis2.menu.ui.initMenu @ dhis2.menu.ui.js:955

(anonymous) @ dhis2.menu.ui.js:1266

(anonymous) @ dhis2.menu.ui.js:1268

This is the script as per the DHIS2 documentation:-

This is the script with the relative path I am using:-

This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer. Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to disclaimer@hisp.org and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Viet Nguyen

Software Developer, DHIS 2

University of Oslo

http://www.dhis2.org