Re: [Dhis2-devs] DHIS2 Apps - namespace & reload

2018-06-20 Thread Adrian Quintana
Hi Martin,
We had some similar issues in the past. The apps deployed in your DHIS2
instance are not stored in the DB but read from the apps folder (typically
$DHIS2_HOME/apps) when the server starts. If I am not wrong on DHIS2 boot a
list of the deployed apps is created and used until the server shutdowns.
When you uninstalling an app the app folder is deleted and the app is
removed from this list. However, sometimes the uninstalled fails and it
cannot delete the folder (sometimes it manages to delete the folder content
but cannot delete the container folder). Next time you reboot your server
DHIS2 will consider the app as installed in your system. The solution we
found is to delete the folder manually on the server and reboot the DHIS2
instance so this 'deployed app list' gets populated properly.

Not sure if this exactly what it is happening to you but I hope at least it
sheds some light...
Best,

On Wed, Jun 20, 2018 at 8:41 AM, Martin Van Aken 
wrote:

> Hi DHIS2 devs!
> We are starting to deploy more and more DHIS2 apps for various needs. This
> is working really nicely, but we have two problems we can't figure out:
>
>- When deploying apps, even a new version of an existing one, we
>frequently get a *"namespace in use" error.* Even deleting the app &
>reinstalling does not solve it. Any ideas/tips on that?
>- When we do deploy a new version, we often have to *"force the
>reload" *in the browser (CTRL+F5) - any tips on forcing the browser to
>reload when a new version is uploaded?
>
> Any good practice or advice on those topics would be most appreciated!
>
> Martin
>
> --
> *Martin Van Aken - **Freelance Enthusiast Developer*
>
> Mobile : +32 486 899 652
>
> Follow me on Twitter : @martinvanaken 
> Call me on Skype : vanakenm
> Hang out with me : mar...@joyouscoding.com
> Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken
> Company website : www.joyouscoding.com
>
> ___
> 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
>
>
___
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


[Dhis2-devs] How to Edit the date of enrollment/Listing TEI's in 2.29

2018-06-20 Thread Stanley Kalyati
I am using two instances,2.27 and 2.29 and i want to know how to edit the
enrollment  date in my programs.Is there a way?

Secondly,with versions below 2.27,one would easily list all TEI's across
and see how many have been enrolled.But with 2.29,i can not see where i can
easily extract that data once i open the Tracker capture.

Thank you

Stanley
___
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


[Dhis2-devs] DHIS2 Apps - namespace & reload

2018-06-20 Thread Martin Van Aken
Hi DHIS2 devs!
We are starting to deploy more and more DHIS2 apps for various needs. This
is working really nicely, but we have two problems we can't figure out:

   - When deploying apps, even a new version of an existing one, we
   frequently get a *"namespace in use" error.* Even deleting the app &
   reinstalling does not solve it. Any ideas/tips on that?
   - When we do deploy a new version, we often have to *"force the reload" *in
   the browser (CTRL+F5) - any tips on forcing the browser to reload when a
   new version is uploaded?

Any good practice or advice on those topics would be most appreciated!

Martin

-- 
*Martin Van Aken - **Freelance Enthusiast Developer*

Mobile : +32 486 899 652

Follow me on Twitter : @martinvanaken 
Call me on Skype : vanakenm
Hang out with me : mar...@joyouscoding.com
Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken
Company website : www.joyouscoding.com
___
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


Re: [Dhis2-devs] Getting the OU for items recorded in datavalues table

2018-06-20 Thread Edward Robinson
Thank you Brajesh,
Ed

From: Brajesh Murari 
Sent: Tuesday, 19 June 2018 4:47 PM
To: Edward Robinson 
Cc: David Huser ; DHIS 2 developers 

Subject: Re: [Dhis2-devs] Getting the OU for items recorded in datavalues table

sourceid is available for distinguishing different types of organizationunit. 
It is one of id available since DHIS 1. In some of the DHIS2 releases, it was 
removed and later on it was found very useful, so it was included. It's like 
parent to organisationunit.

BM
On Tue 19 Jun, 2018, 6:06 PM Edward Robinson, 
mailto:erobin...@projectbalance.com>> wrote:
Oh wow, that simple?  Sourceid = organisationunitid?
Thanks for the quick response David.  For some reason I was expecting 
organisationunitid to be present in the datavalue table.  Do you know the 
reason it’s called sourceid?
Ed

From: David Huser mailto:dhu...@baosystems.com>>
Sent: Tuesday, 19 June 2018 2:33 PM
To: Edward Robinson 
mailto:erobin...@projectbalance.com>>
Cc: DHIS 2 Developers list 
mailto:dhis2-devs@lists.launchpad.net>>
Subject: Re: [Dhis2-devs] Getting the OU for items recorded in datavalues table

Hi Ed,

This should get you started:

SELECT dv.dataelementid, dv.value, ou.name
FROM datavalue dv
JOIN organisationunit ou
ON ou.organisationunitid = dv.sourceid;

Best,
David

On Tue, Jun 19, 2018 at 2:21 PM Edward Robinson 
mailto:erobin...@projectbalance.com>> wrote:
How can the OU be determined for the data in the datavalues table?
The fields are dataelementid, periodid, sourceid, categoryoptioncomboid, 
attributeoptioncomboid, value, storedby, created, lastupdated, comment, 
followup, deleted
I’m guessing it involves the sourceid field (and possibly others) but I’m 
having a hard time figuring it out at the moment.

Thanks in advance!
Ed
___
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


--
[https://docs.google.com/uc?export=download=0B3FU6Lx45t71cUgwM0swdzZOcUk=0B3FU6Lx45t71VGRUVElxbzIxM2VsOXVqN0hZUFRtMk1ZaXcwPQ]


David Huser
DHIS2 Support Specialist
dhu...@baosystems.com | https://baosystems.com |  
2900 K Street, Suite 507, Washington D.C. 20007


___
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
___
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