Re: [Dhis2-devs] [Dhis2-users] Indicators totaling to average rather than sum in pivot tables?

2018-10-04 Thread Jan Henrik Øverland
Hi Karen/Elmarie,

Just wanted to let you know that we take this problem very seriously and
that good progress is currently being made towards a proper solution for
this.

Jan

On Wed, Oct 3, 2018 at 8:56 AM Elmarie Claasen  wrote:

> Hi Stanley,
>
>
>
> No, it has not been resolved. The initial bug reports was turned into a
> new feature DHIS2-2380  which
> is still pending.
>
>
>
> Regards,
>
>
>
> *Elmarie Claasen*
>
> [image: Hisp logo]
>
> Project Manager
>
> Health Information Systems Program
>
> Tel:  041-367 1027
>
> Cell: 082 374 2209
>
> E-mail: elma...@hisp.org
>
> Skype:  elmarie.claasen52
>
>
>
> *From:* Stanley Kalyati 
> *Sent:* Wednesday, October 3, 2018 7:47 AM
> *To:* Elmarie Claasen 
> *Cc:* kle...@engenderhealth.org; DHIS Users <
> dhis2-us...@lists.launchpad.net>; DHIS 2 Developers list <
> dhis2-devs@lists.launchpad.net>
> *Subject:* Re: [Dhis2-users] Indicators totaling to average rather than
> sum in pivot tables?
>
>
>
> Dear Elmarie,
>
>
>
> Has this issue been resolved?
>
>
>
> I am also experiencing the same thing.
>
>
>
> Stanley
>
>
>
> On Fri, Jun 29, 2018 at 8:13 AM Elmarie Claasen  wrote:
>
> Hi Karen,
>
>
>
> Yes this is new feature of 2.28 which unfortunately does not work for sum
> indicators where you would like to sum up raw data values. There is
> already a Jira issue for it here
>  You can vote for it.
>
>
>
> Regards
>
>
>
> *Elmarie Claasen*
>
> [image: Hisp logo]
>
> Project Manager
>
> Health Information Systems Program
>
> Tel:  041-367 1027
>
> Cell: 082 374 2209
>
> E-mail: elma...@hisp.org
>
> Skype:  elmarie.claasen52
>
>
>
> *From:* Dhis2-users [mailto:dhis2-users-bounces+elmarie=
> hisp@lists.launchpad.net] *On Behalf Of *Karen Levin
> *Sent:* Friday, June 29, 2018 2:24 AM
> *To:* dhis2-us...@lists.launchpad.net
> *Subject:* [Dhis2-users] Indicators totaling to average rather than sum
> in pivot tables?
>
>
>
> Hi all, I put in a ticket on Jira but am wondering if others have
> experienced an issue in 2.29 where pivot tables run with indicators provide
> an average of all values in the total column, rather than a sum of the
> values?
>
>
>
> The table options are correctly set, as are the aggregation options for
> the data elements that make up the indicator.
>
>
>
> We recently upgraded and this seems to have come with the upgrade.
>
>
>
> Thanks,
>
> Karen
>
>
>
> *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 disclai...@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-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>
> *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 disclai...@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
>
___
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 NumberType in Pivot Tables through APIs - DHIS 2.27

2018-04-25 Thread Jan Henrik Øverland
Hi Guarav,

Percentage of rows/columns is currently calculated by the app. There is no
way to get this from the API at the moment.

Jan

On Wed, Apr 25, 2018 at 11:18 AM, Kumar Shahdeo 
wrote:

> Hi Community,
>
> I am trying to leverage the numberType field for the pivot tables through
> APIs.
>
> In DHIS, for a pivot table I can navigate to Options and choose numberType
> as 'Percentage of rows', or 'Percantage of columns' and can update the
> pivot table to view data in percentage.
>
> I have updated the table and I am able to see data in percentage in DHIS.
> However, when I am making calls to versioned APIs api/25/analytics in DHIS
> 2.27 I am getting the data for that pivot table, in NUMBER format and not
> as ROW_PERCENTAGE.
>
> How can I get the data for pivot tables in percentage when the given pivot
> table is using NumberType as 'Percentage of rows'?
>
> Thanks
> Gaurav
>
> ___
> 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


Re: [Dhis2-devs] Retrieving date of last login of user X

2018-01-29 Thread Jan Henrik Øverland
Yes, that's up to you.

On 29 January 2018 at 12:47, Calle Hedberg <calle.hedb...@gmail.com> wrote:

> Jan Henrik,
>
> Thanks - seems you can either filter on a specific user using the UID or
> using the filter parameter. The latter will usually be a bit easier
>
> Regards
> calle
>
> On 29 January 2018 at 13:42, Jan Henrik Øverland <j...@dhis2.org> wrote:
>
>> For a specific user: https://play.dhis2.org/2
>> .28/api/users/N3PZBUlN8vq.json?fields=id,name,userCredential
>> s[id,name,username,lastLogin]
>>
>> On 29 January 2018 at 12:40, Jan Henrik Øverland <j...@dhis2.org> wrote:
>>
>>> https://play.dhis2.org/2.28/api/users.json?fields=userCreden
>>> tials[id,name,username,lastLogin]
>>>
>>> On 29 January 2018 at 12:02, Calle Hedberg <calle.hedb...@gmail.com>
>>> wrote:
>>>
>>>> Hi
>>>>
>>>> I've looked through the parameters for the web API resource "Users",
>>>> but I cannot immediately see a way of retrieving the last logged in date
>>>> for a specific user.
>>>>
>>>> Is there a way of doing this, and if yes what is the syntax / parameter
>>>> to use?
>>>>
>>>> regards
>>>> Calle
>>>>
>>>> ***
>>>>
>>>> Calle Hedberg
>>>>
>>>> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>>>> <https://maps.google.com/?q=46D+Alma+Road,+7700+Rosebank,+SOUTH+AFRICA=gmail=g>
>>>>
>>>> Tel/fax (home): +27-21-685-6472 <+27%2021%20685%206472>
>>>>
>>>> Cell: +27-82-853-5352 <+27%2082%20853%205352>
>>>>
>>>> Iridium SatPhone: +8816-315-19119 <+881%206%20315%2019119>
>>>>
>>>> Email: calle.hedb...@gmail.com
>>>>
>>>> Skype: calle_hedberg
>>>>
>>>> ***
>>>>
>>>>
>>>> ___
>>>> 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
>>>>
>>>>
>>>
>>>
>>> --
>>> Jan Henrik Øverland
>>> Software developer, DHIS 2
>>> University of Oslo
>>> http://www.dhis2.org <https://www.dhis2.org/>
>>>
>>
>>
>>
>> --
>> Jan Henrik Øverland
>> Software developer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org <https://www.dhis2.org/>
>>
>
>
>
> --
>
> ***
>
> Calle Hedberg
>
> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
> <https://maps.google.com/?q=46D+Alma+Road,+7700+Rosebank,+SOUTH+AFRICA=gmail=g>
>
> Tel/fax (home): +27-21-685-6472
>
> Cell: +27-82-853-5352
>
> Iridium SatPhone: +8816-315-19119
>
> Email: calle.hedb...@gmail.com
>
> Skype: calle_hedberg
>
> ***
>
>


-- 
Jan Henrik Øverland
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org <https://www.dhis2.org/>
___
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] Retrieving date of last login of user X

2018-01-29 Thread Jan Henrik Øverland
For a specific user:
https://play.dhis2.org/2.28/api/users/N3PZBUlN8vq.json?fields=id,name,userCredentials[id,name,username,lastLogin]

On 29 January 2018 at 12:40, Jan Henrik Øverland <j...@dhis2.org> wrote:

> https://play.dhis2.org/2.28/api/users.json?fields=userCredentials[id,name,
> username,lastLogin]
>
> On 29 January 2018 at 12:02, Calle Hedberg <calle.hedb...@gmail.com>
> wrote:
>
>> Hi
>>
>> I've looked through the parameters for the web API resource "Users", but
>> I cannot immediately see a way of retrieving the last logged in date for a
>> specific user.
>>
>> Is there a way of doing this, and if yes what is the syntax / parameter
>> to use?
>>
>> regards
>> Calle
>>
>> ***
>>
>> Calle Hedberg
>>
>> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>>
>> Tel/fax (home): +27-21-685-6472
>>
>> Cell: +27-82-853-5352
>>
>> Iridium SatPhone: +8816-315-19119
>>
>> Email: calle.hedb...@gmail.com
>>
>> Skype: calle_hedberg
>>
>> ***
>>
>>
>> _______
>> 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
>>
>>
>
>
> --
> Jan Henrik Øverland
> Software developer, DHIS 2
> University of Oslo
> http://www.dhis2.org <https://www.dhis2.org/>
>



-- 
Jan Henrik Øverland
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org <https://www.dhis2.org/>
___
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] Retrieving date of last login of user X

2018-01-29 Thread Jan Henrik Øverland
https://play.dhis2.org/2.28/api/users.json?fields=userCredentials[id,name,username,lastLogin]

On 29 January 2018 at 12:02, Calle Hedberg <calle.hedb...@gmail.com> wrote:

> Hi
>
> I've looked through the parameters for the web API resource "Users", but I
> cannot immediately see a way of retrieving the last logged in date for a
> specific user.
>
> Is there a way of doing this, and if yes what is the syntax / parameter to
> use?
>
> regards
> Calle
>
> ***
>
> Calle Hedberg
>
> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>
> Tel/fax (home): +27-21-685-6472
>
> Cell: +27-82-853-5352
>
> Iridium SatPhone: +8816-315-19119
>
> Email: calle.hedb...@gmail.com
>
> Skype: calle_hedberg
>
> ***
>
>
> ___
> 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
>
>


-- 
Jan Henrik Øverland
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org <https://www.dhis2.org/>
___
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] Removing user-installed App

2018-01-25 Thread Jan Henrik Øverland
Hi Calle,

When I click on the three dots the app opens up in a new tab. If I go back
to the original tab the context menu for that app is open and I am able to
click uninstall.

Does that work for you in the mean time? This behaviour should be fixed of
course.

On 24 January 2018 at 23:05, Calle Hedberg <calle.hedb...@gmail.com> wrote:

> Hi,
>
> I've just installed a standard app for testing - installation seemingly
> worked OK, but the app itself does not work. The problem is that the usual
> popup menu (the three dots) on the app only opens the app - there is not
> "remove" option.
>
> Is there another way to remove such user-installed apps, in the UI or
> using the web API?
>
> The user and developer manuals don't indicate anything (they are very
> scanty on the app topic in general).
>
> Regards
> Calle
>
> --
>
> ***
>
> Calle Hedberg
>
> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>
> Tel/fax (home): +27-21-685-6472
>
> Cell: +27-82-853-5352
>
> Iridium SatPhone: +8816-315-19119
>
> Email: calle.hedb...@gmail.com
>
> Skype: calle_hedberg
>
> ***
>
>
> ___
> 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
>
>


-- 
Jan Henrik Øverland
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org <https://www.dhis2.org/>
___
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] [Dhis2-users] Event reports get error when click on moving to new pages

2017-12-07 Thread Jan Henrik Øverland
Hi Rady,

What calendar are you using?



On 7 December 2017 at 05:05, Rady <tryr...@gmail.com> wrote:

> Hi team,
>
> I have created an event report and I have two issues regarding this event
> report.
>
>1. After click on explore and event report is opening it takes long
>time to open and still keep loading, in console I see an error (please
>check in attach Capture1.PNG).
>2. However, sometimes I can open that event report successfully
>without any error in console. But if I click moving to a new page suddenly
>in console I see another error (please check in attach Capture2.PNG).
>
> I have tested in below versions.
>
>- Version: 2.28, Build revision: af15a18, Build date: 2017-10-11 06:22
>- Version: 2.27, Build revision: 0f93cf9, Build date: 2017-07-23 06:25
>
> Both above version result in the same errors in console as described
> above. Anybody experience these kinds of issues in event report? Please
> kindly help.
>
> Thanks with best regards,
> Rady
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Jan Henrik Øverland
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org <https://www.dhis2.org/>
___
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] [Dhis2-users] how to set the default gis app map 's center?

2017-11-21 Thread Jan Henrik Øverland
Hi, there's currently no way to set a default map center.

Jan

On 21 November 2017 at 03:56, 林晓东 <lin...@126.com> wrote:

> Hi,all,
>
>  I want to know  how to set the default map center of gis app.
>
>   Thanks.
>
>
>
>
> --
> 此致
>
> easy
>
> 莫愁前路无知己,天下谁人不识君。
>
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Jan Henrik Øverland
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org <https://www.dhis2.org/>
___
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] DHIS-2 API

2017-09-20 Thread Jan Henrik Øverland
Hi Omer,

Like Harsh says, just replace the level param with a filter. In your case
it will be:

*api/organisationUnits/cdp3S26sBwA.json?**fields*
*=children[id,name,level]=true=children.level:eq:6*

On 20 September 2017 at 08:36, Harsh Atal <harsh.a...@gmail.com> wrote:

> Hi Omer
>
> May be this works for you :
>
> *https://play.dhis2.org/demo/api/organisationUnits/ImspTQPwCqd?fields=children[id,level]=true=children.level:eq:3
> <https://play.dhis2.org/demo/api/organisationUnits/ImspTQPwCqd?fields=children[id,level]=true=children.level:eq:3>*
>
>
> Regards
> harsh
>
>
>
>
>
> On 20 September 2017 at 11:42, Lars Helge Øverland <l...@dhis2.org> wrote:
>
>> Hi Omer,
>>
>> it seems you are right. Please report it as a bug in Jira. We will have a
>> look at it.
>>
>> regards,
>>
>> Lars
>>
>>
>> On Wed, Sep 20, 2017 at 6:52 AM, Omer Butt <omerbutt2...@gmail.com>
>> wrote:
>>
>>> Hi,
>>> can you please how to get a level 6  orgunit only by using DHIS-2 API;
>>>
>>> I used this api but It Respone all org unit under specific org unit.
>>> I want  only level 6 org unit that uder specific org unit.
>>>
>>> * level=6 conditon not working. How to use it ?*
>>> *URL:*
>>>
>>>
>>> *API:/api/organisationUnits/cdp3S26sBwA.json?includeDescendants=true=6*
>>>
>>> Kindly Help me .
>>>
>>> ___
>>> 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
>>>
>>>
>>
>>
>> --
>> Lars Helge Øverland
>> Lead developer, DHIS 2
>> University of Oslo
>> Skype: larshelgeoverland
>> l...@dhis2.org
>> http://www.dhis2.org <https://www.dhis2.org/>
>>
>>
>> ___
>> 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
>
>


-- 
Jan Henrik Øverland
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org <https://www.dhis2.org/>
___
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] Embed chart - 2.24

2017-08-30 Thread Jan Henrik Øverland
.html#comms_disclaimer
>>> <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 disclai...@hisp.org
>>> <disclai...@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.*
>>>
>>
>>
>>
>> --
>> *Martin Van Aken - **Freelance Enthusiast Developer*
>>
>> Mobile : +32 486 899 652
>>
>> Follow me on Twitter : @martinvanaken <http://twitter.com/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
>>
>
>
> *This message and any attachments are subject to a disclaimer published at
> http://www.hisp.org/policies.html#comms_disclaimer
> <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 disclai...@hisp.org
> <disclai...@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
>
>


-- 
Jan Henrik Øverland
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org <https://www.dhis2.org/>
___
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] [Dhis2-users] Any open source GIS/map database tools other than DHIS2

2017-06-21 Thread Jan Henrik Øverland
For software, another option is uDig http://udig.refractions.net/

On 21 June 2017 at 16:12, Anil Das Gupta <o...@vivosinvivir.com> wrote:

> Hello
>
>
>
> I’m not too sure if you are looking for digital maps or GIS software. If
> the latter, I suspect the simplest-to-use open source GIS software is Kosmo
> (www.opensig.es), especially if you’re using an Access (mdb) database. If
> in Postrgres, I would use QGIS.
>
>
>
> Sem outro assunto, receba os meus melhores cumprimentos
>
>
>
>
>
>
>
> Anil Das Gupta González
>
> Casa Pedriñán (Apartado Postal 71),
>
> El Niño, 30194 Mula, Murcia, España/Espanha/Spain
>
> Telefone: 666 031645
>
> Skpye: anildasgupta
>
>
>
> *De:* Dhis2-users [mailto:dhis2-users-bounces+onil=vivosinvivir.com@lists.
> launchpad.net] *En nombre de *Knut Staring
> *Enviado el:* miércoles, 21 de junio de 2017 16:02
> *Para:* Dipali sahu <dipali.s...@gmail.com>
> *CC:* dhis2-us...@lists.launchpad.net; DHIS 2 developers <
> dhis2-devs@lists.launchpad.net>
> *Asunto:* Re: [Dhis2-users] [Dhis2-devs] Any open source GIS/map database
> tools other than DHIS2
>
>
>
> Hi Dipali,
>
> Take a look at http://www.diva-gis.org/
>
>
>
> Knut
>
>
>
> On Jun 21, 2017 15:28, "Dipali Sahu" <dipali.s...@gmail.com> wrote:
>
> Hi
>
>
>
> I am wondering if there are any open source tools other than DHIS2 that
> anyone has used for projecting data on maps.
>
>
>
> My requirement is to create just a few maps, hence creating all the OU
> hierarchy in DHIS2 is too big an exercise. I am looking for a tool that
> already has administrative boundaries from UN OCHA or OSM etc. and where I
> can just project my coordinates , change admin division colors and some
> very basic stuff.
>
>
>
> Thank you in advance, any leads will be helpful.
>
> Deepali
>
>
>
>
>
>
> ___
> 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-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Jan Henrik Øverland
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org <https://www.dhis2.org/>
___
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] [Dhis2-users] Using 2.26?

2017-05-15 Thread Jan Henrik Øverland
Demo of the latest stable release can always be found at
https://play.dhis2.org/demo

On 15 May 2017 at 13:11, Georgi Chakarov <geo...@logicaloutcomes.net> wrote:

> Hello!
>
>
>
> Has anyone been using DHIS2 version 2.26, already? Can you confirm that it
> is steady and the apps work good?
>
>
>
> In general, how and where can I check whether a higher version of DHIS2 is
> stable?
>
>
>
> Thanks in advance for your input on this!
>
>
>
> Georgi
>
>
>
>
> Georgi Chakarov, CIA | geo...@logicaloutcomes.net | +1-647-478-5634 x
> 104 | LogicalOutcomes c/o Centre for Social Innovation, 720 Bathurst
> Street, Toronto Canada M5S 2R4 | *You may unsubscribe from receiving
> commercial electronic messages from LogicalOutcomes by emailing *
> *i...@logicaloutcomes.net* <i...@logicaloutcomes.net>
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Jan Henrik Øverland
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org <https://www.dhis2.org/>
___
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] Create Scorecards using the Pivot Table app

2017-05-05 Thread Jan Henrik Øverland
Hi Stanley,

What exactly did not work as expected? At what point does it deviate from
the documentation?

Jan

On 5 May 2017 at 11:56, Stanley Kalyati <skaly...@gmail.com> wrote:

> Called
>
> I am familiar with scorecard for Tanzania but I came across the link
> provided which talked about creating the scorecard using the Legends and
> Pivot tables..
>
> Thanks
>
> Stanley
>
> On May 5, 2017 11:50 AM, "Calle Hedberg" <calle.hedb...@gmail.com> wrote:
>
>> Stanley,
>>
>> Have you tried the scorecard 2 app from HISP/Tanzania? It might work
>> better...
>>
>> Regards
>> calle
>>
>> On 5 May 2017 at 11:02, Stanley Kalyati <skaly...@gmail.com> wrote:
>>
>>> I followed through the instructions on the link below but i did not get
>>> the results as expected.
>>>
>>> I am using dhis2 2.26.
>>>
>>> Anyone who has been successful please help
>>>
>>> https://docs.dhis2.org/master/en/user/html/create-scorecards
>>> -pivot-table.html#d0e33931
>>>
>>> Regards
>>>
>>> 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
>>>
>>>
>>
>>
>> --
>>
>> ***
>>
>> Calle Hedberg
>>
>> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>>
>> Tel/fax (home): +27-21-685-6472 <+27%2021%20685%206472>
>>
>> Cell: +27-82-853-5352 <+27%2082%20853%205352>
>>
>> Iridium SatPhone: +8816-315-19119 <+881%206%20315%2019119>
>>
>> Email: calle.hedb...@gmail.com
>>
>> Skype: calle_hedberg
>>
>> ***
>>
>>
> ___
> 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
>
>


-- 
Jan Henrik Øverland
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org <https://www.dhis2.org/>
___
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] [Dhis2-users] Problem loading pivot table results

2017-04-05 Thread Jan Henrik Øverland
As long as you are selecting orgunits by level, and not explicitly, that
should not be a problem.

On 5 April 2017 at 09:08, Jason Pickering <jason.p.picker...@gmail.com>
wrote:

> You maybe getting a "HTTP Error 414 Request URI too long" error in the
> browser. This happens when the URL generated by the client is too big to be
> handled by the HTTP server. Check the JS console in the browser and see.
>
> Jan's method may work, but it will not work if you are getting that error.
>
> Regards,
> Jason
>
>
>
> On Wed, Apr 5, 2017 at 9:06 AM, Jan Henrik Øverland <j...@dhis2.org> wrote:
>
>> Hi Tantely,
>>
>> You can dump larger chunks of data by doing the following:
>>
>> - Open the pivot tables app
>> - Select what you need in the left menu
>> - Do not click "update" -  instead click the small down-arrow next to the
>> update button and download as CSV
>>
>> Jan
>>
>> On 5 April 2017 at 08:32, Raminosoa Rabemanantsoa, Tantely <
>> tramino...@mikolo.org> wrote:
>>
>>> Dear Calle,
>>>
>>> Thank you for your suggestions. In order to dump the results, I have to
>>> lower the number of OrgUnits by splitting them by parents OrgUnits and loop
>>> the process unitl all OrgUnits are done.
>>>
>>> Regards,
>>>
>>> Tantely.
>>>
>>>
>>> On Tue, Apr 4, 2017 at 11:00 AM, Calle Hedberg <calle.hedb...@gmail.com>
>>> wrote:
>>>
>>>> Hi
>>>>
>>>> This is a common problem - the pivot table app cannot process/display
>>>> larger sets of data, which is typically what you get when selecting the
>>>> lowest OU level.
>>>>
>>>> Try dumping the result out into another format (CSV, Excel), and then
>>>> process that into the report format you want.
>>>>
>>>> Regards
>>>> Calle
>>>>
>>>> On 3 April 2017 at 13:05, Raminosoa Rabemanantsoa, Tantely <
>>>> tramino...@mikolo.org> wrote:
>>>>
>>>>> Dear DHIS2 community,
>>>>>
>>>>>
>>>>> We are using DHIS2 2.24. When we are running pivot table and are using
>>>>> some indicators by selecting the lowest level of OrgUnit (Community Health
>>>>> Workers), the application is running without any results output (an
>>>>> illustration is attached). The application is only responding when we are
>>>>> going up to a higher level in the OrgUnit tree. Are there some memories
>>>>> parameters to tune or what should be done to troubleshoot this issue, as 
>>>>> we
>>>>> really need the results presented with the lowest OrgUnit. In the server
>>>>> side, we are using 16 cores CPU and 64 Gb of RAM.
>>>>>
>>>>>
>>>>> Thank you for your support,
>>>>>
>>>>>
>>>>> Regards,
>>>>>
>>>>>
>>>>> Tantely.
>>>>>
>>>>> *This message and its attachments are confidential and solely for the
>>>>> intended recipients. If received in error, please delete them and notify
>>>>> the sender via reply e-mail immediately.*
>>>>>
>>>>> ___
>>>>> 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
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> ***
>>>>
>>>> Calle Hedberg
>>>>
>>>> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>>>>
>>>> Tel/fax (home): +27-21-685-6472 <+27%2021%20685%206472>
>>>>
>>>> Cell: +27-82-853-5352 <+27%2082%20853%205352>
>>>>
>>>> Iridium SatPhone: +8816-315-19119 <+881%206%20315%2019119>
>>>>
>>>> Email: calle.hedb...@gmail.com
>>>>
>>>> Skype: calle_hedberg
>>>>
>>>> ***
>>>>
>>>>
>>>
>>>
>>>
>>>
>>> *This message and its attachments are confidential and solely for the
>>> intended recipients. If received in error, please delete them and notify
>>> the sender via reply e-mail immediately.*
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-users
>>> Post to : dhis2-us...@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>>
>> --
>> Jan Henrik Øverland
>> Software developer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org <https://www.dhis2.org/>
>>
>> ___
>> 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
>>
>>
>
>
> --
> Jason P. Pickering
> email: jason.p.picker...@gmail.com
> tel:+46764147049
>



-- 
Jan Henrik Øverland
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org <https://www.dhis2.org/>
___
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] [Dhis2-users] Problem loading pivot table results

2017-04-05 Thread Jan Henrik Øverland
Hi Tantely,

You can dump larger chunks of data by doing the following:

- Open the pivot tables app
- Select what you need in the left menu
- Do not click "update" -  instead click the small down-arrow next to the
update button and download as CSV

Jan

On 5 April 2017 at 08:32, Raminosoa Rabemanantsoa, Tantely <
tramino...@mikolo.org> wrote:

> Dear Calle,
>
> Thank you for your suggestions. In order to dump the results, I have to
> lower the number of OrgUnits by splitting them by parents OrgUnits and loop
> the process unitl all OrgUnits are done.
>
> Regards,
>
> Tantely.
>
>
> On Tue, Apr 4, 2017 at 11:00 AM, Calle Hedberg <calle.hedb...@gmail.com>
> wrote:
>
>> Hi
>>
>> This is a common problem - the pivot table app cannot process/display
>> larger sets of data, which is typically what you get when selecting the
>> lowest OU level.
>>
>> Try dumping the result out into another format (CSV, Excel), and then
>> process that into the report format you want.
>>
>> Regards
>> Calle
>>
>> On 3 April 2017 at 13:05, Raminosoa Rabemanantsoa, Tantely <
>> tramino...@mikolo.org> wrote:
>>
>>> Dear DHIS2 community,
>>>
>>>
>>> We are using DHIS2 2.24. When we are running pivot table and are using
>>> some indicators by selecting the lowest level of OrgUnit (Community Health
>>> Workers), the application is running without any results output (an
>>> illustration is attached). The application is only responding when we are
>>> going up to a higher level in the OrgUnit tree. Are there some memories
>>> parameters to tune or what should be done to troubleshoot this issue, as we
>>> really need the results presented with the lowest OrgUnit. In the server
>>> side, we are using 16 cores CPU and 64 Gb of RAM.
>>>
>>>
>>> Thank you for your support,
>>>
>>>
>>> Regards,
>>>
>>>
>>> Tantely.
>>>
>>> *This message and its attachments are confidential and solely for the
>>> intended recipients. If received in error, please delete them and notify
>>> the sender via reply e-mail immediately.*
>>>
>>> ___
>>> 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
>>>
>>>
>>
>>
>> --
>>
>> ***
>>
>> Calle Hedberg
>>
>> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>>
>> Tel/fax (home): +27-21-685-6472 <+27%2021%20685%206472>
>>
>> Cell: +27-82-853-5352 <+27%2082%20853%205352>
>>
>> Iridium SatPhone: +8816-315-19119 <+881%206%20315%2019119>
>>
>> Email: calle.hedb...@gmail.com
>>
>> Skype: calle_hedberg
>>
>> ***
>>
>>
>
>
>
>
> *This message and its attachments are confidential and solely for the
> intended recipients. If received in error, please delete them and notify
> the sender via reply e-mail immediately.*
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Jan Henrik Øverland
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org <https://www.dhis2.org/>
___
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] [Dhis2-users] Bug: visualizer not working in v2.25

2017-03-23 Thread Jan Henrik Øverland
Hi,

This is now fixed. Sorry for the inconvenience. Please download the latest
war file: https://www.dhis2.org/downloads

Jan

On 23 March 2017 at 11:51, Jan Henrik Øverland <j...@dhis2.org> wrote:

> Hi Priyanka,
>
> There is an issue with the 2.25 build process for the Visualizer app. We
> are working on it.
>
> Jan
>
> On 23 March 2017 at 11:21, Morten Olav Hansen <mor...@dhis2.org> wrote:
>
>> Hi
>>
>> Did it just stop working, or was this part of an upgrade job? I assume it
>> was part of an upgrade, please make sure your nginx cache is cleared, use
>> chrome ingocnito to test (to make sure cache is not an issue), also I
>> assume your full instance is running on /dhis/ ? if not, maybe the path
>> will be different.
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Thu, Mar 23, 2017 at 5:03 PM, gerald thomas <gerald17...@gmail.com>
>> wrote:
>>
>>> Prinyanka,
>>> I am assuming all the others are working I.e data entry, pivot table,
>>> etc. Run maintenance, after it had been completed; shutdown instance and
>>> delete the war file and folder with repetitive instance name. Download a
>>> new war file and monitor Catalina.out when the instance startup.
>>>
>>> On Mar 23, 2017 09:53, "Priyanka Bawa" <priyankabawa...@gmail.com>
>>> wrote:
>>>
>>>> Hi
>>>> I already tried this way but no luck!
>>>>
>>>> Regards
>>>> Priyanka Bawa
>>>>
>>>> On Thu, Mar 23, 2017 at 3:14 PM, gerald thomas <gerald17...@gmail.com>
>>>> wrote:
>>>>
>>>>> Priyanka,
>>>>> Kindly delete war file and folder and download a new war file again.
>>>>> Remember to shutdown instance before deleting the war file.
>>>>>
>>>>> On Mar 23, 2017 9:38 AM, "Priyanka Bawa" <priyankabawa...@gmail.com>
>>>>> wrote:
>>>>>
>>>>> Hi team
>>>>> I am working on dhis2 v2.25 but it seems the data visualizer is not
>>>>> working.
>>>>> Please see attached screenshot.
>>>>>
>>>>> [image: Inline image 1]
>>>>>
>>>>> Regards
>>>>> Priyanka Bawa
>>>>>
>>>>> ___
>>>>> Mailing list: https://launchpad.net/~dhis2-users
>>>>> Post to : dhis2-us...@lists.launchpad.net
>>>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>>>> 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
>>>
>>>
>>
>> ___
>> 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
>>
>>
>
>
> --
> Jan Henrik Øverland
> Software developer, DHIS 2
> University of Oslo
> http://www.dhis2.org <https://www.dhis2.org/>
>



-- 
Jan Henrik Øverland
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org <https://www.dhis2.org/>
___
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] [Dhis2-users] Bug: visualizer not working in v2.25

2017-03-23 Thread Jan Henrik Øverland
Hi Priyanka,

There is an issue with the 2.25 build process for the Visualizer app. We
are working on it.

Jan

On 23 March 2017 at 11:21, Morten Olav Hansen <mor...@dhis2.org> wrote:

> Hi
>
> Did it just stop working, or was this part of an upgrade job? I assume it
> was part of an upgrade, please make sure your nginx cache is cleared, use
> chrome ingocnito to test (to make sure cache is not an issue), also I
> assume your full instance is running on /dhis/ ? if not, maybe the path
> will be different.
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Thu, Mar 23, 2017 at 5:03 PM, gerald thomas <gerald17...@gmail.com>
> wrote:
>
>> Prinyanka,
>> I am assuming all the others are working I.e data entry, pivot table,
>> etc. Run maintenance, after it had been completed; shutdown instance and
>> delete the war file and folder with repetitive instance name. Download a
>> new war file and monitor Catalina.out when the instance startup.
>>
>> On Mar 23, 2017 09:53, "Priyanka Bawa" <priyankabawa...@gmail.com> wrote:
>>
>>> Hi
>>> I already tried this way but no luck!
>>>
>>> Regards
>>> Priyanka Bawa
>>>
>>> On Thu, Mar 23, 2017 at 3:14 PM, gerald thomas <gerald17...@gmail.com>
>>> wrote:
>>>
>>>> Priyanka,
>>>> Kindly delete war file and folder and download a new war file again.
>>>> Remember to shutdown instance before deleting the war file.
>>>>
>>>> On Mar 23, 2017 9:38 AM, "Priyanka Bawa" <priyankabawa...@gmail.com>
>>>> wrote:
>>>>
>>>> Hi team
>>>> I am working on dhis2 v2.25 but it seems the data visualizer is not
>>>> working.
>>>> Please see attached screenshot.
>>>>
>>>> [image: Inline image 1]
>>>>
>>>> Regards
>>>> Priyanka Bawa
>>>>
>>>> ___
>>>> Mailing list: https://launchpad.net/~dhis2-users
>>>> Post to : dhis2-us...@lists.launchpad.net
>>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>>> 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
>>
>>
>
> ___
> 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
>
>


-- 
Jan Henrik Øverland
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org <https://www.dhis2.org/>
___
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] Event Layer: DHIS plugin for maps

2017-02-28 Thread Jan Henrik Øverland
Hi Priyanka,

Unfortunately I don't see new features coming for 2.21 at this point.

If you have the chance to upgrade you can get the map plugins for the
latest versions, which support event layer, here: http://dhis2-cdn.org/

Jan

On 28 February 2017 at 05:57, Priyanka Bawa <priyankabawa...@gmail.com>
wrote:

> A gentle reminder.
>
> Regards
> Priyanka Bawa
>
> On Thu, Feb 23, 2017 at 12:34 PM, Priyanka Bawa <priyankabawa...@gmail.com
> > wrote:
>
>> Hi Both
>> I am trying to get event layer through DHIS plugin for maps/gis. But i
>> guess it is not supported as mentioned in the developer manual.
>> I am using dhis v 2.21.
>>
>> Is there any other way to do so?
>> Regards
>> Priyanka Bawa
>>
>
>


-- 
Jan Henrik Øverland
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org <https://www.dhis2.org/>
___
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] About and Home Menu's hidden in the Pivot table

2017-02-07 Thread Jan Henrik Øverland
Hi Muturi,

This is caused by a weakness in the ui framework, ExtJS 4. However it only
happens when the option window (or any other Ext window) is taller than the
whole browser window - and the option window is only about 600px tall so it
should work in most cases. But a bit annoying if you have resized the
browser window of course. We are aiming to refactor the ui some time this
year anyway.

Jan

On 7 February 2017 at 22:34, David Muturi <dnmut...@gmail.com> wrote:

> Hi Devs,
> Another UI issue is that the about and Home menu links get hidden within
> the pivot table once one clicks on options. The only solution for now is to
> reload the page. This is happening on both versions 2.25 and 2.26. I have
> attached a screenshot of the same.
> rgds
> David
>
> ___
> 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
>
>


-- 
Jan Henrik Øverland
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org <https://www.dhis2.org/>
___
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] DV module not working in latest 2.25 build?

2017-02-01 Thread Jan Henrik Øverland
Hi Olav, Rebecca,

This is now fixed. Please download the latest war file:

https://ci.dhis2.org/job/dhis2-2.25/lastSuccessfulBuild/artifact/dhis-2/dhis-web/dhis-web-portal/target/dhis.war

Jan

On 1 February 2017 at 20:15, Smith, Rebecca A. <rs3...@cumc.columbia.edu>
wrote:

> Hi Olav and devs,
>
> We experienced the same problem in today's build (da6a2df) and filed a bug
> - https://jira.dhis2.org/browse/DHIS2-614 .
>
> Thanks,
> Becky
>
> -Original Message-
> From: Dhis2-devs [mailto:dhis2-devs-bounces+rs3524=cumc.columbia.edu@
> lists.launchpad.net] On Behalf Of Olav Poppe
> Sent: Wednesday, February 01, 2017 10:30 AM
> To: DHIS Developers
> Subject: [Dhis2-devs] DV module not working in latest 2.25 build?
>
> Hi devs,
> downloaded latest 2.25 just now, and it looks like there’s an issue with
> the DV module? Browser complains that chart.js doesn’t exist, and I can
> confirm that the «dhis-web-visualizer» folder of the war file only contains
> META-INF, not actual content. Even tried re-downloading and manually
> unzipping the .war, and still nothing in dhis-web-visualizer,
>
> Olav
>
>
>
> ___
> 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
>



-- 
Jan Henrik Øverland
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org <https://www.dhis2.org/>
___
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] Data viz app: OrgUnit tree names not appearing (children API call not passing correctly encoded parameters)

2017-01-30 Thread Jan Henrik Øverland
Hi Alexandre, Blake,

Turned out the request url was encoded twice before it was sent to the
server. Should be fixed now in the affected version.

Jan

On 27 January 2017 at 14:36, Blake Hansen <bhan...@baosystems.com> wrote:

> Dear Alex,
>
> I have also seen and reported this and believe a fix is being worked on
> currently.
>
> All best,
> Blake
>
>
> --
>
>
>
>
> *Blake Hansen*
> Projects Implementation Manager, BAO Systems
> +1 202-536-1541 | bhan...@baosystems.com | http://www.baosystems.com |
> Skype: blake.a.hansen |  2900 K Street, Suite 404, Washington D.C. 20007
>
> On 27 Jan 2017, at 13:34, alexandre.vanobberg...@unibas.ch wrote:
>
> Hi
>
> We updated an instance (2.24 / 23578) to the latest build (2.24 / 8282ca3)
> and noticed that the org unit tree in the data visualizer app is not
> displaying names of orgunits.
>
>
>
> The API call to get them would be:
> GET /api/organisationUnits/HY7fC5c8lXF.json?fields=children[id,
> displayName|rename(name),children::isNotEmpty|rename(
> hasChildren)=false
>
> response:
> {
>
> "children": [
> {
> "id": "tOixAuufpk1",
> "hasChildren": true,
> "name": "One"
> },
> {
> "id": "r3D8BkVf4PA",
> "hasChildren": true,
> "name": "Two"
> }
> ]
>
> }
>
>
> but it calls instead:
> GET /api/organisationUnits/HY7fC5c8lXF.json?fields=children%
> 5Bid,displayName%7Crename(name),children::isNotEmpty%
> 7Crename(hasChildren)=false
>
> response:
>
> {
>
> "children": [
> {
> "id": "r3D8BkVf4PA"
> },
> {
> "id": "tOixAuufpk1"
> }
> ]
>
> }
>
> DB is identical / tested in incognito mode, Firefox & Chrome. Do you have
> any hints on why this happens?
>
> Thanks
> Alex
>
>
> --
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error, please notify us immediately by
> reply e-mail and delete this message from your system.
> --
> ___
> 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
>
>


-- 
Jan Henrik Øverland
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org <https://www.dhis2.org/>
___
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] [Bug 1582127] Re: Data Visualizer Favorites fail to save Details of data elements

2016-05-19 Thread Jan Henrik Øverland
** Changed in: dhis2
   Status: New => Fix Released

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1582127

Title:
  Data Visualizer Favorites fail to save Details of data elements

Status in DHIS:
  Fix Released

Bug description:
  In DHIS 2.22 and 2.23, the Data Visualizer can only save totals.
  However when using say data element details, you cannot save it as a
  favorite.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1582127/+subscriptions

___
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] [Bug 1582127] Re: Data Visualizer Favorites fail to save Details of data elements

2016-05-16 Thread Jan Henrik Øverland
** Changed in: dhis2
 Assignee: (unassigned) => Jan Henrik Øverland (janhenrik-overland)

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1582127

Title:
  Data Visualizer Favorites fail to save Details of data elements

Status in DHIS:
  New

Bug description:
  In DHIS 2.22 and 2.23, the Data Visualizer can only save totals.
  However when using say data element details, you cannot save it as a
  favorite.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1582127/+subscriptions

___
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] [Bug 1575796] Re: Shortname not showing in Pivot Table

2016-04-28 Thread Jan Henrik Øverland
Hi Esunly, fixed in 2.23.

Jan

** Changed in: dhis2
   Status: New => Fix Released

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1575796

Title:
  Shortname not showing in Pivot Table

Status in DHIS:
  Fix Released

Bug description:
  Hi,

  I changed the "Property to display in analysis modules" setting  in
  the Botswana demo to "Short name". The Short name is properly
  displayed in the Data dimension list on the left but not in the Pivot
  table (the long name is displayed instead). Charts work well too.

  Thanks

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1575796/+subscriptions

___
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] [Dhis2-users] Missing Group Sets in the Event Reports & Event Visualizer for version: 2.22

2016-04-27 Thread Jan Henrik Øverland
Hi Sam,

This was fixed in 2.22 a couple of days ago.

Jan

On 27 April 2016 at 11:57, Sam Kasozi  wrote:

> I have been looking at different DHIS 2.22 instances and realized that we
> are missing Group Sets in the Event based reporting apps (Event Reports and
> Event Visualizer). However, they are visible in the aggregate reporting
> modules.
>
> Earlier versions and latest: 2.23, show the group sets in the Event
> reporting modules.
>
> Is this a bug?
>
>
> regards,
>
> Sam Kasozi
> +256 788-993-565
> Skype: sam.kasoziug
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> 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


Re: [Dhis2-devs] Issue with /api/reportTables api

2016-04-12 Thread Jan Henrik Øverland
Seems relative periods are rewinded by one period. "This quarter" returns
Apr-Jun in the pivot table, but Jan-Mar in /data.html. Should be fixed.

On 12 April 2016 at 11:06, Aamer Mohammed  wrote:

>
> I checked in play.dhis2.org also. I am seeing the same issue.
> For the reportTable, "ANC: Coverages Quarterly" last row data is not
> being retrieved by the api
> https://play.dhis2.org/demo/api/reportTables/C0rhAq1oklh/data.json
>
> Is it a known issue?
>
>
> On Tue, Apr 12, 2016 at 1:00 PM, Morten Olav Hansen 
> wrote:
>
>> Hm, I take that back.. seems both are included.. seems strange
>>
>> --
>> Morten
>>
>> On Tue, Apr 12, 2016 at 2:29 PM, Morten Olav Hansen 
>> wrote:
>>
>>> Hm, seems March 2015 is included instead of March 2016... not sure if
>>> it's a known issue or not, but seems like a bug, Lars will know better
>>> (maybe it's fixed already)
>>>
>>> --
>>> Morten
>>>
>>> On Tue, Apr 12, 2016 at 2:27 PM, Aamer Mohammed >> > wrote:
>>>
 Hi Devs,

 We have seen the below issue when working with /api/reportTables api.
 We are using DHIS 2.21 build revision 21058.
 The reportTable as seen in DHIS app is as below.

 [image: Inline image 1]

 However when we try to fetch the data for the same report Table through
 /api/reportTables//data.html api we are not getting entire data. The
 data for last row is not retrieved through api (json response attached)
 Is anyone else facing this issue? Any observations please.

 Thanks
 Aamer.




>>>
>>
>
> ___
> 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] [Bug 1565716] Re: Drill Down not possible in GIS module

2016-04-12 Thread Jan Henrik Øverland
** Changed in: dhis2
 Assignee: Bjørn Sandvik (turban) => Jan Henrik Øverland 
(janhenrik-overland)

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1565716

Title:
  Drill Down not possible in GIS module

Status in DHIS:
  New

Bug description:
  In the current GIS module drill down is not possible. It showing
  'Loading' but that never ends. Chrome debug report says "Uncaught type
  error: can not read property 'objectName' of undefined".

  But interesting thing is when I save this map as favorites and added
  to dashboard; then from dashboard (not using explore) drill down is
  possible. I am using DHIS2 version 2.22 build 21962. Chrome version
  50.0.2661.57.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1565716/+subscriptions

___
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] [Dhis2-users] GIS default background map provider

2016-03-30 Thread Jan Henrik Øverland
Hi Dapo,

Not in 2.23, but probably 2.24.

On the other hand, the default map should now be a lot faster than before,
so hopefully the need to turn it off isn't there anymore even on slow
connections.

On 30 March 2016 at 13:15, Adedapo Adejumo <dapsyjo...@gmail.com> wrote:

> Hi Jan,
> This is great news - will this also come with the ability to turn off
> background completely in 2.23? , as a user setting perhaps?
>
> Regards,
> Dapo Adejumo
> +2348033683677.
>
> On 29 Mar 2016, at 10:09, Jan Henrik Øverland <
> janhenrik.overl...@gmail.com> wrote:
>
> Hi David,
>
> OpenStreetMap will be the default background map provider in 2.23+.
>
> Jan
>
> On 29 March 2016 at 11:07, David Huser <david.hu...@swisstph.org> wrote:
>
>> Dear all
>>
>> Would it be possible to change the default GIS background map provider
>> from Google to OpenStreetMaps (initial checkbox tick at GIS app and
>> dashboard maps) or even completely disable Google Maps?
>> The source of this request is a political issue of displaying the name of
>> a neighbouring but hostile country in the ministry.
>>
>> Best,
>> David
>>
>>
>>
>> ___
>> 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-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> 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


Re: [Dhis2-devs] [Issue] Unable to open charts as pivot tables on Data Visualizer

2016-03-29 Thread Jan Henrik Øverland
Hi Archana,

Thanks for reporting this. It will be fixed in time for 2.23.

Jan

On 29 March 2016 at 07:54, Archana Chillala 
wrote:

> Hi,
>
> I am using the latest DHIS code from the trunk. I have created a chart
> using the Data Visualiser on DHIS and saved it as a favourite. When I try
> to open this chart as a pivot table through UI, the pivot table module
> doesn't get loaded.
>
>
> [image: Inline image 1]
>
>
> The loader icon just keeps running with no result.
>
>
> [image: Inline image 2]
>
>
> However, this same works with 2.22 and 2.21. I have also observed that
> some UI changes have been made to the Pivot Table module on the trunk.
>
> Is this a known issue?
>
> Could you please help fix this?
>
>
>
> *Thanks*
>
> Archana Chillala
> Application Developer
> Email archa...@thoughtworks.com
> Telephone +91 9100960533 <+91+9100960533>
> [image: ThoughtWorks]
> 
>
> ___
> 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


Re: [Dhis2-devs] Importing of GML Files / Districts without Coordinates

2016-03-08 Thread Jan Henrik Øverland
Hi Lorill,

I am actually not able to reproduce it. I tried this:

- Removed coordinates and feature type for one district
- Created a pivot table and selected one district with coordinates plus the
one without
- Opened it as map

-> The map shows up containing only the district with coordinates

I also tried setting different combinations of NULL/[[[]]]/ as
coordinate and NULL/NONE/ as featuretype, but never managed to get
that error message.

Version 2.22, rev 21892.

Jan

On Mon, Feb 22, 2016 at 12:34 PM, Jan Henrik Øverland <
janhenrik.overl...@gmail.com> wrote:

> Hi Lorill,
>
> Ok thanks, will fix this properly. Please try Jason's suggestion in the
> meantime.
>
> Jan
>
> On Mon, Feb 22, 2016 at 11:39 AM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> Seems like a hack, but I would try and set it to "POLYGON".
>>
>> The client will likely accept these empty polygons, but that would be the
>> correct type in this case.
>>
>> Not ideal, but maybe give it a try.
>>
>> On Fri, Feb 19, 2016 at 7:32 PM, Lorill Crees <lcr...@2paths.com> wrote:
>>
>>> Sorry - forgot to mention this is 2.22 r 21826.
>>>
>>> In the featuretype field we have tried both null and 'NONE'.
>>>
>>> On Fri, Feb 19, 2016 at 4:30 AM, Knut Staring <knu...@gmail.com> wrote:
>>>
>>>> What did you put in the Featuretype field?
>>>>
>>>> On Thu, Feb 18, 2016 at 11:04 PM, Lorill Crees <lcr...@2paths.com>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> We're importing GML files into a DHIS 2 instance and there are a
>>>>> couple of districts that we don't have coordinates for yet. We've uploaded
>>>>> what we have successfully and the mapping looks great.
>>>>>
>>>>> However, if we have a pivot table with data points included from the
>>>>> two districts that we don't have coordinates for then view it as a map, 
>>>>> the
>>>>> entire map does not load at all and gives a javascript error "Cannot read
>>>>> property 'length' of null in core.js. (util.map.getTransformedFeatureArray
>>>>> function). There is no messaging to the user of why the map does not load.
>>>>> Of course we could manually exclude these two districts from the table and
>>>>> it will work, but this is not ideal or intuitive for the users of the
>>>>> system.
>>>>>
>>>>> What can we set the coordinates to for these two districts in the
>>>>> meantime so that the rest of the map will not break? We've tried setting 
>>>>> it
>>>>> to null, empty string, and '[[[]]]'.
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Lorill
>>>>>
>>>>> ___
>>>>> 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
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Knut Staring
>>>> Dept. of Informatics, University of Oslo
>>>> Norway: +4791880522
>>>> Skype: knutstar
>>>> http://dhis2.org
>>>>
>>>
>>>
>>> ___
>>> 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
>>>
>>>
>>
>>
>> --
>> Jason P. Pickering
>> email: jason.p.picker...@gmail.com
>> tel:+46764147049
>>
>> ___
>> 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


Re: [Dhis2-devs] Unable to add Program Indicators from different Programs in Data Visualizer

2016-03-08 Thread Jan Henrik Øverland
(Fixed, closing this thread)

On Fri, Mar 4, 2016 at 12:13 AM, Lars Helge Øverland  wrote:

> Hi Lorill,
>
> can confirm this. We will fix asap.
>
> https://bugs.launchpad.net/dhis2/+bug/1552954
>
>
> regards,
>
> Lars
>
> On Thu, Mar 3, 2016 at 11:45 PM, Lorill Crees  wrote:
>
>> Hi,
>>
>> We are attempting to create a chart of some program indicators across
>> different programs. In the Data Visualizer, first we go to Data -> Program
>> Indicators -> [select program], then select a couple of indicators. When we
>> then change the program in the dropdown, the selections we just made are
>> cleared from the "Selected" list, making it impossible for us to create the
>> chart we need.
>>
>> However, if we follow the same steps in the Pivot Table, the selections
>> from the first program remain and we are able to add more program
>> indicators from the second program then view the table. We can then select
>> Chart -> Open this table as a chart, and we can view the chart this way,
>> but can't do it directly through the Data Visualizer itself.
>>
>> This is 2.22 r 21844. Any suggestions?
>>
>> Thanks,
>>
>> Lorill
>>
>>
>> ___
>> 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
>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> http://www.dhis2.org 
>
>
> ___
> 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


Re: [Dhis2-devs] [Bug 1552954] [NEW] Unable to add Program Indicators from different Programs in Data Visualizer

2016-03-08 Thread Jan Henrik Øverland
Hi Lorill,

Now fixed in trunk and 2.22.

Jan

On Sat, Mar 5, 2016 at 2:34 AM, Lorill Crees <lcr...@2paths.com> wrote:

> Thanks Lars.
>
> Is it possible to backport this also to 2.22?
>
> On Thu, Mar 3, 2016 at 3:12 PM, Lars Helge Øverland <l...@dhis2.org>
> wrote:
>
>> Public bug reported:
>>
>> We are attempting to create a chart of some program indicators across
>> different programs. In the Data Visualizer, first we go to Data ->
>> Program Indicators -> [select program], then select a couple of
>> indicators. When we then change the program in the dropdown, the
>> selections we just made are cleared from the "Selected" list, making it
>> impossible for us to create the chart we need.
>>
>> However, if we follow the same steps in the Pivot Table, the selections
>> from the first program remain and we are able to add more program
>> indicators from the second program then view the table. We can then
>> select Chart -> Open this table as a chart, and we can view the chart
>> this way, but can't do it directly through the Data Visualizer itself.
>>
>> This is 2.22 r 21844.
>>
>> ** Affects: dhis2
>>  Importance: Medium
>>  Assignee: Jan Henrik Øverland (janhenrik-overland)
>>  Status: Confirmed
>>
>> ** Changed in: dhis2
>>  Assignee: (unassigned) => Jan Henrik Øverland (janhenrik-overland)
>>
>> ** Changed in: dhis2
>> Milestone: None => 2.23
>>
>> ** Changed in: dhis2
>>Importance: Undecided => Medium
>>
>> ** Changed in: dhis2
>>Status: New => Confirmed
>>
>> --
>> You received this bug notification because you are a member of DHIS 2
>> developers, which is subscribed to DHIS.
>> https://bugs.launchpad.net/bugs/1552954
>>
>> Title:
>>   Unable to add Program Indicators from different Programs in Data
>>   Visualizer
>>
>> Status in DHIS:
>>   Confirmed
>>
>> Bug description:
>>   We are attempting to create a chart of some program indicators across
>>   different programs. In the Data Visualizer, first we go to Data ->
>>   Program Indicators -> [select program], then select a couple of
>>   indicators. When we then change the program in the dropdown, the
>>   selections we just made are cleared from the "Selected" list, making
>>   it impossible for us to create the chart we need.
>>
>>   However, if we follow the same steps in the Pivot Table, the
>>   selections from the first program remain and we are able to add more
>>   program indicators from the second program then view the table. We can
>>   then select Chart -> Open this table as a chart, and we can view the
>>   chart this way, but can't do it directly through the Data Visualizer
>>   itself.
>>
>>   This is 2.22 r 21844.
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/dhis2/+bug/1552954/+subscriptions
>>
>> ___
>> 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
>
>
___
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] Misleading GIS error message

2016-03-03 Thread Jan Henrik Øverland
Hi Prosper,

Write a blueprint. Thanks.

Jan

On Thu, Mar 3, 2016 at 5:09 AM, Prosper BT  wrote:

> Dear Team,
>
> This morning investigating a DATIM PEPFAR ticket I just realized that some
> error messages are not description enough to give a user enough information
> to identify the issues in their selections.
>
> The user has many data elements and periods presented in pivot tables and
> when she turns to open the table as a map, the error message "No data
> Found" yet she is able to see the data in pivot table to add also she had
> hidden some empty rows.
>
> This seem to be a dimension selection not easily handled by GIS dimension
> options of one thematics layer, one data element and one period.
>
> The error probably would have been too much data to handle or something
> more descriptive.
>
> I know GIS is undergoing a dramatic change, may be this could be added in
> the new App.
>
> Let me know if I can add it as blue print?
>
> Regards
>
> --
> Prosper Behumbiize, MPH
> Global HISP| University Of Oslo/HISP Uganda
> +256 752 751 776 | +256 776 139 139
> pros...@hispuganda.org  | pros...@dhis2.org | Skype:
> prospertb
>
___
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] [Bug 1552367] Re: GIS facility layer maps not working on dashboard

2016-03-02 Thread Jan Henrik Øverland
** Changed in: dhis2
   Status: Confirmed => Fix Committed

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1552367

Title:
  GIS facility layer maps not working on dashboard

Status in DHIS:
  Fix Released

Bug description:
  GIS favorites only containing a facility layer (no thematic layers) do
  not work on the dashboard, where a message "no valid coordinates
  found" is displayed.

  Steps to reproduce.

  - Create a GIS favorite which only containing a facility layer.
  - Add this favorite to dashboard.
  - Load the dashboard.
  > A message "no valid coordinates found" is displayed instead of the 
dashboard.

  Affects version 2.22.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1552367/+subscriptions

___
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] [Bug 1549895] [NEW] Show Heirarchy Not working 2.22

2016-02-25 Thread Jan Henrik Øverland
Hi Timothy!

It will work if you move the orgunit dimension to *rows*. This was by
design as we thought there won't be much hierarchical effect horizontally -
only take up a lot of space.

Would you like to see the full orgunit path horizontally as well? If there
is a need for this we could probably implement it.

Jan

On Thu, Feb 25, 2016 at 5:47 PM, Timothy Harding 
wrote:

> Public bug reported:
>
> The Show Hierarchy button is not working, or working intermittently.
>
> See Attached GIF for steps to reproduce.
>
> ** Affects: dhis2
>  Importance: Undecided
>  Status: New
>
> ** Attachment added: "ShowHierarchy.gif"
>
> https://bugs.launchpad.net/bugs/1549895/+attachment/4581000/+files/ShowHierarchy.gif
>
> --
> You received this bug notification because you are a member of DHIS 2
> developers, which is subscribed to DHIS.
> https://bugs.launchpad.net/bugs/1549895
>
> Title:
>   Show Heirarchy Not working 2.22
>
> Status in DHIS:
>   New
>
> Bug description:
>   The Show Hierarchy button is not working, or working intermittently.
>
>   See Attached GIF for steps to reproduce.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/dhis2/+bug/1549895/+subscriptions
>
> ___
> 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


Re: [Dhis2-devs] Importing of GML Files / Districts without Coordinates

2016-02-22 Thread Jan Henrik Øverland
Hi Lorill,

Ok thanks, will fix this properly. Please try Jason's suggestion in the
meantime.

Jan

On Mon, Feb 22, 2016 at 11:39 AM, Jason Pickering <
jason.p.picker...@gmail.com> wrote:

> Seems like a hack, but I would try and set it to "POLYGON".
>
> The client will likely accept these empty polygons, but that would be the
> correct type in this case.
>
> Not ideal, but maybe give it a try.
>
> On Fri, Feb 19, 2016 at 7:32 PM, Lorill Crees  wrote:
>
>> Sorry - forgot to mention this is 2.22 r 21826.
>>
>> In the featuretype field we have tried both null and 'NONE'.
>>
>> On Fri, Feb 19, 2016 at 4:30 AM, Knut Staring  wrote:
>>
>>> What did you put in the Featuretype field?
>>>
>>> On Thu, Feb 18, 2016 at 11:04 PM, Lorill Crees 
>>> wrote:
>>>
 Hi,

 We're importing GML files into a DHIS 2 instance and there are a couple
 of districts that we don't have coordinates for yet. We've uploaded what we
 have successfully and the mapping looks great.

 However, if we have a pivot table with data points included from the
 two districts that we don't have coordinates for then view it as a map, the
 entire map does not load at all and gives a javascript error "Cannot read
 property 'length' of null in core.js. (util.map.getTransformedFeatureArray
 function). There is no messaging to the user of why the map does not load.
 Of course we could manually exclude these two districts from the table and
 it will work, but this is not ideal or intuitive for the users of the
 system.

 What can we set the coordinates to for these two districts in the
 meantime so that the rest of the map will not break? We've tried setting it
 to null, empty string, and '[[[]]]'.

 Thanks,

 Lorill

 ___
 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


>>>
>>>
>>> --
>>> Knut Staring
>>> Dept. of Informatics, University of Oslo
>>> Norway: +4791880522
>>> Skype: knutstar
>>> http://dhis2.org
>>>
>>
>>
>> ___
>> 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
>>
>>
>
>
> --
> Jason P. Pickering
> email: jason.p.picker...@gmail.com
> tel:+46764147049
>
> ___
> 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


Re: [Dhis2-devs] Importing of GML Files / Districts without Coordinates

2016-02-19 Thread Jan Henrik Øverland
Hi Lorill,

Which DHIS version are you running?

Jan

On Thu, Feb 18, 2016 at 11:04 PM, Lorill Crees  wrote:

> Hi,
>
> We're importing GML files into a DHIS 2 instance and there are a couple of
> districts that we don't have coordinates for yet. We've uploaded what we
> have successfully and the mapping looks great.
>
> However, if we have a pivot table with data points included from the two
> districts that we don't have coordinates for then view it as a map, the
> entire map does not load at all and gives a javascript error "Cannot read
> property 'length' of null in core.js. (util.map.getTransformedFeatureArray
> function). There is no messaging to the user of why the map does not load.
> Of course we could manually exclude these two districts from the table and
> it will work, but this is not ideal or intuitive for the users of the
> system.
>
> What can we set the coordinates to for these two districts in the meantime
> so that the rest of the map will not break? We've tried setting it to null,
> empty string, and '[[[]]]'.
>
> Thanks,
>
> Lorill
>
> ___
> 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


Re: [Dhis2-devs] [Dhis2-users] JS embeds broken in 2.22

2016-01-25 Thread Jan Henrik Øverland
Hi Matt,

They've not been generated yet. Will try to fix that later this week.

Jan
On Jan 25, 2016 12:43, "Matt Berg"  wrote:

> Hi everyone,
>
> JS embeds seem to be broken on 2.22.
>
> Get 404 on these links.
>
> http://dhis2-cdn.org/v222/ext/resources/css/ext-plugin-gray.css; />
> http://dhis2-cdn.org/v222/ext/ext-all.js";>
> http://dhis2-cdn.org/v222/plugin/chart.js";>
>
> Thanks,
>
> Matt
>
>>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> 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


Re: [Dhis2-devs] Multilingual analytics - DE and IND filter does not use translations

2016-01-12 Thread Jan Henrik Øverland
Hi Victor, I will try to find some to look at this today.

On Mon, Jan 11, 2016 at 6:12 PM, Victor Garcia  wrote:

> Thanks Morten,
>
> any update on this issue? Could it be easily solved?
>
> Regards!
>
> Víctor
>
> On 22 December 2015 at 15:52, Morten Olav Hansen 
> wrote:
>
>> Hi
>>
>> I'm including Jan who has been working on updating the reporting tools
>> for translation. All that is required is to change name:like:XYZ to
>> displayName:like:XYZ.
>>
>> --
>> Morten
>>
>> On Tue, Dec 22, 2015 at 3:45 PM, Victor Garcia 
>> wrote:
>>
>>> Hi all,
>>>
>>> in analytics apps, we have noticed that DE & IND filters don't use the
>>> translated name to do the search. For example, if we are working in Spanish
>>> and we want to search for this dataelement
>>>
>>> English: "Donors: Hepatitis B exams"
>>> Spanish: "Donantes: Exámenes de Hepatitis B"
>>>
>>> we have to write "donors" (english word) in the search box to find it
>>> (see attached picture).
>>>
>>> We guess that this is not a bug, but a non-implemented feature. Looking
>>> at the roadmap, maybe this feature
>>> 
>>>  (2.23) has
>>> something to do with this issue.
>>>
>>> Meanwhile, could it be possible to have a workaround to deal with this
>>> problem?
>>>
>>> Using DHIS 2.21 rev 20971.
>>>
>>> Thank you!
>>>
>>> Víctor
>>>
>>> ___
>>> 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


Re: [Dhis2-devs] Multilingual analytics - DE and IND filter does not use translations

2016-01-12 Thread Jan Henrik Øverland
Morten: It does an ilike on displayName/displayShortName.

On Tue, Jan 12, 2016 at 10:39 AM, Jan Henrik Øverland <
janhenrik.overl...@gmail.com> wrote:

> Hi Victor, I will try to find some to look at this today.
>
> On Mon, Jan 11, 2016 at 6:12 PM, Victor Garcia <vgarcia...@gmail.com>
> wrote:
>
>> Thanks Morten,
>>
>> any update on this issue? Could it be easily solved?
>>
>> Regards!
>>
>> Víctor
>>
>> On 22 December 2015 at 15:52, Morten Olav Hansen <morte...@gmail.com>
>> wrote:
>>
>>> Hi
>>>
>>> I'm including Jan who has been working on updating the reporting tools
>>> for translation. All that is required is to change name:like:XYZ to
>>> displayName:like:XYZ.
>>>
>>> --
>>> Morten
>>>
>>> On Tue, Dec 22, 2015 at 3:45 PM, Victor Garcia <vgarcia...@gmail.com>
>>> wrote:
>>>
>>>> Hi all,
>>>>
>>>> in analytics apps, we have noticed that DE & IND filters don't use the
>>>> translated name to do the search. For example, if we are working in Spanish
>>>> and we want to search for this dataelement
>>>>
>>>> English: "Donors: Hepatitis B exams"
>>>> Spanish: "Donantes: Exámenes de Hepatitis B"
>>>>
>>>> we have to write "donors" (english word) in the search box to find it
>>>> (see attached picture).
>>>>
>>>> We guess that this is not a bug, but a non-implemented feature. Looking
>>>> at the roadmap, maybe this feature
>>>> <https://blueprints.launchpad.net/dhis2/+spec/web-api-support-translation-in-search>
>>>>  (2.23) has
>>>> something to do with this issue.
>>>>
>>>> Meanwhile, could it be possible to have a workaround to deal with this
>>>> problem?
>>>>
>>>> Using DHIS 2.21 rev 20971.
>>>>
>>>> Thank you!
>>>>
>>>> Víctor
>>>>
>>>> ___
>>>> 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


Re: [Dhis2-devs] Multilingual analytics - DE and IND filter does not use translations

2016-01-12 Thread Jan Henrik Øverland
 Happy hour in Ho Chi Minh?



On Tue, Jan 12, 2016 at 2:57 PM, Morten Olav Hansen <morte...@gmail.com>
wrote:

> Jan, what you send me is not that
>
> All this lying is getting us nowhere. You don't like the truth?
>
>
> On Tuesday, 12 January 2016, Jan Henrik Øverland <
> janhenrik.overl...@gmail.com> wrote:
>
>> Morten: It does an ilike on displayName/displayShortName.
>>
>> On Tue, Jan 12, 2016 at 10:39 AM, Jan Henrik Øverland <
>> janhenrik.overl...@gmail.com> wrote:
>>
>>> Hi Victor, I will try to find some to look at this today.
>>>
>>> On Mon, Jan 11, 2016 at 6:12 PM, Victor Garcia <vgarcia...@gmail.com>
>>> wrote:
>>>
>>>> Thanks Morten,
>>>>
>>>> any update on this issue? Could it be easily solved?
>>>>
>>>> Regards!
>>>>
>>>> Víctor
>>>>
>>>> On 22 December 2015 at 15:52, Morten Olav Hansen <morte...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi
>>>>>
>>>>> I'm including Jan who has been working on updating the reporting tools
>>>>> for translation. All that is required is to change name:like:XYZ to
>>>>> displayName:like:XYZ.
>>>>>
>>>>> --
>>>>> Morten
>>>>>
>>>>> On Tue, Dec 22, 2015 at 3:45 PM, Victor Garcia <vgarcia...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> in analytics apps, we have noticed that DE & IND filters don't use
>>>>>> the translated name to do the search. For example, if we are working in
>>>>>> Spanish and we want to search for this dataelement
>>>>>>
>>>>>> English: "Donors: Hepatitis B exams"
>>>>>> Spanish: "Donantes: Exámenes de Hepatitis B"
>>>>>>
>>>>>> we have to write "donors" (english word) in the search box to find it
>>>>>> (see attached picture).
>>>>>>
>>>>>> We guess that this is not a bug, but a non-implemented feature.
>>>>>> Looking at the roadmap, maybe this feature
>>>>>> <https://blueprints.launchpad.net/dhis2/+spec/web-api-support-translation-in-search>
>>>>>>  (2.23) has
>>>>>> something to do with this issue.
>>>>>>
>>>>>> Meanwhile, could it be possible to have a workaround to deal with
>>>>>> this problem?
>>>>>>
>>>>>> Using DHIS 2.21 rev 20971.
>>>>>>
>>>>>> Thank you!
>>>>>>
>>>>>> Víctor
>>>>>>
>>>>>> ___
>>>>>> 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
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
> --
> --
> Morten
>
>
___
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] Problems with GeoJSON uploads

2016-01-08 Thread Jan Henrik Øverland
Hi Jason, how did you get five levels of square brackets? Ps should have
three, MPs should have four: http://geojson.org/geojson-spec.html#id4

At the moment the GML importer eats both Ps and MPs, but stores them all as
MPs (four brackets) as far as I know. Makes it less complex on both ends.

I can see the problem though when someone who knows what he's doing wants
to PUT geojson directly (plumbers...) and his file is full of Ps. It's
still recommended to let the GML importer process it (validation / chops
polygon coordinates to six decimals etc), but I just commited a fix to the
GIS app (trunk and 2.21) that makes sure valid polygons (three brackets)
are rendered, regardless of the feature type.

Hope that helps.

On Fri, Jan 8, 2016 at 8:10 AM, Jason Pickering  wrote:

> Hi Morten,
>
> I am not sure what we support, but there are three feature types as far as
> I know: Points ,Polygons and MultiPolygons. If we only support MultiPolys,
> that would imply that all Polys would need to be converted prior to import
> into DHIS2, which is fine, but based on my mail previously, it seems that
> it must be exactly the opposite, namely converting Multi-Polys to Polys.
>
> I was able to render a file with both MultiPolys as well as Polygons in
> this client without issues, which had been exported from a shape file to
> GeoJSON using ogr2ogr.
>
> Jan, could you offer any insight into how to handle Polygons and
> Multi-polygons?
>
> Regards,
> Jason
>
>
> On Fri, Jan 8, 2016 at 6:41 AM, Morten Olav Hansen 
> wrote:
>
>> Hi Jason
>>
>> Do we actually support anything other than MultiPolygons and Points? For
>> my GeoJson exporter, I default to MultiPolygon unless its a Point.
>>
>> I have been able to successfully render all geojson using
>> http://geojson.io
>>
>> What is supported by GIS, I don't know, Jan would have to explain that.
>>
>> --
>> Morten
>>
>> On Tue, Jan 5, 2016 at 7:16 PM, Jason Pickering <
>> jason.p.picker...@gmail.com> wrote:
>>
>>>
>>> Hi Devs,
>>> I am attempting to directly update the coordinates using the WebAPI, but
>>> am running into issues with the formatting (I think) of JSON fragments.
>>>
>>> The worflow is as follows.
>>> 1) Use MapShaper to simplify the coordinates.
>>> 2) Export as GeoJSON.
>>> 3) Use curl to PUT the coordinates to the correct end point, e.g.
>>> http://myserver/api/organisationUnits/abcd1234/coordinates
>>> 4) Use curl to PUT the feature type (either "POLYGON" or
>>> "MULTI_POLYGON") depending on what is reported by the GeoJSON.
>>>
>>> That part seems to work fine and I get something which looks like this.
>>>
>>>
>>> Sample polygon..
>>>
>>> {
>>>
>>>- featureType: "POLYGON",
>>>- coordinates: 
>>> "125.8054,-8.7452],[125.8038,-8.7455],[125.8031,-8.7455],[125.8031,-8.7471],[125.8028,-8.748],[125.8021,-8.7488],[125.8013,-8.7492],[125.8004,-8.7494],
>>>
>>>
>>> Sample MultiPolygon:
>>>
>>>
>>> {
>>>
>>>- featureType: "MULTI_POLYGON",
>>>- coordinates: 
>>> "[127.3286,-8.448],[127.3281,-8.4479],[127.3272,-8.4476],[127.3271,-8.4473],[127.3267,-8.447],[127.3254,-8.4473],[127.3251,-8.4471],[127.3249,-8.4466],[127.3246,-8.4465]...
>>>
>>>
>>>
>>> In the GIS client, when loading any of the MultiPolygon's I get
>>> Uncaught TypeError: Cannot read property 'length' of null with  
>>> util.map.getTransformedFeatureArray.
>>>
>>> If I mangle the GeoJSON such that is has four square brackets (instead of 
>>> five as above) things works OK. If I change the number of square brackets 
>>> of normal polygons to three (as in the spec example here 
>>> ) , I get the same error.
>>>
>>> Is there a particular reason for this? It would seem to be desirable to 
>>> allow the upload of GeoJSON directly from a GIS system, without having to 
>>> mangle it before.
>>>
>>> Regards,
>>> Jason
>>>
>>>
>>>
>>>
>>> --
>>> Jason P. Pickering
>>> email: jason.p.picker...@gmail.com
>>> tel:+46764147049
>>>
>>> ___
>>> 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
>>>
>>>
>>
>
>
> --
> Jason P. Pickering
> email: jason.p.picker...@gmail.com
> tel:+46764147049
>
___
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] Problems with GeoJSON uploads

2016-01-08 Thread Jan Henrik Øverland
On Fri, Jan 8, 2016 at 1:21 PM, Jason Pickering <jason.p.picker...@gmail.com
> wrote:

> Hi Jan,
> Let me describe the full work flow.
>
> 1) Shape files were simplified and exported with MapShaper to GeoJSON.
> 2) The shapefiles DBF were read and the JSON payload for all the orgunits
> was created (according to DHIS2 metadata requirements)
> 3) The GeoJSON list was read, and joined with the rest of the metadata.
> The reason for the five brackets instead of four, was that when I had three
> brackets for Polygons, this did not work. The five brackets resulted from
> the fact that the GeoJSON list was itself a list. Thus, it had five
> brackets, instead of four. I was thinking that maybe the polygon's needed
> to be contained by a list (thus the reason for four brackets instead of
> three).
> 4) This was then uploaded as JSON to the DHIS2 metadata API.
>
> GML was not used, as this system was being "booted" from scratch
> basically, and it was deemed easier to try and create all the metadata in
> one step.
>
> So, I guess the fix which is needed is that Polygon segments should have
> three brackets, and MultiPolys should have four brackets, then I think we
> are good. I am not sure that we need to worry about whether Polys are
> actually stored as MPs or the other way around. So if I understand you
> correctly, if I upload a GeoJSON segment with three brackets (a poly) it
> will work, as will a multi-poly (four brackets)?
>

Correct

>
> Regards,
> Jason
>
>
>
>
> On Fri, Jan 8, 2016 at 11:39 AM, Jan Henrik Øverland <
> janhenrik.overl...@gmail.com> wrote:
>
>> Hi Jason, how did you get five levels of square brackets? Ps should have
>> three, MPs should have four: http://geojson.org/geojson-spec.html#id4
>>
>> At the moment the GML importer eats both Ps and MPs, but stores them all
>> as MPs (four brackets) as far as I know. Makes it less complex on both ends.
>>
>> I can see the problem though when someone who knows what he's doing wants
>> to PUT geojson directly (plumbers...) and his file is full of Ps. It's
>> still recommended to let the GML importer process it (validation / chops
>> polygon coordinates to six decimals etc), but I just commited a fix to the
>> GIS app (trunk and 2.21) that makes sure valid polygons (three brackets)
>> are rendered, regardless of the feature type.
>>
>> Hope that helps.
>>
>> On Fri, Jan 8, 2016 at 8:10 AM, Jason Pickering <
>> jason.p.picker...@gmail.com> wrote:
>>
>>> Hi Morten,
>>>
>>> I am not sure what we support, but there are three feature types as far
>>> as I know: Points ,Polygons and MultiPolygons. If we only support
>>> MultiPolys, that would imply that all Polys would need to be converted
>>> prior to import into DHIS2, which is fine, but based on my mail previously,
>>> it seems that it must be exactly the opposite, namely converting
>>> Multi-Polys to Polys.
>>>
>>> I was able to render a file with both MultiPolys as well as Polygons in
>>> this client without issues, which had been exported from a shape file to
>>> GeoJSON using ogr2ogr.
>>>
>>> Jan, could you offer any insight into how to handle Polygons and
>>> Multi-polygons?
>>>
>>> Regards,
>>> Jason
>>>
>>>
>>> On Fri, Jan 8, 2016 at 6:41 AM, Morten Olav Hansen <morte...@gmail.com>
>>> wrote:
>>>
>>>> Hi Jason
>>>>
>>>> Do we actually support anything other than MultiPolygons and Points?
>>>> For my GeoJson exporter, I default to MultiPolygon unless its a Point.
>>>>
>>>> I have been able to successfully render all geojson using
>>>> http://geojson.io
>>>>
>>>> What is supported by GIS, I don't know, Jan would have to explain that.
>>>>
>>>> --
>>>> Morten
>>>>
>>>> On Tue, Jan 5, 2016 at 7:16 PM, Jason Pickering <
>>>> jason.p.picker...@gmail.com> wrote:
>>>>
>>>>>
>>>>> Hi Devs,
>>>>> I am attempting to directly update the coordinates using the WebAPI,
>>>>> but am running into issues with the formatting (I think) of JSON 
>>>>> fragments.
>>>>>
>>>>> The worflow is as follows.
>>>>> 1) Use MapShaper to simplify the coordinates.
>>>>> 2) Export as GeoJSON.
>>>>> 3) Use curl to PUT the coordinates to the correct end point, e.g.
>>>>> http://myserver/api/organisationUnits/abcd1234/

Re: [Dhis2-devs] [Dhis2-users] Favourites with Multiple Analysis Org Units

2016-01-07 Thread Jan Henrik Øverland
You probably do it right. I know there is a vulnerability in how the server
handles this at the moment. We will try to fix this asap.

On Wed, Jan 6, 2016 at 6:05 PM, Pamod Amarakoon <pam...@gmail.com> wrote:

> Hi Jan,
>
> in the demo instance I created following users
>
> test1 (role:data entry operator, group : test, Org Unit : Bo)
> test2 (role:data entry operator, group : test, Org Unit : Bo, Bombali)
>
> I also created 2 favourite items with org unit selected as user org unit.
> Created a dashboard ANC_test and assigned it to the particular group of
> which test 1 and test 2 belongs to.
>
> What I expected to see is each user being presented reports only related
> to the org units they are assigned (in this case information related to org
> unit Bo). But following is the dashboard of the user test1, which contain
> analytics of whole country
>
> ​
> Am I missing something or is there any other way to get this done.
>
> Thank a lot.
>
>
>
>
> On Wed, Jan 6, 2016 at 10:29 PM, Pamod Amarakoon <pam...@gmail.com> wrote:
>
>> Hi Ola,
>>
>> Will check that out. Thanx for the tip
>>
>> On Wed, Jan 6, 2016 at 1:22 PM, Ola Hodne Titlestad <ol...@ifi.uio.no>
>> wrote:
>>
>>> Pamod,
>>>
>>> One relatively new Dashboard feature that might interest you is the
>>> ability to switch 'user orgunit' for all items in a dashboard using the
>>> gear icon next to the Search field. This will basically replace the 'user
>>> orgunit' parameter value with whatever orgunit you select in the orgunit
>>> selection tree.
>>>
>>> Ola
>>> --
>>> On 5 Jan 2016 16:47, "Jan Henrik Øverland" <janhenrik.overl...@gmail.com>
>>> wrote:
>>>
>>>> Hi Pamod,
>>>>
>>>> Having multiple user org units should work well. Please note that "user
>>>> org unit" (it should say "units" instead of "unit", I will fix that) refers
>>>> to "Data capture and maintenance organisation units" in the user
>>>> maintenance ui. The other one, "Data output and analysis organisation
>>>> units", only controls the user's access in the org unit tree.
>>>>
>>>> Jan
>>>>
>>>> On Mon, Dec 28, 2015 at 12:30 PM, Pamod Amarakoon <pam...@gmail.com>
>>>> wrote:
>>>>
>>>>> Dear All,
>>>>>
>>>>> Is it possible to create favorites (pivot table, event visualizer) for
>>>>> users who are assigned to multiple data analysis org units, when the 
>>>>> option
>>>>> "User org unit" is selected at pivot table/event visualizer.
>>>>>
>>>>> I tried this on demo server by assigning the user "test1" to both Bo
>>>>> and Bombali and it seems to analyze only the first org unit "Bo".
>>>>>
>>>>>
>>>>> ​
>>>>>
>>>>> What's the proper method to follow to get analysis results for users
>>>>> who are assigned for multiple analysis org units.
>>>>>
>>>>> Thank you
>>>>>
>>>>> --
>>>>> Regards,
>>>>> Pamod Amarakoon
>>>>>
>>>>> Confidentiality Notice: the information contained in this email and
>>>>> any attachments may be legally privileged and confidential. If you are not
>>>>> an intended recipient, you are hereby notified that any dissemination,
>>>>> distribution, or copying of this e-mail is strictly prohibited. If you 
>>>>> have
>>>>> received this e-mail in error, please notify the sender and permanently
>>>>> delete the e-mail and any attachments immediately. You should not retain,
>>>>> copy or use this e-mail or any attachments for any purpose, nor disclose
>>>>> all or any part of the contents to any other person.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ___
>>>>> Mailing list: https://launchpad.net/~dhis2-users
>>>>> Post to : dhis2-us...@lists.launchpad.net
>>>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>
>>>>>
>>>>
>>>> ___
>>>> Mailing list: https://launchpad.net/~dhis

Re: [Dhis2-devs] [Dhis2-users] Favourites with Multiple Analysis Org Units

2016-01-05 Thread Jan Henrik Øverland
Hi Pamod,

Having multiple user org units should work well. Please note that "user org
unit" (it should say "units" instead of "unit", I will fix that) refers to
"Data capture and maintenance organisation units" in the user maintenance
ui. The other one, "Data output and analysis organisation units", only
controls the user's access in the org unit tree.

Jan

On Mon, Dec 28, 2015 at 12:30 PM, Pamod Amarakoon  wrote:

> Dear All,
>
> Is it possible to create favorites (pivot table, event visualizer) for
> users who are assigned to multiple data analysis org units, when the option
> "User org unit" is selected at pivot table/event visualizer.
>
> I tried this on demo server by assigning the user "test1" to both Bo and
> Bombali and it seems to analyze only the first org unit "Bo".
>
>
> ​
>
> What's the proper method to follow to get analysis results for users who
> are assigned for multiple analysis org units.
>
> Thank you
>
> --
> Regards,
> Pamod Amarakoon
>
> Confidentiality Notice: the information contained in this email and any
> attachments may be legally privileged and confidential. If you are not an
> intended recipient, you are hereby notified that any dissemination,
> distribution, or copying of this e-mail is strictly prohibited. If you have
> received this e-mail in error, please notify the sender and permanently
> delete the e-mail and any attachments immediately. You should not retain,
> copy or use this e-mail or any attachments for any purpose, nor disclose
> all or any part of the contents to any other person.
>
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> 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] [Bug 1527640] Re: Multilingual analytics - DE Group Sets panels show in English

2015-12-18 Thread Jan Henrik Øverland
** Changed in: dhis2
 Assignee: Morten Olav Hansen (mortenoh) => Lars Helge Øverland (larshelge)

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1527640

Title:
  Multilingual analytics - DE Group Sets panels show in English

Status in DHIS:
  Confirmed

Bug description:
  In Analytics, DE Group Set Panel Title shows in English, but content
  (DE Groups) show in targeted language - see attached screen

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1527640/+subscriptions

___
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] [Bug 1527640] Re: Multilingual analytics - DE Group Sets panels show in English

2015-12-18 Thread Jan Henrik Øverland
** Changed in: dhis2
 Assignee: Jan Henrik Øverland (janhenrik-overland) => Morten Olav Hansen 
(mortenoh)

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1527640

Title:
  Multilingual analytics - DE Group Sets panels show in English

Status in DHIS:
  Confirmed

Bug description:
  In Analytics, DE Group Set Panel Title shows in English, but content
  (DE Groups) show in targeted language - see attached screen

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1527640/+subscriptions

___
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] Query regarding ExtJs

2015-11-04 Thread Jan Henrik Øverland
Hi, I just replied in the private thead.

On Wed, Nov 4, 2015 at 9:40 AM, Sourabh Bhardwaj 
wrote:

> Hi Sir,
>
> This side Sourabh (working as software developer Intern  in Hisp India)
> and Priyanka(working as software developer in Hisp India)
>
> There is one requirement that has come up on ExtJS to plot charts
> dynamically by getting data through web API.
> We are facing with a query as explained as follows: We want to display the
> data(period) in legend dynamically as shown in figure 1.
> [image: Inline image 1]
> figure 1
>
>
> But we are getting output as shown in figure 2, although  it represents
> data from Apr14 to Mar15 still the legend shows Apr14 to Sep14
>
> [image: Inline image 2]
>
> figure 2
>
> Currently we are fixing the period in legend as shown in highlighted text-
>
>   Ext.require('Ext.chart.*');
> Ext.require('Ext.layout.container.Fit');
>
> Ext.onReady(function ()
> {
> var store = Ext.create('Ext.data.JsonStore', {
>  fields: ['ou', 'Apr14ToSep14', 'Apr15ToSep15']
>
>  });
>
> var data = [];
>
> for (var i = 0; i < count; i++){
>
> data.push({ou: orgUnitname[i], Apr14ToSep14: result[i], Apr15ToSep15:
> result1[i] });
> }
>
> store.loadData(data);
>
> console.log(store.getRange());
>
> var panel1 = Ext.create('widget.panel', {
> width: 600,
> height: 400,
> title: 'Early ANC Registration',
> renderTo: Ext.getBody(),
> layout: 'fit',
> items: {
> xtype: 'chart',
> animate: true,
> shadow: true,
> store: store,
> legend: {
> position: 'right',
> renderer: function(storeItem, item) {
> this.setTitle(storeItem.get('startPeriod') + 'to ' +
> storeItem.get('endPeriod') );
>   }
> },
> axes: [{
> type: 'Numeric',
> position: 'left',
> fields: ['Apr14ToSep14', 'Apr15ToSep15'],
> title: false,
> grid: true,
> roundToDecimal: false
> },  {
> type: 'Category',
> position: 'Bottom',
> fields: ['ou'],
> label: {
> rotate:{degrees:270}
> },
> title: false
> }],
> series: [{
> //type: 'bar',
> type: 'column',
> axis: 'bottom',
> gutter: 80,
> xField: 'ou',
> yField: ['Apr14ToSep14', 'Apr15ToSep15'],
> stacked: false,
> tips: {
> trackMouse: true,
> width: 65,
> height: 28,
> renderer: function(storeItem, item) {
> this.setTitle(String(item.value[1]));
> }
> }
> }]
> }
> });
> });
> });
> })
>
> })
> })
>  We tried making it dynamic by taking a variable and passing as:
> var periodStr1 = startPeriod +"to"+ endPeriod;
>
> fields: ['ou', periodStr1 , periodStr1]. But this doesn't work.
>
> Can you please suggest a way to make the legend dynamic based on the
> periods passed by the user.
>
> Regards
> Sourabh Bhardwaj.
>
> ___
> 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] [Bug 1490758] Re: Gauge Chart not using Legend Set Colour Scheme in 2.20

2015-10-26 Thread Jan Henrik Øverland
** Changed in: dhis2
 Assignee: (unassigned) => Jan Henrik Øverland (janhenrik-overland)

** Changed in: dhis2
   Status: New => Fix Released

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1490758

Title:
  Gauge Chart not using Legend Set Colour Scheme in 2.20

Status in DHIS:
  Fix Released

Bug description:
  Guage charts are supposed to use the colour coding for legend sets assigned 
to indicators, This is however not working in 2.20 (Build Revision 19811).
  Replicated on the SL Demo server.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1490758/+subscriptions

___
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] [Bug 1509560] Re: Gauge Chart Returns Bar Chart Type in Data Visualizer

2015-10-24 Thread Jan Henrik Øverland
** Changed in: dhis2
 Assignee: (unassigned) => Jan Henrik Øverland (janhenrik-overland)

** Changed in: dhis2
Milestone: None => 2.21

** Changed in: dhis2
   Status: New => Fix Released

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1509560

Title:
  Gauge Chart Returns Bar Chart Type in Data Visualizer

Status in DHIS:
  Fix Released

Bug description:
  Selecting a gauge chart type returns a bar chart type in Data Visualizer.
  Replicated on Demo Server.

  Version 2.21  Rev 20840.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1509560/+subscriptions

___
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] CORS whitelist

2015-10-08 Thread Jan Henrik Øverland
Hi Sourabh,

It's not clear to me what you want to do. You say you want to read data
from http://shifw.nrhmharyana.gov.in

(which
is not a DHIS2 instance?).

If you have an app running on *mydomain.org * and want
to pull data from a DHIS2 instance running on *dhis2domain.org
 *- then you need to add "mydomain.org" to the
DHIS2 CORS whitelist on *dhis2domain.com .*

On Thu, Oct 8, 2015 at 11:24 AM, Morten Olav Hansen 
wrote:

> Hi
>
> Looking at your URL, I think you are enabling CORS in the wrong end. The
> server you are requesting from is not DHIS2? You need that server to
> support CORS, not the server you are making the request from.
>
> --
> Morten
>
> On Wed, Oct 7, 2015 at 12:26 PM, Sourabh Bhardwaj 
> wrote:
>
>> Hi,
>>
>> I want to pull data from third party and I have added the domain to CORS
>> Whitelist in >Settings>Access>CORS Whitelist but still it is giving the
>> same error: *xmlhttprequest  Like: *XMLHttpRequest cannot load the
>> requested url .
>> Can anybody help ?
>>
>> Thanks & Regards,
>> Sourabh Bhardwaj
>>
>>
>>
>> ___
>> 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
>
>
___
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-core] release 2.21

2015-10-08 Thread Jan Henrik Øverland
Won't make it myself, but this is a good idea.

On Thu, Oct 8, 2015 at 7:11 PM, Lars Helge Øverland 
wrote:

> Hi devs,
>
> in terms of the 2.21 release: we will have a code freeze on Monday morning.
>
> For all Oslo-based devs - lets meet on Monday at 10 AM in the office and
> do testing and documentation together. We will pair up two by two and test
> each others features. We will also document and create examples in demo
> database.
>
> Please remember to update all your blueprints before Monday:
>
> https://launchpad.net/dhis2/+milestone/2.21
>
> Make sure that all your features are documented where appropriate.
>
> https://github.com/dhis2/dhis2-docs
>
> regards,
>
> Lars
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> http://www.dhis2.org 
>
>
> --
> Mailing list: https://launchpad.net/~dhis2-devs-core
> Post to : dhis2-devs-core@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs-core
> More help   : https://help.launchpad.net/ListHelp
>
>
-- 
Mailing list: https://launchpad.net/~dhis2-devs-core
Post to : dhis2-devs-core@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs-core
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Dhis2-users] Web Portal with DHIS2

2015-10-07 Thread Jan Henrik Øverland
Hi Hannan,

You need to use version 2.20.

On Mon, Oct 5, 2015 at 1:43 PM, Hannan Khan <hann...@gmail.com> wrote:

> I am facing the same problem: One script following the manual is:
>
> 
> 
> 
>   http://dhis2-cdn.org/v219/ext/resources/css/ext-plugin-gray.css; />
>   http://dhis2-cdn.org/v219/ext/ext-all.js&quot</a>;>
>   http://dhis2-cdn.org/v219/plugin/chart.js&quot</a>;>
>
>   
> var base = "<a  rel="nofollow" href="http://103.247.238.82:8080/dhismohfw/&quot">http://103.247.238.82:8080/dhismohfw/&quot</a>;;
>
> // Login - if OK, call the setLinks function
>
> Ext.onReady( function() {
>   Ext.Ajax.request({
> url: base + "dhis-web-commons-security/login.action",
> method: "POST",
> params: { j_username: "view", j_password: "DGHS1234" },
> crossDomain: true,
> success: setLinks
>   });
> });
>
> function setLinks() {
>
>   // Referring to an existing chart through the id parameter, render
> to "chart1" div
>
>   DHIS.getChart({ url: base, el: "chart1", id: "SYELB2ltOpL" });
>
>   // Full chart configuration, render to "chart2" div
>
>   DHIS.getChart({
> url: base,
> el: "chart2",
> type: "stackedBar",
> columns: [ // Chart series
>   {dimension: "de", items: [{id: "Fnsa8A43USl"}, {id:
> "CRZkTTALRSb"}]}
> ],
> rows: [ // Chart categories
>   {dimension: "pe", items: [{id: "LAST_12_MONTHS"}]}
> ],
> filters: [
>   {dimension: "ou", items: [{id: "USER_ORGUNIT"}]}
> ],
> // All following options are optional
> crossDomain: true,
> showData: false,
> targetLineValue: 70,
> baseLineValue: 20,
> showTrendLine: true,
> hideLegend: true,
> title: "My chart title",
> domainAxisTitle: "Periods",
> rangeAxisTitle: "Percent"
>   });
> }
>   
> 
>
> 
>   
>   
> 
> 
>
> generating the error "XMLHttpRequest cannot load
> http://103.247.238.82:8080/dhismohfw/dhis-web-commons-security/login.action.
> Response for preflight is invalid (redirect)"
>
> If i use code as Jan suggests:
>
> 
> 
> 
>   http://dhis2-cdn.org/v219/ext/resources/css/ext-plugin-gray.css; />
>   http://dhis2-cdn.org/v219/ext/ext-all.js&quot</a>;>
>   http://dhis2-cdn.org/v219/plugin/chart.js&quot</a>;>
> 
> 
> 
> 
> var url = "<a  rel="nofollow" href="http://103.248.238.82:8080/dhismohfw/&quot">http://103.248.238.82:8080/dhismohfw/&quot</a>;,
> username = "view",
> password = "DGHS1234";
>
> Ext.onReady(function() {
>
> DHIS.getChart({
> url: url,
> el: "chart1",
> id: "SYELB2ltOpL",
> crossDomain: true,
> username: username,
> password: password
> });
>
> });
>   
>
> 
> 
>
> then the following error occurs.
>
> GET
> http://103.248.238.82:8080/dhismohfw/api/me/user-account.jsonp?callback=Ext.data.JsonP.callback1&_dc=1444041788222
> net::ERR_CONNECTION_TIMED_OUTExt.Element.addMethods.appendTo @
> ext-all.js:15Ext.Element.addMethods.appendChild @
> ext-all.js:15Ext.define.request @ ext-all.js:15a @
> chart.js:1DV.plugin.getChart @ chart.js:1(anonymous function) @
> testchart1.html:16(anonymous function) @ ext-all.js:15b @ ext-all.js:15
> ext-all.js:15 GET
> http://103.248.238.82:8080/dhismohfw/api/organisationUnits.jsonp?userOnly=t…[id,name]=false=Ext.data.JsonP.callback2&_dc=1444041788230
> net::ERR_CONNECTION_TIMED_OUTExt.Element.addMethods.appendTo @
> ext-all.js:15Ext.Element.addMethods.appendChild @
> ext-all.js:15Ext.define.request @ ext-all.js:15a @
> chart.js:1DV.plugin.getChart @ chart.js:1(anonymous function) @
> testchart1.html:16(anonymous function) @ ext-all.js:15b @ ext-all.js:15
> ext-all.js:15 GET
> http://103.248.238.82:8080/dhismohfw/api/dimensions.jsonp?links=false=false=Ext.data.JsonP.callback3&_dc=1444041788231
> net::ERR_CONNECTION_TIMED_OUTExt.Element.addMethods.appendTo @
> ext-all.js:15Ext.Element.addMethods.appendChild @
> ext-all.js:15Ext.define.request @ ext-all.js:15a @
> chart.js:1DV.plugin.getChart @ chart.js:1(anonymous function) @
> testchart1.html

Re: [Dhis2-devs] [Dhis2-users] Web Portal with DHIS2

2015-10-02 Thread Jan Henrik Øverland
Hi Guy,

The 2.20 plugin does the authentication for you (as long as you provide the
crossDomain, username and password) so you can remove the login code. This
will work (replace password):





  http://dhis2-cdn.org/v220/ext/resources/css/ext-plugin-gray.css"/>
  https://dhis2-cdn.org/v220/ext/ext-all.js&quot</a>;>
  https://dhis2-cdn.org/v220/plugin/table.js&quot</a>;>



  

  
var url = "<a  rel="nofollow" href="http://localhost:8082&quot">http://localhost:8082&quot</a>;,
username = "ekani.guy",
password = "x";

Ext.onReady(function() {

DHIS.getTable({
url: url,
el: "table1",
id: "fqk6tunwRLp",
crossDomain: true,
username: username,
password: password
});

});
  







On Fri, Oct 2, 2015 at 3:45 PM, Guy Ekani <constyek...@yahoo.fr> wrote:

> Thanks Jan,
>
> I migrated to DHIS-Live 2.20(19682), But I'm always getting the error :
>
> XMLHttpRequest cannot load
> http://localhost:8082/dhis-web-commons-security/login.action. The request
> was redirected to '
> http://localhost:8082/dhis-web-commons/security/login.action;jsessionid=irhqgxqywe5v1kb27d5obvhec?failed=true',
> which is disallowed for cross-origin requests that require preflight.
>
> and
>
> Blocking of a multi-query origins (Cross-Origin Request): the "Same
> Origin" policy does not refer to the remote resource on http: // localhost:
> 8082 / web-dhis-commons-security / login.action . Reason: the header CORS
> "Access-Control-Allow-Origin" is missing. Reason: Failed to CORS request.
>
> Sincerely,
>
> =
> EKANI Guy
>
>
>
>
>
>
>
>
> Le Vendredi 2 octobre 2015 8h56, Jan Henrik Øverland <
> janhenrik.overl...@gmail.com> a écrit :
>
>
> Hi Guy,
>
> A fix is needed both in the Ext version we are (still) using and in the
> plugins to make this work. Unfortunately I have only had the time to update
> trunk and 2.20 so far.
>
> If it is OK for you to upgrade to 2.20 it will work right away if you add
> the following to your plugin configuration:
>
> DHIS.getTable({
> ...
> ...
>
> crossDomain: true,
> username: ,
> password: 
> });
>
> Will try to find some time to backport it to 2.19 and 2.18 as well.
>
> And by the way, you say that you run
>
> - DHIS Live *2.18*
> - https://dhis2-cdn.org/*v215*/plugin/table.js
>
> Make sure that the plugin version matches the DHIS2 version.
>
> Jan
>
>
>
> On Fri, Oct 2, 2015 at 10:37 AM, Guy Ekani <constyek...@yahoo.fr> wrote:
>
> Thank You Lars,
>
> I tried a example, Please let me give you my configuration :
> - DHIS Live 2.18 (18179) on Windows 7
> - Database = PostGreSQL  9.3
>
> *- Remote acces - CORE White Liste *
> - http://localhost:8082/
> - https://localhost:8082/ <http://localhost:8082/>
> - http://127.0.0.1/ <http://localhost:8082/>
>
> *- My script*
> 
> 
> 
>   http://dhis2-cdn.org/v215/ext/resources/css/ext-plugin-gray.css; />
>   https://dhis2-cdn.org/v215/ext/ext-all.js&quot</a>;>
>   https://dhis2-cdn.org/v215/plugin/table.js&quot</a>;>
>
>   
> var base = "<a  rel="nofollow" href="http://localhost:8082&quot">http://localhost:8082&quot</a>;;
>
> // Login - if OK, call the setLinks function
>
> Ext.onReady( function() {
>   Ext.Ajax.request({
> url: base + "dhis-web-commons-security/login.action",
> method: "POST",
> params: { j_username: "ekani.guy", j_password: "x" },
> success: setLinks
>   });
> });
>
> function setLinks() {
>
>   // Referring to an existing table through the id parameter, render
> to "table1" div
>
>   DHIS.getTable({ url: base, el: "table1", id: "fqk6tunwRLp" });
>
> }
>   
> 
>
> 
>   
> 
> 
>
> *- console error on web browser*
> 1.XMLHttpRequest cannot load
> http://localhost:8082/dhis-web-commons-security/login.action. The request
> was redirected to '
> http://localhost:8082/dhis-web-commons/security/login.action;jsessionid=yvbsx7nvigeft54069fvllae?failed=true',
> which is disallowed for cross-origin requests that require preflight.
>
> 2.XMLHttpRequest cannot load
> http://localhost:8082/dhis-web-commons/security/login.action. No
> 'Access-Control-Allow-Origin' header is present on the requested resource.
> Origin 'null' is therefore

Re: [Dhis2-devs] [Dhis2-users] Web Portal with DHIS2

2015-10-02 Thread Jan Henrik Øverland
You need to add exactly

http://localhost:8082

(without the final /) to the CORS whitelist.

On Fri, Oct 2, 2015 at 4:50 PM, Guy Ekani <constyek...@yahoo.fr> wrote:

> Now I have the following errors in DHIS-Live 2.20(19682)/PosgreSQL :
>
> Table.html:1 XMLHttpRequest cannot load
> http://localhost:8082/api/me/user-account.json. The request was
> redirected to '
> http://localhost:8082/dhis-web-commons/security/login.action;jsessionid=pz57xiqk2xlcc1jy8sjv8pm7',
> which is disallowed for cross-origin requests that require preflight.
>
> Table.html:1 XMLHttpRequest cannot load
> http://localhost:8082/api/dimensions.json?fields=id,name=false.
> The request was redirected to '
> http://localhost:8082/dhis-web-commons/security/login.action;jsessionid=30ih6480fdr61a2t4ppd2c674',
> which is disallowed for cross-origin requests that require preflight.
>
> Table.html:1 XMLHttpRequest cannot load
> http://localhost:8082/api/legendSets.json?fields=id,name,legends[id,name,startValue,endValue,color]=false&_dc=1443793668223.
> The request was redirected to '
> http://localhost:8082/dhis-web-commons/security/login.action;jsessionid=1ll1s8lo6k26hq9q2eprb9px8',
> which is disallowed for cross-origin requests that require preflight.
>
> Table.html:1 XMLHttpRequest cannot load
> http://localhost:8082/api/organisationUnits.json?userOnly=true=id,name,children[id,name]=false.
> The request was redirected to '
> http://localhost:8082/dhis-web-commons/security/login.action;jsessionid=1jsyr9wmynlpg196nnj4jskfj6',
> which is disallowed for cross-origin requests that require preflight.
>
> =========
> EKANI Guy
>
>
>
>
>
>
>
>
> Le Vendredi 2 octobre 2015 14h01, Jan Henrik Øverland <
> janhenrik.overl...@gmail.com> a écrit :
>
>
> Hi Guy,
>
> The 2.20 plugin does the authentication for you (as long as you provide
> the crossDomain, username and password) so you can remove the login code.
> This will work (replace password):
>
> 
> 
>
> 
>   http://dhis2-cdn.org/v220/ext/resources/css/ext-plugin-gray.css"/>
>   https://dhis2-cdn.org/v220/ext/ext-all.js&quot</a>;>
>   https://dhis2-cdn.org/v220/plugin/table.js&quot</a>;>
> 
>
> 
>   
>
>   
> var url = "<a  rel="nofollow" href="http://localhost:8082&quot">http://localhost:8082&quot</a>;,
> username = "ekani.guy",
> password = "x";
>
> Ext.onReady(function() {
>
> DHIS.getTable({
> url: url,
> el: "table1",
> id: "fqk6tunwRLp",
> crossDomain: true,
> username: username,
> password: password
> });
>
> });
>   
> 
>
> 
>
>
>
>
> On Fri, Oct 2, 2015 at 3:45 PM, Guy Ekani <constyek...@yahoo.fr> wrote:
>
> Thanks Jan,
>
> I migrated to DHIS-Live 2.20(19682), But I'm always getting the error :
>
> XMLHttpRequest cannot load
> http://localhost:8082/dhis-web-commons-security/login.action. The request
> was redirected to '
> http://localhost:8082/dhis-web-commons/security/login.action;jsessionid=irhqgxqywe5v1kb27d5obvhec?failed=true',
> which is disallowed for cross-origin requests that require preflight.
>
> and
>
> Blocking of a multi-query origins (Cross-Origin Request): the "Same
> Origin" policy does not refer to the remote resource on http: // localhost:
> 8082 / web-dhis-commons-security / login.action . Reason: the header CORS
> "Access-Control-Allow-Origin" is missing. Reason: Failed to CORS request.
>
> Sincerely,
>
> =
> EKANI Guy
>
>
>
>
>
>
>
>
> Le Vendredi 2 octobre 2015 8h56, Jan Henrik Øverland <
> janhenrik.overl...@gmail.com> a écrit :
>
>
> Hi Guy,
>
> A fix is needed both in the Ext version we are (still) using and in the
> plugins to make this work. Unfortunately I have only had the time to update
> trunk and 2.20 so far.
>
> If it is OK for you to upgrade to 2.20 it will work right away if you add
> the following to your plugin configuration:
>
> DHIS.getTable({
> ...
> ...
>
> crossDomain: true,
> username: ,
> password: 
> });
>
> Will try to find some time to backport it to 2.19 and 2.18 as well.
>
> And by the way, you say that you run
>
> - DHIS Live *2.18*
> - https://dhis2-cdn.org/*v215*/plugin/table.js
>
> Make sure that the plugin version matches the DHIS2 version.
>
> Jan
>
>
>
> On Fri, Oct 2, 2015 at 10:37 AM, Guy Ekani <constyek...@yahoo.fr> wrote:
>
>

Re: [Dhis2-devs] [Dhis2-users] Web Portal with DHIS2

2015-10-02 Thread Jan Henrik Øverland
Hi Guy,

A fix is needed both in the Ext version we are (still) using and in the
plugins to make this work. Unfortunately I have only had the time to update
trunk and 2.20 so far.

If it is OK for you to upgrade to 2.20 it will work right away if you add
the following to your plugin configuration:

DHIS.getTable({
...
...

crossDomain: true,
username: ,
password: 
});

Will try to find some time to backport it to 2.19 and 2.18 as well.

And by the way, you say that you run

- DHIS Live *2.18*
- https://dhis2-cdn.org/*v215*/plugin/table.js

Make sure that the plugin version matches the DHIS2 version.

Jan



On Fri, Oct 2, 2015 at 10:37 AM, Guy Ekani  wrote:

> Thank You Lars,
>
> I tried a example, Please let me give you my configuration :
> - DHIS Live 2.18 (18179) on Windows 7
> - Database = PostGreSQL  9.3
>
> *- Remote acces - CORE White Liste *
> - http://localhost:8082/
> - https://localhost:8082/ 
> - http://127.0.0.1/ 
>
> *- My script*
> 
> 
> 
>   http://dhis2-cdn.org/v215/ext/resources/css/ext-plugin-gray.css; />
>   https://dhis2-cdn.org/v215/ext/ext-all.js";>
>   https://dhis2-cdn.org/v215/plugin/table.js";>
>
>   
> var base = "http://localhost:8082";;
>
> // Login - if OK, call the setLinks function
>
> Ext.onReady( function() {
>   Ext.Ajax.request({
> url: base + "dhis-web-commons-security/login.action",
> method: "POST",
> params: { j_username: "ekani.guy", j_password: "x" },
> success: setLinks
>   });
> });
>
> function setLinks() {
>
>   // Referring to an existing table through the id parameter, render
> to "table1" div
>
>   DHIS.getTable({ url: base, el: "table1", id: "fqk6tunwRLp" });
>
> }
>   
> 
>
> 
>   
> 
> 
>
> *- console error on web browser*
> 1.XMLHttpRequest cannot load
> http://localhost:8082/dhis-web-commons-security/login.action. The request
> was redirected to '
> http://localhost:8082/dhis-web-commons/security/login.action;jsessionid=yvbsx7nvigeft54069fvllae?failed=true',
> which is disallowed for cross-origin requests that require preflight.
>
> 2.XMLHttpRequest cannot load
> http://localhost:8082/dhis-web-commons/security/login.action. No
> 'Access-Control-Allow-Origin' header is present on the requested resource.
> Origin 'null' is therefore not allowed access.
>
> Sincerely,
>
> =
> EKANI Guy
>
>
>
>
>
>
>
>
> Le Jeudi 1 octobre 2015 19h11, Lars Helge Øverland 
> a écrit :
>
>
> Hi Guy,
>
> for starters I recommend that you start reading up on how to use the
> analytics plugins here:
>
> https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s23.html
>
> Using these you can embed pivots, charts and maps in web portals with live
> data from DHIS 2.
>
> You can also have a look at the Web portal demo here:
>
> https://apps.dhis2.org/portal/index.html
>
> https://apps.dhis2.org/portal/chart.html
>
> regards,
>
> Lars
>
>
> On Mon, Sep 28, 2015 at 5:31 PM, Guy Ekani  wrote:
>
> Hello Everyone,
>
> Could someone can share tips on how to build a Web Portal with DHIS2 Data
>
> Sincerely,
>
> =
> EKANI Guy
>
>
>
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> http://www.dhis2.org 
>
>
>
>
> ___
> 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


Re: [Dhis2-devs] Web portal CORS/preflight problem

2015-09-07 Thread Jan Henrik Øverland
Hi Hannan,

I am working on a fix for this. Any chance you can upgrade from 2.17?

On Sat, Aug 29, 2015 at 4:59 AM, Hannan Khan <hann...@gmail.com> wrote:

> Dear Jan
>
> I think cross domain problem is solved but more problem arise. I added the
> jquery js script line but there is no chart. I think as i use
> https://code.jquery.com/jquery-2.1.4.min.js' the calling of chart might
> changed. the source I used is as :
>
> 
> DHIS2 Web Portal
>
> 
>  rel="stylesheet" type="text/css" />
>
> 
> 
> 
> https://code.jquery.com/jquery-2.1.4.min.js&quot</a>;>
>
> 
>
> 
> li {
> float: left;
> }
>
> .chart {
> border: 1px solid #ddd;
> margin: 10px;
> }
> .chart.wide {
> width: 800px;
> height: 450px;
> }
> .chart.tall {
> width: 600px;
> height: 920px;
> }
> 
>
> 
>
> 
> var base = '<a  rel="nofollow" href="http://localhost:8080/dhismohfw19/">http://localhost:8080/dhismohfw19/</a>';
>
> $.ready(function() {
>   $.Ajax.request({
> crossDomain: true,
> url: base + "dhis-web-commons-security/login.action?authOnly=true",
> method: 'POST',
> params: { j_username: "view", j_password: "DGHS1234" },
> success: setLinks
>   });
> });
>
> function setLinks() {
>   DV.plugin.getChart({ url: base, el: 'chartA1', id: 'LjfRM4pSC0h' });
>
>   DV.plugin.getChart({ url: base, el: 'chartA2', id: 'aR9w2QFpfW7' });
>
>   DV.plugin.getChart({ url: base, el: 'chartA3', id: 'Pck5tyxraa3' });
> }
> 
>
> 
>
> 
>
> 
>   Data Visualizer Chart Plugin
> 
>
> 
>
> This page illustrates the use of the Data Visualizer plugin which can
> be used to embed dynamic ExtJS charts into a Web page. You can embed charts
> pointing to pre-defined charts in DHIS, or select custom indicators,
> periods and org units to create dynamic charts. View the source of
> this page to see how it is done.
> 
>
> 
>
> Predefined charts
>
> 
>   
>   
>   
> 
>
> 
>
> 
>
> 
> 
>
>
> On Thu, Aug 27, 2015 at 4:24 PM, Jan Henrik Øverland <
> janhenrik.overl...@gmail.com> wrote:
>
>> You need to do this part
>>
>> Ext.onReady( function() {
>>   Ext.Ajax.request({
>> crossDomain: true,
>> url: base + "dhis-web-commons-security/login.action?authOnly=true",
>> method: 'POST'
>>  
>>
>> with jquery instead of Ext.
>>
>> See the code that Morten posted.
>>
>> On Thu, Aug 27, 2015 at 12:19 PM, Hannan Khan <hann...@gmail.com> wrote:
>>
>>> Thanks Jan.
>>>
>>> I added http://code.jquery.com/jquery-2.1.4.min.js</a>>"> in the 
>>> but still I get the error. What did I do wrong?
>>>
>>> Regards
>>>
>>> Hannan
>>>
>>> On Thu, Aug 27, 2015 at 2:49 PM, Jan Henrik Øverland <
>>> janhenrik.overl...@gmail.com> wrote:
>>>
>>>> Hi Hannan,
>>>>
>>>> I have done some testing and it seems the bundled Ext version is
>>>> getting old. CORS is not working well with it.
>>>>
>>>> We need to look at this, but for now just include
>>>> https://code.jquery.com/jquery-2.1.4.min.js (minified, only 84k) and
>>>> do the authentication with jquery.
>>>>
>>>> The good thing about CORS is that you can simply do a normal ajax
>>>> request and the browser will take care of the rest.
>>>>
>>>> On Thu, Aug 27, 2015 at 10:37 AM, Hannan Khan <hann...@gmail.com>
>>>> wrote:
>>>>
>>>>> Dear Alex
>>>>>
>>>>> Thank you for sharing the resources. but the problem still persists. i
>>>>> write as following:
>>>>>
>>>>> Ext.onReady( function() {
>>>>>   Ext.Ajax.request({
>>>>> crossDomain: true,
>>>>> url: base + "dhis-web-commons-security/login.action?authOnly=true",
>>>>> method: 'POST',
>>>>>
>>>>> Please check.
>>>>>
>>>>> Regards
>>>>>
>>>>> Hannan
>>>>>
>>>>> On Thu, Aug 27, 2015 at 1:00 PM, Alex Tumwesigye <
>>>>> atumwesi...@gmail.com> wrote:
>>>>>
>>>>>> Dear Khan,
>>>>>>
>>>>>> Look at this
>>>>>> http://api.jquery.com/jquery.ajax/
&

Re: [Dhis2-devs] Web portal CORS/preflight problem

2015-09-07 Thread Jan Henrik Øverland
Ok, I will try to backport when I'm done.

On Mon, Sep 7, 2015 at 3:02 PM, Hannan Khan <hann...@gmail.com> wrote:

> Dear Jan
>
> Thanks. Delight to know that; I am waiting.
> We already upgraded to version 2.19. We are also upgrading tracker system
> to 2.19. I will than do the portal and integration of servers and
> synchronization of reporting server. I will be in touch.
>
> Best regards
>
> Hannan
>
> On Mon, Sep 7, 2015 at 5:38 PM, Jan Henrik Øverland <
> janhenrik.overl...@gmail.com> wrote:
>
>> Hi Hannan,
>>
>> I am working on a fix for this. Any chance you can upgrade from 2.17?
>>
>> On Sat, Aug 29, 2015 at 4:59 AM, Hannan Khan <hann...@gmail.com> wrote:
>>
>>> Dear Jan
>>>
>>> I think cross domain problem is solved but more problem arise. I added
>>> the jquery js script line but there is no chart. I think as i use
>>> https://code.jquery.com/jquery-2.1.4.min.js' the calling of chart might
>>> changed. the source I used is as :
>>>
>>> 
>>> DHIS2 Web Portal
>>>
>>> 
>>> >> rel="stylesheet" type="text/css" />
>>>
>>> 
>>> 
>>> 
>>> https://code.jquery.com/jquery-2.1.4.min.js&quot</a>;>
>>>
>>> 
>>>
>>> 
>>> li {
>>> float: left;
>>> }
>>>
>>> .chart {
>>> border: 1px solid #ddd;
>>> margin: 10px;
>>> }
>>> .chart.wide {
>>> width: 800px;
>>> height: 450px;
>>> }
>>> .chart.tall {
>>> width: 600px;
>>> height: 920px;
>>> }
>>> 
>>>
>>> 
>>>
>>> 
>>> var base = '<a  rel="nofollow" href="http://localhost:8080/dhismohfw19/">http://localhost:8080/dhismohfw19/</a>';
>>>
>>> $.ready(function() {
>>>   $.Ajax.request({
>>> crossDomain: true,
>>> url: base + "dhis-web-commons-security/login.action?authOnly=true",
>>> method: 'POST',
>>> params: { j_username: "view", j_password: "DGHS1234" },
>>> success: setLinks
>>>   });
>>> });
>>>
>>> function setLinks() {
>>>   DV.plugin.getChart({ url: base, el: 'chartA1', id: 'LjfRM4pSC0h' });
>>>
>>>   DV.plugin.getChart({ url: base, el: 'chartA2', id: 'aR9w2QFpfW7' });
>>>
>>>   DV.plugin.getChart({ url: base, el: 'chartA3', id: 'Pck5tyxraa3' });
>>> }
>>> 
>>>
>>> 
>>>
>>> 
>>>
>>> 
>>>   Data Visualizer Chart Plugin
>>> 
>>>
>>> 
>>>
>>> This page illustrates the use of the Data Visualizer plugin which can
>>> be used to embed dynamic ExtJS charts into a Web page. You can embed charts
>>> pointing to pre-defined charts in DHIS, or select custom indicators,
>>> periods and org units to create dynamic charts. View the source of
>>> this page to see how it is done.
>>> 
>>>
>>> 
>>>
>>> Predefined charts
>>>
>>> 
>>>   
>>>   
>>>   
>>> 
>>>
>>> 
>>>
>>> 
>>>
>>> 
>>> 
>>>
>>>
>>> On Thu, Aug 27, 2015 at 4:24 PM, Jan Henrik Øverland <
>>> janhenrik.overl...@gmail.com> wrote:
>>>
>>>> You need to do this part
>>>>
>>>> Ext.onReady( function() {
>>>>   Ext.Ajax.request({
>>>> crossDomain: true,
>>>> url: base + "dhis-web-commons-security/login.action?authOnly=true",
>>>> method: 'POST'
>>>>  
>>>>
>>>> with jquery instead of Ext.
>>>>
>>>> See the code that Morten posted.
>>>>
>>>> On Thu, Aug 27, 2015 at 12:19 PM, Hannan Khan <hann...@gmail.com>
>>>> wrote:
>>>>
>>>>> Thanks Jan.
>>>>>
>>>>> I added http://code.jquery.com/jquery-2.1.4.min.js</a>>"> in the 
>>>>> but still I get the error. What did I do wrong?
>>>>>
>>>>> Regards
>>>>>
>>>>> Hannan
>>>>>
>>>>> On Thu, Aug 27, 2015 at 2:49 PM, Jan Henrik Øverland <
>>>>> janhenrik.overl...@gmail.com> wrote:
>>>>>
>>>>>> H

Re: [Dhis2-devs-core] dateOfIncident > incidentDate

2015-09-02 Thread Jan Henrik Øverland
On Wed, Sep 2, 2015 at 6:44 PM, Lars Helge Øverland 
wrote:

>
>
> On Wed, Sep 2, 2015 at 5:32 PM, Bob Jolliffe 
> wrote:
>
>> Hi Lars
>>
>> Renaming sounds good.  Just a minor clarification request/suggestion
>> below ...
>>
>> On 25 August 2015 at 10:31, Lars Helge Øverland 
>> wrote:
>> > Hi Tran, Abyot,
>> >
>> > I propose that we rename:
>> >
>> > ProgramInstance.dateOfIncident to incidentDate;
>>
>> +1
>>
>> >
>> > and
>> >
>> > Program.dateOfEnrollmentDescription > enrollmentDateDescription;
>> > Program.dateOfIncidentDescription > incidentDateDescription;
>>
>> If I read this correctly this is a string used as a label for the
>> field rather than a description.  I'm not really sure this belongs in
>> the model anyway, but if so maybe enrollmentDateLabel and
>> incidentDateLabel might be more suitable.
>>
>>
> Agreed, label is better. Tran, lets use that since we are changing it
> anyway:
>
> Program.dateOfEnrollmentLabel
> Program.dateOfIncidentLabel
>

Program.enrollmentDateLabel etc


>
>
>
>
>
> --
> Mailing list: https://launchpad.net/~dhis2-devs-core
> Post to : dhis2-devs-core@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs-core
> More help   : https://help.launchpad.net/ListHelp
>
>
-- 
Mailing list: https://launchpad.net/~dhis2-devs-core
Post to : dhis2-devs-core@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs-core
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Pivot tables or event reports

2015-09-02 Thread Jan Henrik Øverland
If you are using Google Chrome you can even just select the html of the
table in the browser by pressing Ctrl + a, then copy it (Ctrl + c) and
paste it directly in Word. This works in e.g. Gmail as well.

On Wed, Sep 2, 2015 at 2:20 PM, Jason Pickering  wrote:

> Another trick is to download the HTML and the copy and paste into Word for
> the tables. You can also save the HTML file and open this file with word
> and make further edits.
>
> Regards,
> Jason
>
>
> On Wed, Sep 2, 2015 at 2:14 PM, Ali Karisa  wrote:
>
>> Hello Moses,
>>
>> The charts can be downloaded as PDF or images; the latter can be pasted
>> into a word document quite easily. The source data of these, however, can
>> still be downloaded to excel with the process Lars described earlier on
>> this email thread.
>>
>> Thanks,
>>
>> Ali
>>
>> On Wed, Sep 2, 2015 at 2:36 PM, moses mwale 
>> wrote:
>>
>>> How about to word? How about those charts in data visualizer, can they
>>> also be downloaded to word or as excel?
>>> Thank you for the help
>>> On 2 Sep 2015 09:25, "Lars Helge Øverland"  wrote:
>>>
 Hi Moses,

 you can download pivot tables as Excel from the Download top menu item.


 [image: Inline image 1]

 regards,

 Lars

 On Tue, Sep 1, 2015 at 1:14 PM, moses mwale 
 wrote:

> Hello, is it possible that fact sheets (Pivot tables or event reports)
> can be converted into word or excel?
>
> ___
> 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
>
>


 --
 Lars Helge Øverland
 Lead developer, DHIS 2
 University of Oslo
 Skype: larshelgeoverland
 http://www.dhis2.org 


>>> ___
>>> 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
>>
>>
>
>
> --
> Jason P. Pickering
> email: jason.p.picker...@gmail.com
> tel:+46764147049
>
> ___
> 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


Re: [Dhis2-devs] [Dhis2-users] stian sandvold joins as developer

2015-08-28 Thread Jan Henrik Øverland
Welcome!
On Aug 28, 2015 6:00 PM, Mark Polak m...@thedutchies.com wrote:

 Welcome Stian! :)

 On Fri, Aug 28, 2015 at 5:54 PM, Lars Helge Øverland larshe...@gmail.com
 wrote:

 Hi all,

 Stian Sandvold has joined the team today as DHIS 2 developer on a 50 %
 basis. Stian comes from a position as lead developer at Asio, a company
 which develops educational tools and games. He is doing his last year of
 master's at UiO. Stian will work on server-side / back-end development.

 Welcome!


 regards,

 Lars






 --
 Lars Helge Øverland
 Lead developer, DHIS 2
 University of Oslo
 Skype: larshelgeoverland
 http://www.dhis2.org https://www.dhis2.org


 ___
 Mailing list: https://launchpad.net/~dhis2-users
 Post to : dhis2-us...@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-users
 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


___
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] Web portal CORS/preflight problem

2015-08-27 Thread Jan Henrik Øverland
You need to do this part

Ext.onReady( function() {
  Ext.Ajax.request({
crossDomain: true,
url: base + dhis-web-commons-security/login.action?authOnly=true,
method: 'POST'
 

with jquery instead of Ext.

See the code that Morten posted.

On Thu, Aug 27, 2015 at 12:19 PM, Hannan Khan hann...@gmail.com wrote:

 Thanks Jan.

 I added script src=//code.jquery.com/jquery-2.1.4.min.js
 http://code.jquery.com/jquery-2.1.4.min.js/script in the head but
 still I get the error. What did I do wrong?

 Regards

 Hannan

 On Thu, Aug 27, 2015 at 2:49 PM, Jan Henrik Øverland 
 janhenrik.overl...@gmail.com wrote:

 Hi Hannan,

 I have done some testing and it seems the bundled Ext version is getting
 old. CORS is not working well with it.

 We need to look at this, but for now just include
 https://code.jquery.com/jquery-2.1.4.min.js (minified, only 84k) and do
 the authentication with jquery.

 The good thing about CORS is that you can simply do a normal ajax request
 and the browser will take care of the rest.

 On Thu, Aug 27, 2015 at 10:37 AM, Hannan Khan hann...@gmail.com wrote:

 Dear Alex

 Thank you for sharing the resources. but the problem still persists. i
 write as following:

 Ext.onReady( function() {
   Ext.Ajax.request({
 crossDomain: true,
 url: base + dhis-web-commons-security/login.action?authOnly=true,
 method: 'POST',

 Please check.

 Regards

 Hannan

 On Thu, Aug 27, 2015 at 1:00 PM, Alex Tumwesigye atumwesi...@gmail.com
 wrote:

 Dear Khan,

 Look at this
 http://api.jquery.com/jquery.ajax/
 Read about crossDomain, by default it set to false so you may need to
 set it to true.

 Ideally, in your ajax request, add crossDomain:true

 Alex



 On Thu, Aug 27, 2015 at 9:53 AM, Mark Polak mar...@ifi.uio.no wrote:

 Hello Hanna,

 Did you add http:// (or https:// if you use a secure line) in front
 of the IP address?

 On the demo instance this is a bit confusing as the examples do not
 show that but it is required for it to work correctly.

 Regards,

 Mark
 
 From: Dhis2-devs [dhis2-devs-bounces+markpo=
 ifi.uio...@lists.launchpad.net] on behalf of Hannan Khan [
 hann...@gmail.com]
 Sent: 27 August 2015 08:29
 To: DHIS 2 developers
 Subject: [Dhis2-devs] Web portal CORS/preflight problem

 Dear Experts

 I am facing problem to creating Web Portal, facing problem CORS.
 First I try portal from 103.247.238.68 not working and then put this
 address in the white list of the dhis2 server at 103.247.238.68:8080
 http://103.247.238.68:8080. But but still having the same problem
 the error message is 'which is disallowed for cross-origin requests that
 require preflight'.

 Now how I resolve this? The script is similar as on the developer
 guide, page 49.

 Please advice.

 Regards

 Hannan

 ___
 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




 --
 Alex Tumwesigye

 Technical Advisor - DHIS2 (Consultant),
 Ministry of Health/AFENET
 Kampala
 Uganda

 IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

 IT Specialist (Servers, Networks and Security, Health Information
 Systems - DHIS2 )  Solar Consultant

 +256 774149 775, + 256 759 800161

 I don't want to be anything other than what I have been - one tree
 hill 



 ___
 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


Re: [Dhis2-devs] Web portal CORS/preflight problem

2015-08-27 Thread Jan Henrik Øverland
Hi Hannan,

I have done some testing and it seems the bundled Ext version is getting
old. CORS is not working well with it.

We need to look at this, but for now just include
https://code.jquery.com/jquery-2.1.4.min.js (minified, only 84k) and do the
authentication with jquery.

The good thing about CORS is that you can simply do a normal ajax request
and the browser will take care of the rest.

On Thu, Aug 27, 2015 at 10:37 AM, Hannan Khan hann...@gmail.com wrote:

 Dear Alex

 Thank you for sharing the resources. but the problem still persists. i
 write as following:

 Ext.onReady( function() {
   Ext.Ajax.request({
 crossDomain: true,
 url: base + dhis-web-commons-security/login.action?authOnly=true,
 method: 'POST',

 Please check.

 Regards

 Hannan

 On Thu, Aug 27, 2015 at 1:00 PM, Alex Tumwesigye atumwesi...@gmail.com
 wrote:

 Dear Khan,

 Look at this
 http://api.jquery.com/jquery.ajax/
 Read about crossDomain, by default it set to false so you may need to set
 it to true.

 Ideally, in your ajax request, add crossDomain:true

 Alex



 On Thu, Aug 27, 2015 at 9:53 AM, Mark Polak mar...@ifi.uio.no wrote:

 Hello Hanna,

 Did you add http:// (or https:// if you use a secure line) in front of
 the IP address?

 On the demo instance this is a bit confusing as the examples do not show
 that but it is required for it to work correctly.

 Regards,

 Mark
 
 From: Dhis2-devs [dhis2-devs-bounces+markpo=
 ifi.uio...@lists.launchpad.net] on behalf of Hannan Khan [
 hann...@gmail.com]
 Sent: 27 August 2015 08:29
 To: DHIS 2 developers
 Subject: [Dhis2-devs] Web portal CORS/preflight problem

 Dear Experts

 I am facing problem to creating Web Portal, facing problem CORS.
 First I try portal from 103.247.238.68 not working and then put this
 address in the white list of the dhis2 server at 103.247.238.68:8080
 http://103.247.238.68:8080. But but still having the same problem the
 error message is 'which is disallowed for cross-origin requests that
 require preflight'.

 Now how I resolve this? The script is similar as on the developer guide,
 page 49.

 Please advice.

 Regards

 Hannan

 ___
 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




 --
 Alex Tumwesigye

 Technical Advisor - DHIS2 (Consultant),
 Ministry of Health/AFENET
 Kampala
 Uganda

 IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

 IT Specialist (Servers, Networks and Security, Health Information Systems
 - DHIS2 )  Solar Consultant

 +256 774149 775, + 256 759 800161

 I don't want to be anything other than what I have been - one tree hill 



 ___
 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


Re: [Dhis2-devs] [Dhis2-users] Old DHIS2 War Files

2015-08-25 Thread Jan Henrik Øverland
Version 2.10+ here (same source as Halvdan linked to). Just change the
version number:

https://apps.dhis2.org/ci/job/dhis-*2.10*
/lastSuccessfulBuild/artifact/dhis-2/dhis-web/dhis-web-portal/target/dhis.war

On Tue, Aug 25, 2015 at 3:13 PM, Jason Phillips ja...@hisp.org wrote:

 We have some older ones if you don't have any luck using Lars' suggestion.

 Jason Phillips
 Information Systems
 HISP South Africa

 Sent from my mobile - please excuse any typos.
 On 25 Aug 2015 15:11, Lars Helge Øverland larshe...@gmail.com wrote:

 Hi,

 you can normally use the download URL and replace 20 with the version
 you need:

 https://www.dhis2.org/download/releases/2.20/dhis.war

 Not exactly sure how many we keep.

 regards,

 Lars


 On Tue, Aug 25, 2015 at 3:06 PM, gerald thomas gerald17...@gmail.com
 wrote:

 Dear All,
 Where can i find the old DHIS2 war files?

 --
 Regards,

 Gerald

 ___
 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




 --
 Lars Helge Øverland
 Lead developer, DHIS 2
 University of Oslo
 Skype: larshelgeoverland
 http://www.dhis2.org https://www.dhis2.org


 ___
 Mailing list: https://launchpad.net/~dhis2-users
 Post to : dhis2-us...@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-users
 More help   : https://help.launchpad.net/ListHelp


 *This message and any attachments are subject to a disclaimer published at
 http://www.hisp.org/policies.html#comms_disclaimer
 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 disclai...@hisp.org
 disclai...@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


___
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] [Bug 1297793] Re: Unable to load the data entry page for a user

2015-08-24 Thread Jan Henrik Øverland
** Changed in: dhis2
Milestone: None = 2.21

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1297793

Title:
  Unable to load the data entry page for a user

Status in DHIS:
  New

Bug description:
  Environment details: Trunk build of DHIS 2.

  Steps to reproduce:

  1. Create a category option, category and category combo called Number of 
cases. 
  2. Create a data element called Shock with category combination as Number 
of cases and of type aggregate and numeric. 
  3. Create a data set called Cause, assign the data element Shock and 
select Weekly as the frequency.
  4. Create a role called Data entry person and assign access to the Cause 
dataset and authorities See data entry module, Delete data value, Add/Update 
data value, See dashboard integration module.
  5. Create an org unit called District 1
  6. Assign the Cause data set to the org unit District 1
  7. Create a user called entry1 with role Data entry person and assign 
access to the org unit District 1
  8. Login as entry1 and go to data entry screen.

  The following error is reported in the log - * INFO  2014-03-26
  16:21:34,331 'entry1' read denied
  org.hisp.dhis.dataelement.DataElementCategoryCombo_$$_javassist_82,
  name: default, uid: hpgMJ5bmcBq (AuditLogUtil.java
  [1691071275@qtp-1792399744-20])

  9. Select the Cause data set and a week. Enter a number for the Shock data 
element and hit Complete.
  10.  Gives the message that data is saved offline although I am online.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1297793/+subscriptions

___
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] [Bug 1472381] Re: Cannot see all relative time periods in Pivot Table, Firefox

2015-08-10 Thread Jan Henrik Øverland
Fixed in 2.20 and 2.21-snapshot.

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1472381

Title:
  Cannot see all relative time periods in Pivot Table, Firefox

Status in DHIS:
  Fix Committed

Bug description:
  Hello!

  'Last 5 years' is clipped in most recent version of Firefox (see
  attached image). Scaling up and down does not help to find it. I
  discovered this while using the SL demo.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1472381/+subscriptions

___
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] Pivot tables: custom dimensions disappear when searching indicators

2015-06-18 Thread Jan Henrik Øverland
Hi Victor,

Fixed in all affected versions now. Thanks for reporting.

Jan

On Thu, Jun 18, 2015 at 9:41 AM, Victor Garcia vgarcia...@gmail.com wrote:

 Hi all,

 we have found an issue in pivot tables and visualizer. When searching
 for an indicator using the search bar, the content of custom
 dimensions disappears.

 This issue can be easily replicated in demo server:

 - In pivot tables, search for an indicator (for example, write ANC
 in the search bar).
 - While the search is active (ANC is written in the search bar), the
 content of custom dimensions is not shown (for example, Donor
 dimension).
 - If you close the search, the content of custom dimensions comes back.

 ___
 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


Re: [Dhis2-devs] Problem with Get as image option in Dashboard for Data Visualizer

2015-06-11 Thread Jan Henrik Øverland
Hi Neeraj,

You are right, this feature has not been implemented across both frameworks.

For now you would have to click Explore to open the chart in Data
Visualizer and then download as png from the toolbar.

Jan

On Thu, Jun 11, 2015 at 7:54 AM, Neeraj Gupta neeraj.h...@gmail.com wrote:

 Hi,

 In Data Visualizer when we are generating charts, we can hide empty
 category items and same can be used in Dashboard but on Dashboard if we are
 clicking on *'Get as image'* option then in image it displays Empty
 categories as well.

 Is there a solution for this so that in image also we will not get Empty
 categories?

 --
 Thanks,
 Neeraj Gupta

 ___
 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


Re: [Dhis2-devs-core] Change from OR to AND in object filter queries

2015-06-03 Thread Jan Henrik Øverland
Makes sense. But it sort of works like that already? E.g:

1)
https://apps.dhis2.org/demo/api/dataElements.json?paging=falsefilter=dataElementGroups.id:eq:qfxEYY9xAl6
returns all members of the ANC group (11x)

2)
https://apps.dhis2.org/demo/api/dataElements.json?paging=falsefilter=name:like:dose
returns all data elements with a name containing dose (27x)

3)
https://apps.dhis2.org/demo/api/dataElements.json?paging=falsefilter=dataElementGroups.id:eq:qfxEYY9xAl6filter=name:like:dose
returns the data elements that are in query 1 AND query 2 (only 4x)

On Wed, Jun 3, 2015 at 6:46 AM, Morten Olav Hansen morte...@gmail.com
wrote:

 Hi everyone

 One of my tasks for 2.20 is to better handle AND/OR in object filter
 queries. As part of this, we are considering changing the default from OR
 to AND, which means that something like this:

 ?filter=id:eq:1filter=id:eq:2

 Will not work anymore, you will have to use:

 ?filter=id:in:[1,2]

 I will backport this, so it works the same in 2.19 (so we don't have
 different semantics in 2.19 vs 2.20), and in 2.20 there will probably be
 introduced some kind of OR operator also (can still be useful for some
 cases)

 Doing this, also means that you can do proper filtering on multiple
 properties, e.g.:

 /api/dataElements?fields=*filter=domainType:eq:TRACKERfilter=numberType:eq:int

 Which will give the results where domain is TRACKER -AND- number type is
 int.

 If we all agree on this, I will also send out a notice on the mailing
 lists to notify external app developers.

 --
 Morten

 --
 Mailing list: https://launchpad.net/~dhis2-devs-core
 Post to : dhis2-devs-core@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs-core
 More help   : https://help.launchpad.net/ListHelp


-- 
Mailing list: https://launchpad.net/~dhis2-devs-core
Post to : dhis2-devs-core@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs-core
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Issue in Data visualizer/event visualizer app

2015-05-27 Thread Jan Henrik Øverland
Hi Akash,

We are aware of this weird behavior and will try to get it fixed, but
unfortunately I cannot give you an accurate estimate of how long it will
take.

Jan

On Wed, May 27, 2015 at 2:11 PM, Akash Jindal akashjindal...@gmail.com
wrote:

 Dear Dev team,

 We have encountered an issue with the Data visualizer/event visualizer
 app. The step by step presentation of the issue has been put in form of a
 video which can be accessed from the given link :-


 https://drive.google.com/file/d/0B0xNkdP7U_ZzN0lVYzI5NkxBT1E/view?usp=sharing

 When we are trying to select/un-select the data items there seems to be an
 issue with the values shown on the y-axis of the graph, the axis values
 don't seem to change with the selection of the particular data item.

 Requesting you to please look into this and let us know how long it may
 take for issue to be resolved or if it will be resolved in future
 iterations of DHIS2.

 --
 *Regards*
 Akash Jindal


 ___
 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


Re: [Dhis2-devs] Questions regarding Embedding charts with the Visualizer chart plug-in

2015-04-23 Thread Jan Henrik Øverland
For now you can of course update to the latest 2.18 and include the plugin
from server/dhis-web-commons/javascripts/plugin/chart.js

Jan

On Thu, Apr 23, 2015 at 3:44 PM, Jan Henrik Øverland 
janhenrik.overl...@gmail.com wrote:

 Just updated the 2.18 plugin with a new config option displayProperty
 which could be set to shortname (case insensitive).

 I can see that the cdn has not yet been updated. Guess we just have to
 wait. Will let you know.

 On Wed, Apr 22, 2015 at 7:02 PM, Bharath chbhara...@gmail.com wrote:

 Sorry for many questions...but functionality is very nice and very much
 useful for apps and even HTML reports.

 One more question :-)

 In charts we are displaying names as rows / columns ( categories /
 series). Is is possible to display shortnames by setting any parameter
 because some dataelements are having very longish names especially if it
 includes catecory option combo name.

 Thanks for you support.





 On Wed, Apr 22, 2015 at 1:46 AM, Bharath chbhara...@gmail.com wrote:

 Thanks for the Tip.  looked into Embed option, worked smoothly,

 Parameter changes are:
   -Dimension is dc instead de and
   - iteams are dataelementuid#cocuid instead dataelementuid

 Thanks Jan.


 On Wed, Apr 22, 2015 at 1:35 AM, Jan Henrik Øverland 
 janhenrik.overl...@gmail.com wrote:

 Will look at it tomorrow, but a trick is to open the DV, create the
 chart you want to see and select Share - Embed in web page from the
 toolbar to see the config.
 On Apr 21, 2015 9:57 PM, Bharath chbhara...@gmail.com wrote:

 Hi Jan,

 Charts for the dataelements which are of type default categorycombo
 are working fine. How can I embed chart for the dataelements which are
 having categories, for ex:- chart for dataelement Number of fever cases
 which is having Male and Female as category combo options. Can you please
 help on which parameters to pass for category option combos.




 On Mon, Apr 20, 2015 at 6:49 PM, Jan Henrik Øverland 
 janhenrik.overl...@gmail.com wrote:

 Great. I just updated the CDN (2.18) so legendStyle and
 hideEmptyRows shoud be unnecessary by now.

 On Mon, Apr 20, 2015 at 3:10 PM, Bharath chbhara...@gmail.com
 wrote:

 Thank you so much Jan, it worked perfectly. Thanks

 On Mon, Apr 20, 2015 at 6:28 PM, Jan Henrik Øverland 
 janhenrik.overl...@gmail.com wrote:

 Hi Bharath,

 1) I don't think this is affected by the hideLegend option.
 Please add the legendStyle object I mentioned ealier for now until 
 the
 plugin is updated.

 2) This is behind the scenes the same option as in pivot table:
 hideEmptyRows. This option should be false by default, but I can see 
 that
 it is not in the 2.18 plugin for some reason. I will fix this, but for 
 now
 you can add hideEmptyRows: false to your chart config to show empty
 categories in the chart.

 3) You can override anything in a favorite by adding it to the
 config object. If you have periods as categories you can do e.g.:

 DHIS.getChart({
 url: base,
 el: chart1,
 id: R0DVGvXDUNP,

 legendStyle: {},
 hideEmptyRows: false,
 rows: [
 {
 dimension: pe,
 items: [
 {id: 2012}, // Iso code for years. If you want
 months e.g. January 2015 would be 201501.
 {id: 2013},
 {id: 2014},
 {id: 2015}
 ]
 }
 ]
 }

 Hope this helps. Let me know if there is anything else. The plugins
 have a lot more options than you will find in DV so I will document it 
 as
 soon as possible.

 Jan


 On Mon, Apr 20, 2015 at 9:45 AM, Bharath chbhara...@gmail.com
 wrote:

 Hi All,

 Have been trying to embed charts in HTML report using Visualiser
 chart Plug-in. I am facing below issues, could you please help: I am 
 using
 2.18 version.


 1. When I set *hideLegend *attribute value to *false* then I am
 getting the below error at browser console: *Uncaught TypeError:
 Cannot read property 'labelMarkerSize' of undefined*

 2. In my chart I am passing periods 2007 to 2015 where I have data
 for 2 years only, in my chart I am getting chart for those 2 years 
 only,
 where as I would like chart for all years. Can you please help if I 
 can set
 any parameter to get this. If I am generating the chart in Visualiser 
 there
 I have the option *Hide empty categories, *do we have similar
 option in plug-in.

 3. I created a chart and saved as a favourite. I am able to embed
 this chart using plug-in

  DHIS.getChart({ url: base, el: chart1, id: R0DVGvXDUNP });

 I need to pass Period as parameter to this chart, can you please
 suggest how can I do that.

 Thanks



 --

 Regards,
 Bharath Kumar. Ch

 ___
 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





 --

 Regards,
 Bharath Kumar. Ch





 --

 Regards,
 Bharath Kumar. Ch




 --

 Regards,
 Bharath

Re: [Dhis2-devs] Questions regarding Embedding charts with the Visualizer chart plug-in

2015-04-21 Thread Jan Henrik Øverland
Will look at it tomorrow, but a trick is to open the DV, create the chart
you want to see and select Share - Embed in web page from the toolbar to
see the config.
On Apr 21, 2015 9:57 PM, Bharath chbhara...@gmail.com wrote:

 Hi Jan,

 Charts for the dataelements which are of type default categorycombo are
 working fine. How can I embed chart for the dataelements which are having
 categories, for ex:- chart for dataelement Number of fever cases which is
 having Male and Female as category combo options. Can you please help on
 which parameters to pass for category option combos.




 On Mon, Apr 20, 2015 at 6:49 PM, Jan Henrik Øverland 
 janhenrik.overl...@gmail.com wrote:

 Great. I just updated the CDN (2.18) so legendStyle and hideEmptyRows
 shoud be unnecessary by now.

 On Mon, Apr 20, 2015 at 3:10 PM, Bharath chbhara...@gmail.com wrote:

 Thank you so much Jan, it worked perfectly. Thanks

 On Mon, Apr 20, 2015 at 6:28 PM, Jan Henrik Øverland 
 janhenrik.overl...@gmail.com wrote:

 Hi Bharath,

 1) I don't think this is affected by the hideLegend option. Please
 add the legendStyle object I mentioned ealier for now until the plugin is
 updated.

 2) This is behind the scenes the same option as in pivot table:
 hideEmptyRows. This option should be false by default, but I can see that
 it is not in the 2.18 plugin for some reason. I will fix this, but for now
 you can add hideEmptyRows: false to your chart config to show empty
 categories in the chart.

 3) You can override anything in a favorite by adding it to the config
 object. If you have periods as categories you can do e.g.:

 DHIS.getChart({
 url: base,
 el: chart1,
 id: R0DVGvXDUNP,

 legendStyle: {},
 hideEmptyRows: false,
 rows: [
 {
 dimension: pe,
 items: [
 {id: 2012}, // Iso code for years. If you want
 months e.g. January 2015 would be 201501.
 {id: 2013},
 {id: 2014},
 {id: 2015}
 ]
 }
 ]
 }

 Hope this helps. Let me know if there is anything else. The plugins
 have a lot more options than you will find in DV so I will document it as
 soon as possible.

 Jan


 On Mon, Apr 20, 2015 at 9:45 AM, Bharath chbhara...@gmail.com wrote:

 Hi All,

 Have been trying to embed charts in HTML report using Visualiser chart
 Plug-in. I am facing below issues, could you please help: I am using 2.18
 version.


 1. When I set *hideLegend *attribute value to *false* then I am
 getting the below error at browser console: *Uncaught TypeError:
 Cannot read property 'labelMarkerSize' of undefined*

 2. In my chart I am passing periods 2007 to 2015 where I have data for
 2 years only, in my chart I am getting chart for those 2 years only, where
 as I would like chart for all years. Can you please help if I can set any
 parameter to get this. If I am generating the chart in Visualiser there I
 have the option *Hide empty categories, *do we have similar option in
 plug-in.

 3. I created a chart and saved as a favourite. I am able to embed this
 chart using plug-in

  DHIS.getChart({ url: base, el: chart1, id: R0DVGvXDUNP });

 I need to pass Period as parameter to this chart, can you please
 suggest how can I do that.

 Thanks



 --

 Regards,
 Bharath Kumar. Ch

 ___
 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





 --

 Regards,
 Bharath Kumar. Ch





 --

 Regards,
 Bharath Kumar. Ch

___
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] Questions regarding Embedding charts with the Visualizer chart plug-in

2015-04-20 Thread Jan Henrik Øverland
Hi Bharath,

1) I don't think this is affected by the hideLegend option. Please add
the legendStyle object I mentioned ealier for now until the plugin is
updated.

2) This is behind the scenes the same option as in pivot table:
hideEmptyRows. This option should be false by default, but I can see that
it is not in the 2.18 plugin for some reason. I will fix this, but for now
you can add hideEmptyRows: false to your chart config to show empty
categories in the chart.

3) You can override anything in a favorite by adding it to the config
object. If you have periods as categories you can do e.g.:

DHIS.getChart({
url: base,
el: chart1,
id: R0DVGvXDUNP,

legendStyle: {},
hideEmptyRows: false,
rows: [
{
dimension: pe,
items: [
{id: 2012}, // Iso code for years. If you want months
e.g. January 2015 would be 201501.
{id: 2013},
{id: 2014},
{id: 2015}
]
}
]
}

Hope this helps. Let me know if there is anything else. The plugins have a
lot more options than you will find in DV so I will document it as soon as
possible.

Jan


On Mon, Apr 20, 2015 at 9:45 AM, Bharath chbhara...@gmail.com wrote:

 Hi All,

 Have been trying to embed charts in HTML report using Visualiser chart
 Plug-in. I am facing below issues, could you please help: I am using 2.18
 version.


 1. When I set *hideLegend *attribute value to *false* then I am getting
 the below error at browser console: *Uncaught TypeError: Cannot read
 property 'labelMarkerSize' of undefined*

 2. In my chart I am passing periods 2007 to 2015 where I have data for 2
 years only, in my chart I am getting chart for those 2 years only, where as
 I would like chart for all years. Can you please help if I can set any
 parameter to get this. If I am generating the chart in Visualiser there I
 have the option *Hide empty categories, *do we have similar option in
 plug-in.

 3. I created a chart and saved as a favourite. I am able to embed this
 chart using plug-in

  DHIS.getChart({ url: base, el: chart1, id: R0DVGvXDUNP });

 I need to pass Period as parameter to this chart, can you please suggest
 how can I do that.

 Thanks



 --

 Regards,
 Bharath Kumar. Ch

 ___
 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


Re: [Dhis2-devs] Questions regarding Embedding charts with the Visualizer chart plug-in

2015-04-20 Thread Jan Henrik Øverland
Great. I just updated the CDN (2.18) so legendStyle and hideEmptyRows
shoud be unnecessary by now.

On Mon, Apr 20, 2015 at 3:10 PM, Bharath chbhara...@gmail.com wrote:

 Thank you so much Jan, it worked perfectly. Thanks

 On Mon, Apr 20, 2015 at 6:28 PM, Jan Henrik Øverland 
 janhenrik.overl...@gmail.com wrote:

 Hi Bharath,

 1) I don't think this is affected by the hideLegend option. Please add
 the legendStyle object I mentioned ealier for now until the plugin is
 updated.

 2) This is behind the scenes the same option as in pivot table:
 hideEmptyRows. This option should be false by default, but I can see that
 it is not in the 2.18 plugin for some reason. I will fix this, but for now
 you can add hideEmptyRows: false to your chart config to show empty
 categories in the chart.

 3) You can override anything in a favorite by adding it to the config
 object. If you have periods as categories you can do e.g.:

 DHIS.getChart({
 url: base,
 el: chart1,
 id: R0DVGvXDUNP,

 legendStyle: {},
 hideEmptyRows: false,
 rows: [
 {
 dimension: pe,
 items: [
 {id: 2012}, // Iso code for years. If you want months
 e.g. January 2015 would be 201501.
 {id: 2013},
 {id: 2014},
 {id: 2015}
 ]
 }
 ]
 }

 Hope this helps. Let me know if there is anything else. The plugins have
 a lot more options than you will find in DV so I will document it as soon
 as possible.

 Jan


 On Mon, Apr 20, 2015 at 9:45 AM, Bharath chbhara...@gmail.com wrote:

 Hi All,

 Have been trying to embed charts in HTML report using Visualiser chart
 Plug-in. I am facing below issues, could you please help: I am using 2.18
 version.


 1. When I set *hideLegend *attribute value to *false* then I am getting
 the below error at browser console: *Uncaught TypeError: Cannot read
 property 'labelMarkerSize' of undefined*

 2. In my chart I am passing periods 2007 to 2015 where I have data for 2
 years only, in my chart I am getting chart for those 2 years only, where as
 I would like chart for all years. Can you please help if I can set any
 parameter to get this. If I am generating the chart in Visualiser there I
 have the option *Hide empty categories, *do we have similar option in
 plug-in.

 3. I created a chart and saved as a favourite. I am able to embed this
 chart using plug-in

  DHIS.getChart({ url: base, el: chart1, id: R0DVGvXDUNP });

 I need to pass Period as parameter to this chart, can you please suggest
 how can I do that.

 Thanks



 --

 Regards,
 Bharath Kumar. Ch

 ___
 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





 --

 Regards,
 Bharath Kumar. Ch

___
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] [Bug 1437521] Re: Sorting Charts by size in data visualizer does not recognize zero values

2015-04-12 Thread Jan Henrik Øverland
** Changed in: dhis2
 Assignee: (unassigned) = Jan Henrik Øverland (janhenrik-overland)

** Changed in: dhis2
   Status: New = Fix Committed

** Changed in: dhis2
Milestone: None = 2.19

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1437521

Title:
  Sorting Charts by size in data visualizer does not recognize zero
  values

Status in DHIS 2:
  Fix Committed

Bug description:
  Charts in the data visualizer can be sorted from either high to low or
  vice versa. It is assumed that chart category members with zero values
  should be included in this sorting but this does not happen giving
  rise to distorted charts when zeros are involved.

  Affects 2.18 rev 18721.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1437521/+subscriptions

___
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] Display values with thousand separator in Data Visualizer

2015-04-08 Thread Jan Henrik Øverland
That's right, but there is no option UI for it yet. Will fix that in time
for 2.19.

On Wed, Apr 8, 2015 at 11:12 AM, Calle Hedberg calle.hedb...@gmail.com
wrote:

 Jan,

 Excellent. I'm not a java developer, but the revised code seems to support
 either space or comma as thousand separator?

 Regards
 calle

 On 7 April 2015 at 22:23, Jan Henrik Øverland 
 janhenrik.overl...@gmail.com wrote:

 Hi Calle,

 there is now a thousand separator (space) as default in trunk r18822 for
 the numeric axis, the series values and the popup.

 Jan

 On Tue, Apr 7, 2015 at 12:20 PM, Calle Hedberg calle.hedb...@gmail.com
 wrote:

 Hi

 How do I specify values in charts to be displayed with a thousand
 separator?

 Regards
 calle

 ***

 Calle Hedberg

 46D Alma Road, 7700 Rosebank, SOUTH AFRICA

 Tel/fax (home): +27-21-685-6472

 Cell: +27-82-853-5352

 Iridium SatPhone: +8816-315-19274

 Email: calle.hedb...@gmail.com

 Skype: calle_hedberg

 ***


 ___
 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





 --

 ***

 Calle Hedberg

 46D Alma Road, 7700 Rosebank, SOUTH AFRICA

 Tel/fax (home): +27-21-685-6472

 Cell: +27-82-853-5352

 Iridium SatPhone: +8816-315-19274

 Email: calle.hedb...@gmail.com

 Skype: calle_hedberg

 ***


___
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] Display values with thousand separator in Data Visualizer

2015-04-07 Thread Jan Henrik Øverland
Hi Calle,

there is now a thousand separator (space) as default in trunk r18822 for
the numeric axis, the series values and the popup.

Jan

On Tue, Apr 7, 2015 at 12:20 PM, Calle Hedberg calle.hedb...@gmail.com
wrote:

 Hi

 How do I specify values in charts to be displayed with a thousand
 separator?

 Regards
 calle

 ***

 Calle Hedberg

 46D Alma Road, 7700 Rosebank, SOUTH AFRICA

 Tel/fax (home): +27-21-685-6472

 Cell: +27-82-853-5352

 Iridium SatPhone: +8816-315-19274

 Email: calle.hedb...@gmail.com

 Skype: calle_hedberg

 ***


 ___
 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


Re: [Dhis2-devs] webAPI JSON: (hierarchyMeta=true) outputs in Event Report VS Pivot Reports

2015-03-29 Thread Jan Henrik Øverland
Ok, I guess we can add this. For now you can loop through the headers and
add them manually (name: column) immediately after getting the response
from the server.

On Tue, Mar 24, 2015 at 10:46 AM, Greg Rowles greg.row...@gmail.com wrote:

 Hi Devs

 Please ignore, we've figured a way around this problem (metaData.ouHierarchy
 makes the lookups possible) but we have a new issue. In the
 [api/analytics/events/aggregate] JSON output metaData.names collection
 does not include header field names, e.g.pe: Period, ou: Organisation
 unit,dx: Data are all missing.

 Greg

 On Tue, Mar 24, 2015 at 10:23 AM, Greg Rowles greg.row...@gmail.com
 wrote:

 Hi Devs

 We've picked up an inconsistency between Event aggregate analytics (API)
 and the regular aggregated analytics (API). JSON output for the latter
 (when requesting 'hierarchyMeta=truedisplayProperty=NAME') includes
 metaData.ouNameHierarchy but not for the event aggregate analytics API call.

 Regards,
 Greg

 --
 *Health Information Systems Program - South Africa*
 *- - - - - - - **- - - - - - - **- - - - - - - **- - - - - - - **- - - -
 - *
 Mobile  :073 246 2992
 Landline:   021 554 3130
 Fax:  086 733 8432
 Skype:  gregory_rowles




 --
 *Health Information Systems Program - South Africa*
 *- - - - - - - **- - - - - - - **- - - - - - - **- - - - - - - **- - - -
 - *
 Mobile  :073 246 2992
 Landline:   021 554 3130
 Fax:  086 733 8432
 Skype:  gregory_rowles

 ___
 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


Re: [Dhis2-devs] Possible issue with GML import

2015-03-24 Thread Jan Henrik Øverland
Halvdan, quick fix. Points should never have more than one set of brackets.

On Tue, Mar 24, 2015 at 12:01 PM, Jason Pickering 
jason.p.picker...@gmail.com wrote:

 Hi there.

 I am using the GML importer to import coordinates.

 Here is a snippet of the GML I am importing

  gml:featureMember
 ogr:OpenDemolandHealthFacilities fid=OpenDemolandHealthFacilities.4
   ogr:geometryPropertygml:Point
 srsName=EPSG:4326gml:coordinates-45.046450667490049,30.904516454945856/gml:coordinates/gml:Point/ogr:geometryProperty
   ogr:NameCrow Site/ogr:Name
   ogr:NAME_1Bird/ogr:NAME_1
   ogr:RegionAnimal/ogr:Region
   ogr:CountryDemoland/ogr:Country
 /ogr:OpenDemolandHealthFacilities
   /gml:featureMember

 This seems to import fine, but on the database side, I see this

  Crow Site   | [[-45.0465,30.9045]]

 Note, the double square brackets. The GIS says there are no valid
 coordinates.

 When I replace these double brackets with single ones

 Crow Site   | [-45.0465,30.9045]

 Things work OK. This is a 2.19 snapshot version, unsure of the revision.

 Is this an issue possibly with rev 18488?

 Regards,
 Jason


 --
 Jason P. Pickering
 email: jason.p.picker...@gmail.com
 tel:+46764147049

 ___
 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


Re: [Dhis2-devs] Google Street Layer - Dashboard

2015-03-22 Thread Jan Henrik Øverland
Hi Dapo,

it is currently fixed, but should definitely follow what is saved in the
favorite. Will fix this.

Jan

On Sun, Mar 22, 2015 at 8:11 PM, Dapo Adejumo dapo_adej...@yahoo.com
wrote:

 Hi Devs,

 Is there a way to use the google street background optionally or is this
 fixed for all maps on the dashboard?

 Thanks



 ………

 *Regards,*

 *Dapo Adejumo*

 *+2348033683677*

 *Skype : dapojorge*



___
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] api/organisationUnitLevels

2015-03-19 Thread Jan Henrik Øverland
Or:
https://apps.dhis2.org/demo/api/organisationUnitLevels.json?fields=id,name,levelpaging=false

On Thu, Mar 19, 2015 at 12:45 PM, Greg Rowles greg.row...@gmail.com wrote:

 Not sure if this will become an app or not, too early to tell. I think
 Jason's json URL will definitely work! Thanks guys!

 On Thu, Mar 19, 2015 at 11:52 AM, Mark Polak mar...@ifi.uio.no wrote:

 Yes exactly, but we’re not sure if he’s building an app, or importing it
 somewhere. But non the less i agree that should be easy enough to do.

 Kind regards,

 Mark Polak
 m...@thedutchies.com
 mar...@ifi.uio.no
 +47 970 36 752

 On 19 Mar 2015, at 10:51, Jason Pickering jason.p.picker...@gmail.com
 wrote:

 OK, but but the level attribute is numeric, and seems it could easily
 be sorted by the client?


 {created:2015-03-19T09:46:38.286+,organisationUnitLevels:[{name:District,created:2011-12-24T11:24:22.935+,lastUpdated:2014-04-29T18:23:38.202+,externalAccess:false,
 level:2,
 id:wjP19dkFeIk},{name:Chiefdom,created:2011-12-24T11:24:22.935+,lastUpdated:2014-04-29T18:23:38.209+,externalAccess:false,
 level:3,
 id:tTUf91fCytl},{name:National,created:2011-12-24T11:24:22.935+,lastUpdated:2014-04-29T18:23:38.212+,externalAccess:false,
 level:1,
 id:H1KlN4QIauv},{name:Facility,created:2011-12-24T11:24:22.935+,lastUpdated:2014-04-29T18:23:38.215+,externalAccess:false,
 level:4,id:m9lBJogzE95}]}

 On Thu, Mar 19, 2015 at 10:49 AM, Mark Polak mar...@ifi.uio.no wrote:

 It does return the orgunit levels, but Greg’s initial request was to
 return them ordered by level instead of name. :)

 Kind regards,

 Mark Polak
 m...@thedutchies.com
 mar...@ifi.uio.no
 +47 970 36 752

 On 19 Mar 2015, at 10:47, Jason Pickering jason.p.picker...@gmail.com
 wrote:

 Does this not provide what you need?


 https://apps.dhis2.org/demo/api/metaData.json?assumeTrue=falseorganisationUnitLevels=true

 Regards,
 Jason



 On Thu, Mar 19, 2015 at 9:27 AM, Greg Rowles greg.row...@gmail.com
 wrote:

 Is there any chance we could get organisationUnitLevels data added into
 the [metaData] branch of the JSON output?

 On Thu, Mar 19, 2015 at 10:10 AM, Mark Polak mar...@ifi.uio.no wrote:

 If you are indeed building your own app, you can also sort the levels
 on the client :)

 Kind regards,

 Mark Polak
 m...@thedutchies.com
 mar...@ifi.uio.no
 +47 970 36 752

 On 19 Mar 2015, at 08:47, Abyot Gizaw aby...@gmail.com wrote:

 Seems you are creating your own app? If so, you can fetch OUs based on
 level whenever drill down/up is triggered

 -
 Thank you,
 Abyot.

 (sent from mobile)
 On Mar 19, 2015 8:14 AM, Greg Rowles greg.row...@gmail.com wrote:

 Hi Mark

 My JSON request:

 api/analytics.json?dimension=pe:LAST_3_MONTHSdimension=dx:trqWVUf9e6D;lPVvmrINVHS;eDktBD88IULdimension=ou:LEVEL-3;JLA7wl59oN3hierarchyMeta=truedisplayProperty=NAMEshowHierarchy=true

 The objective is to reconstruct JSON to include columns for all
 parent-orgunits.

 Some background to this - we have several reports specified in 'pivot
 table' layout but we need to make these outputs drill-through. Reporting 
 is
 expected down to facility level for the last 3 months for the entire
 country - I assume this amount of data would probably choke the browser 
 so
 I'm wanting to create a dynamic HTML report with drill-through 
 capabilities
 but starting at regional levels. The current 'show hierarchy' 
 functionality
 in pivot tables is insufficient plus it does not support drill-through
 'mining'. I was planning on using PivotTable.js to accomplish this...



 On Thu, Mar 19, 2015 at 8:56 AM, Mark Polak mar...@ifi.uio.no
 wrote:

 If you’re getting the data in JSON format. And you’re using it to
 reconstruct something, how are you retrieving this data? Otherwise it 
 would
 be trivial to sort it on your side?

 Kind regards,

 Mark Polak
 m...@thedutchies.com
 mar...@ifi.uio.no
 +47 970 36 752

 On 19 Mar 2015, at 07:49, Greg Rowles greg.row...@gmail.com wrote:

 Thanks Jason, I'll do some testing. I know offhand of a viewClass
 parameter but it may not be applicable to this object, will see...

 Best,
 Greg

 On Thu, Mar 19, 2015 at 7:46 AM, Jason Pickering 
 jason.p.picker...@gmail.com wrote:

 Hi Greg,

 Yeah, I can understand that. Jan can probably provide more detail
 here, but for instance

 [1]https://apps.dhis2.org/demo/api/organisationUnitLevels/

 gives you all levels

  [2]
 https://apps.dhis2.org/demo/api/organisationUnitLevels/H1KlN4QIauv

 gives you the number of the level, in this case 1. You could do
 this for each level.

 [3]
 https://apps.dhis2.org/demo/api/organisationUnits?filter=level:eq:1

 Gives all units at a given level, or


 https://apps.dhis2.org/demo/api/organisationUnits?fields=id,level,name,parent[id]paging=false

 which would give you a list which you could then recursively parse
 to get what you need I think.

 Regards,
 Jason




 On Thu, Mar 19, 2015 at 6:34 AM, greg.row...@gmail.com 
 greg.row...@gmail.com wrote:

  Hi Jason

 

Re: [Dhis2-devs] Org Unit Hierarchy as Dimensions in Pivot Table

2015-03-19 Thread Jan Henrik Øverland
Hi Pierre,

this is not likely to be implemented in the near future I'm afraid as it
requires a major upgrade of our pivot table engine. As you already seem
aware of this is a special case that sort of breaks with the nature of our
dimension based pivot table setup.

It's technically doable of course, but to answer your question it's not on
the list for the next couple of releases.

Jan

On Thu, Mar 19, 2015 at 9:00 AM, Pierre Dane pie...@jembi.org wrote:

 I know there has been discussion about having the different levels of the
 org unit hierarchy in the pivot tables. At present this is still not
 possible (as far as I can see) and the best we can do is to have the full
 hierarchy string as a dimension (e.g. ec Eastern Cape Province / ec
 Alfred Nzo District Municipality / ec Maluti Health sub-District / ec
 Madlangala Clinic)  South African Dept. Health has requested that we have
 each level as a dimension. We are working around this by providing a csv
 file for excel pivots.

 Are there any plans to get the org unit levels into the pivots as
 dimensions? Apologies if I've missed a previous thread about this.

 Thanks

 ___
 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


Re: [Dhis2-devs] Testing modified JSON inside of Pivot Tables

2015-03-18 Thread Jan Henrik Øverland
Hi Greg, what kind of modifications do you want to make?

I can easily expose a function so that you can test stuff via the Chrome
console. But the data needs to follow a specific format, so you will only
be able to change the data/values basically.

Jan

On Wed, Mar 18, 2015 at 11:55 AM, Lars Helge Øverland larshe...@gmail.com
wrote:

 Hi Greg,

 you mean you want the JSON string to render a pivot? The problem is that
 the JSON analytics request only contains the data source for the pivot, not
 the layout of it.

 What you can do is to simply paste the URL into a web browser or use curl
 to test it, and see how your changes affects output.

 best regards,

 Lars



 On Tue, Mar 17, 2015 at 12:10 PM, Greg Rowles greg.row...@gmail.com
 wrote:

 Hi Devs

 Is there any way or planned functionality for testing JSON urls inside of
 pivot tables? E.g. I set up a pivot table then download the JSON data
 source but then want to test a modified version of that JSON string inside
 the current session... is that possible or do-able...?

 Greg

 --
 *Health Information Systems Program - South Africa*
 *- - - - - - - **- - - - - - - **- - - - - - - **- - - - - - - **- - - -
 - *
 Mobile  :073 246 2992
 Landline:   021 554 3130
 Fax:  086 733 8432
 Skype:  gregory_rowles

 ___
 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


___
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 user interface language through the API

2015-02-12 Thread Jan Henrik Øverland
Or simply:

api/userSettings/keyUiLocale

On Thu, Feb 12, 2015 at 12:17 PM, Jan Henrik Øverland 
janhenrik.overl...@gmail.com wrote:

 api/me/user-account.json

 On Thu, Feb 12, 2015 at 12:12 PM, Jose Garcia Muñoz josem...@gmail.com
 wrote:


 Hi devs,

 I have tried so far with:

 /api/users/ID.json

 /api/me

 But it seems we can not get the answer from them...

 Thank you!

 Regards
 Jose

 ___
 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


Re: [Dhis2-devs] Event reports and event visualiser

2015-02-09 Thread Jan Henrik Øverland
On Fri, Jan 9, 2015 at 11:20 AM, Olav Poppe olav.po...@me.com wrote:

 Hi devs,
 I wanted to make a dashboard for a single event death registration
 program, but I found it quite difficult. Below is a list of issues I ran
 into - some of them are bugs/problems, others feature requests and
 questions.

 - Days are not part of the relative periods. Since all data is recorded by
 day/date, it would be great if we could also have reports by day/date
 (fixed periods allow you to make reports by day of course, but if you want
 to have an up-to-date dashboard it means you have to update the report
 every day). Having at least the last 7 days, or last 28/30/31 days (not
 sure which one is the most useful) would be great.

 - The last/this for relative periods is problematic here (as elsewhere).
 Making a report for the number of cases registered this year, for example,
 is not possible using the relative periods: «This year» is still 2014 in
 DHIS. I’m sure it will change at some point, but I don’t know when.

 - In event report, the default layout is to have orgunits AND periods on
 the columns, and nothing on rows. So by default you get «undefined/Periods»
 as cell A2 (in Excel terminology) and the table will be messed up (all data
 rows shifted one place to the left because there is no header cell on the
 rows). It is not uncommon to want to run a report without data items, since
 it will give you the number of event or TEIs registered in a period.


Fixed in trunk and 2.18.


 - event reports do not seem to be available in dashboards?


Available (as you know) in 2.18.



 - More than one series in event visualiser would be great. For example
 number of cases as a line chart with one series for male and one for
 female, or for different age groups.

 - The options for filtering in event visualiser and report is a bit
 strange. For example, using an «age» data element, it does not seem to be
 possible to make a chart where the series is «cases with age  5 yrs».
 Instead, it  will make five different series (Age 0, Age 1, Age 2). I see
 that this is useful in some cases (though I can’t really think of any right
 now), but my guess is that getting all matches together would be most
 useful in most cases.

 - «Yes only» data elements are treated as integers when filtering in event
 visualiser/reports.

 - It is not possible to make a report on the number of cases in event
 visualiser, as it requires you to select a data item (unlike event
 reports). Being able to make a chart of the total number of cases by time
 or orgunit would be useful.

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


Re: [Dhis2-devs] Unable to Edit Favorites if No Values Found

2015-02-03 Thread Jan Henrik Øverland
Hi Timothy,

the data selection user interface will now be updated even when no values
are returned. Fixed in trunk and backported to 2.18.

Jan

On Sun, Feb 1, 2015 at 9:22 PM, Timothy Harding hardi...@gmail.com wrote:

 Hello DHIS2 Devs,

 System: DHIS 2.18, Only Monthly Datasets

 Issue: On February 1st, several of our 2014 data visualizer favorites
 started to return No Values Found, but they had been working fine the day
 before. Feb 1st means we have a complete period for 2015, so I'm assuming
 it is because the creator selected 'Current Year' instead of manually
 selecting '2014'. The issue now is that we cannot seem to load/edit those
 favorites while there is no data for 2015.

 [image: Inline image 1]
 Then:

 [image: Inline image 2]

 Suggestion: Even if no values are returned, load the favorite into the
 left hand pane so the user can see the selected criteria for the chart and
 make edits/fixes. This can also be used a tool for teaching new comers who
 are having trouble with the data visualizer, e.g. Others will be able to
 critique the criteria used and make suggestions even if no values are found.

 Work Around: Put dummy data in for 2015 for the affected charts, run
 analytics, edit/fix the charts, remove dummy data [rerun analytics].
 -or-
 Remake each of the effected favorites from scratch and 'overwrite' the old
 ones

 Timothy Harding
 PeaceCorps Volunteer
 Republic of Vanuatu
 hardi...@gmail.com
 +678 5955137

 ___
 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


Re: [Dhis2-devs] [Bug 1402244] [NEW] event report/visulizer: option set sort order not respocted

2015-01-29 Thread Jan Henrik Øverland
Olav, fixed in trunk and backported to 2.18.

On Tue, Jan 27, 2015 at 10:47 AM, Greg Rowles greg.row...@gmail.com wrote:

 Sorry - pls ignore - I see included the wrong parameters for OUlevels...

 On Tue, Jan 27, 2015 at 11:46 AM, Greg Rowles greg.row...@gmail.com
 wrote:

 Hi Olav, Jan and Others

 I think I've replicated this bug on the Sierra Leone (demo) instance:


 https://apps.dhis2.org/demo/api/analytics/events/aggregate/IpHINAT79UW.html?stage=A03MvHHogjRdimension=ou:LEVEL-2;LEVEL-3;ImspTQPwCqddimension=pe:THIS_YEAR;LAST_YEARfilter=UXz7xuGCEhUdisplayProperty=NAMEasc=OUNAME

 OUnames are outputted non-alphabetical...

 Greg


 On Sun, Jan 25, 2015 at 12:53 PM, Olav Poppe olav.po...@me.com wrote:

 Hi,
 the issue is not that it doesn’t allow custom sorting (I didn’t know
 that was possible), but that it sorts options alphabetically rather than
 using the sort order specified for the option set.

 On the /demo for example, the option set for Gender has sort order Male
 - Female, but in ER and EV they are displayed as Female - Male. Not so
 important in the case of Gender, but if you have options like «Not
 applicable» or «Other» you might want to have those at the end of the list
 both in data entry and in analysis by default.

 Olav



 23. jan. 2015 kl. 19.02 skrev Jan Henrik Øverland 
 janhenrik.overl...@gmail.com:

 Olav,

 how/where can I reproduce it? This is what I tried (demo):

 - opened both ER and EV, selected Inpatient.. program, then Mode of
 discharge
 - selected a custom order, clicked update, but it worked as expected

 The demo is now 2.18, but nothing has been changed lately in this regard.

 Greg,

 seems adding asc=OUNAME does not have any effect (
 https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s22.html)

 Should be fixed, but please write a new bug report as it's an unrelated
 issue.

 On Thu, Jan 22, 2015 at 3:21 PM, Greg Rowles greg.row...@gmail.com
 wrote:

 Hi OIav/Devs

 Is this bug related to my observation:

 I cannot get event (aggregate) analytics to sort my data by column [OU]
 alphabetically ASC. Right now data is displayed with no apparent display
 order...

 Regards,
 Greg



 -- Forwarded message --
 From: Olav P 1402...@bugs.launchpad.net
 Date: Sat, Dec 13, 2014 at 7:41 PM
 Subject: [Dhis2-devs] [Bug 1402244] [NEW] event report/visulizer:
 option set sort order not respocted
 To: dhis2-devs@lists.launchpad.net


 Public bug reported:

 Event report/visulizer apps do not respect the sort order that is set
 for option sets. 2.17.

 ** Affects: dhis2
  Importance: Undecided
  Status: New

 --
 You received this bug notification because you are a member of DHIS 2
 developers, which is subscribed to DHIS.
 https://bugs.launchpad.net/bugs/1402244

 Title:
   event report/visulizer: option set sort order not respocted

 Status in DHIS 2:
   New

 Bug description:
   Event report/visulizer apps do not respect the sort order that is set
   for option sets. 2.17.

 To manage notifications about this bug go to:
 https://bugs.launchpad.net/dhis2/+bug/1402244/+subscriptions

 ___
 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



 --
 *Health Information Systems Program - South Africa*
 *- - - - - - - **- - - - - - - **- - - - - - - **- - - - - - - **- - -
 - - *
 Mobile  :073 246 2992
 Landline:   021 554 3130
 Fax:  086 733 8432
 Skype:  gregory_rowles

 ___
 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






 --
 *Health Information Systems Program - South Africa*
 *- - - - - - - **- - - - - - - **- - - - - - - **- - - - - - - **- - - -
 - *
 Mobile  :073 246 2992
 Landline:   021 554 3130
 Fax:  086 733 8432
 Skype:  gregory_rowles




 --
 *Health Information Systems Program - South Africa*
 *- - - - - - - **- - - - - - - **- - - - - - - **- - - - - - - **- - - -
 - *
 Mobile  :073 246 2992
 Landline:   021 554 3130
 Fax:  086 733 8432
 Skype:  gregory_rowles

___
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] [Bug 1402244] [NEW] event report/visulizer: option set sort order not respocted

2015-01-29 Thread Jan Henrik Øverland
And 2.17.

On Thu, Jan 29, 2015 at 5:36 PM, Jan Henrik Øverland 
janhenrik.overl...@gmail.com wrote:

 Olav, fixed in trunk and backported to 2.18.

 On Tue, Jan 27, 2015 at 10:47 AM, Greg Rowles greg.row...@gmail.com
 wrote:

 Sorry - pls ignore - I see included the wrong parameters for OUlevels...

 On Tue, Jan 27, 2015 at 11:46 AM, Greg Rowles greg.row...@gmail.com
 wrote:

 Hi Olav, Jan and Others

 I think I've replicated this bug on the Sierra Leone (demo) instance:


 https://apps.dhis2.org/demo/api/analytics/events/aggregate/IpHINAT79UW.html?stage=A03MvHHogjRdimension=ou:LEVEL-2;LEVEL-3;ImspTQPwCqddimension=pe:THIS_YEAR;LAST_YEARfilter=UXz7xuGCEhUdisplayProperty=NAMEasc=OUNAME

 OUnames are outputted non-alphabetical...

 Greg


 On Sun, Jan 25, 2015 at 12:53 PM, Olav Poppe olav.po...@me.com wrote:

 Hi,
 the issue is not that it doesn’t allow custom sorting (I didn’t know
 that was possible), but that it sorts options alphabetically rather than
 using the sort order specified for the option set.

 On the /demo for example, the option set for Gender has sort order Male
 - Female, but in ER and EV they are displayed as Female - Male. Not so
 important in the case of Gender, but if you have options like «Not
 applicable» or «Other» you might want to have those at the end of the list
 both in data entry and in analysis by default.

 Olav



 23. jan. 2015 kl. 19.02 skrev Jan Henrik Øverland 
 janhenrik.overl...@gmail.com:

 Olav,

 how/where can I reproduce it? This is what I tried (demo):

 - opened both ER and EV, selected Inpatient.. program, then Mode of
 discharge
 - selected a custom order, clicked update, but it worked as expected

 The demo is now 2.18, but nothing has been changed lately in this
 regard.

 Greg,

 seems adding asc=OUNAME does not have any effect (
 https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s22.html)

 Should be fixed, but please write a new bug report as it's an unrelated
 issue.

 On Thu, Jan 22, 2015 at 3:21 PM, Greg Rowles greg.row...@gmail.com
 wrote:

 Hi OIav/Devs

 Is this bug related to my observation:

 I cannot get event (aggregate) analytics to sort my data by column
 [OU] alphabetically ASC. Right now data is displayed with no apparent
 display order...

 Regards,
 Greg



 -- Forwarded message --
 From: Olav P 1402...@bugs.launchpad.net
 Date: Sat, Dec 13, 2014 at 7:41 PM
 Subject: [Dhis2-devs] [Bug 1402244] [NEW] event report/visulizer:
 option set sort order not respocted
 To: dhis2-devs@lists.launchpad.net


 Public bug reported:

 Event report/visulizer apps do not respect the sort order that is set
 for option sets. 2.17.

 ** Affects: dhis2
  Importance: Undecided
  Status: New

 --
 You received this bug notification because you are a member of DHIS 2
 developers, which is subscribed to DHIS.
 https://bugs.launchpad.net/bugs/1402244

 Title:
   event report/visulizer: option set sort order not respocted

 Status in DHIS 2:
   New

 Bug description:
   Event report/visulizer apps do not respect the sort order that is set
   for option sets. 2.17.

 To manage notifications about this bug go to:
 https://bugs.launchpad.net/dhis2/+bug/1402244/+subscriptions

 ___
 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



 --
 *Health Information Systems Program - South Africa*
 *- - - - - - - **- - - - - - - **- - - - - - - **- - - - - - - **- -
 - - - *
 Mobile  :073 246 2992
 Landline:   021 554 3130
 Fax:  086 733 8432
 Skype:  gregory_rowles

 ___
 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






 --
 *Health Information Systems Program - South Africa*
 *- - - - - - - **- - - - - - - **- - - - - - - **- - - - - - - **- - -
 - - *
 Mobile  :073 246 2992
 Landline:   021 554 3130
 Fax:  086 733 8432
 Skype:  gregory_rowles




 --
 *Health Information Systems Program - South Africa*
 *- - - - - - - **- - - - - - - **- - - - - - - **- - - - - - - **- - - -
 - *
 Mobile  :073 246 2992
 Landline:   021 554 3130
 Fax:  086 733 8432
 Skype:  gregory_rowles



___
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] [Bug 1402244] Re: event report/visulizer: option set sort order not respocted

2015-01-29 Thread Jan Henrik Øverland
** Changed in: dhis2
   Status: New = Fix Committed

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1402244

Title:
  event report/visulizer: option set sort order not respocted

Status in DHIS 2:
  Fix Committed

Bug description:
  Event report/visulizer apps do not respect the sort order that is set
  for option sets. 2.17.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1402244/+subscriptions

___
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] Fwd: [Bug 1402244] [NEW] event report/visulizer: option set sort order not respocted

2015-01-23 Thread Jan Henrik Øverland
Olav,

how/where can I reproduce it? This is what I tried (demo):

- opened both ER and EV, selected Inpatient.. program, then Mode of
discharge
- selected a custom order, clicked update, but it worked as expected

The demo is now 2.18, but nothing has been changed lately in this regard.

Greg,

seems adding asc=OUNAME does not have any effect (
https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s22.html)

Should be fixed, but please write a new bug report as it's an unrelated
issue.

On Thu, Jan 22, 2015 at 3:21 PM, Greg Rowles greg.row...@gmail.com wrote:

 Hi OIav/Devs

 Is this bug related to my observation:

 I cannot get event (aggregate) analytics to sort my data by column [OU]
 alphabetically ASC. Right now data is displayed with no apparent display
 order...

 Regards,
 Greg



 -- Forwarded message --
 From: Olav P 1402...@bugs.launchpad.net
 Date: Sat, Dec 13, 2014 at 7:41 PM
 Subject: [Dhis2-devs] [Bug 1402244] [NEW] event report/visulizer: option
 set sort order not respocted
 To: dhis2-devs@lists.launchpad.net


 Public bug reported:

 Event report/visulizer apps do not respect the sort order that is set
 for option sets. 2.17.

 ** Affects: dhis2
  Importance: Undecided
  Status: New

 --
 You received this bug notification because you are a member of DHIS 2
 developers, which is subscribed to DHIS.
 https://bugs.launchpad.net/bugs/1402244

 Title:
   event report/visulizer: option set sort order not respocted

 Status in DHIS 2:
   New

 Bug description:
   Event report/visulizer apps do not respect the sort order that is set
   for option sets. 2.17.

 To manage notifications about this bug go to:
 https://bugs.launchpad.net/dhis2/+bug/1402244/+subscriptions

 ___
 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



 --
 *Health Information Systems Program - South Africa*
 *- - - - - - - **- - - - - - - **- - - - - - - **- - - - - - - **- - - -
 - *
 Mobile  :073 246 2992
 Landline:   021 554 3130
 Fax:  086 733 8432
 Skype:  gregory_rowles

 ___
 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


Re: [Dhis2-devs] Organisation Units not showing up correctly on Data Visualizer

2015-01-16 Thread Jan Henrik Øverland
Hi, this should be fixed in trunk now.

Jan

On Fri, Jan 16, 2015 at 11:34 AM, Lars Helge Øverland larshe...@gmail.com
wrote:

 Hi,

 yes this is bug, something which sneak in during a refactor last week. We
 will fix as soon as possible.

 regards,

 Lars


 On Fri, Jan 16, 2015 at 11:33 AM, Sandesh Sukumar Doolipeta 
 sande...@thoughtworks.com wrote:

 Hi ,

   We are on the latest revision : 18015.

   In the data visualizer , we see that the user can only select the
 assigned orgunit and its children. For instance ,

  If the user is assigned to a country (Org unit level 3 in our case)
 then , the user is able to see/select only the country and projects (org
 unit level 4) under the country. Where as , we have a total of 6 levels
 including Op units (Level 5) and modules (Level 6).

  Our requirement is , when a user is assigned to particular level ,
 he must be able to select all the levels under it i.e , if a user is
 assigned to a country , he should have access to the country , project , op
 units and modules  under that country (Which was working in 2.17).

 Below is the orgunit hierarchy for your reference.


 ​

 --
 *Sandesh Doolipeta**Application Developer*
 emailsande...@thoughtworks.com
 Telephone9686062727
 [image: ThoughtWorks] http://www.thoughtworks.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


Re: [Dhis2-devs] Event reports and event visualiser

2015-01-11 Thread Jan Henrik Øverland
Thanks for the feedback.

On Fri, Jan 9, 2015 at 11:20 AM, Olav Poppe olav.po...@me.com wrote:

 Hi devs,
 I wanted to make a dashboard for a single event death registration
 program, but I found it quite difficult. Below is a list of issues I ran
 into - some of them are bugs/problems, others feature requests and
 questions.

 - Days are not part of the relative periods. Since all data is recorded by
 day/date, it would be great if we could also have reports by day/date
 (fixed periods allow you to make reports by day of course, but if you want
 to have an up-to-date dashboard it means you have to update the report
 every day). Having at least the last 7 days, or last 28/30/31 days (not
 sure which one is the most useful) would be great.

 - The last/this for relative periods is problematic here (as elsewhere).
 Making a report for the number of cases registered this year, for example,
 is not possible using the relative periods: «This year» is still 2014 in
 DHIS. I’m sure it will change at some point, but I don’t know when.

 - In event report, the default layout is to have orgunits AND periods on
 the columns, and nothing on rows. So by default you get «undefined/Periods»
 as cell A2 (in Excel terminology) and the table will be messed up (all data
 rows shifted one place to the left because there is no header cell on the
 rows). It is not uncommon to want to run a report without data items, since
 it will give you the number of event or TEIs registered in a period.
 - event reports do not seem to be available in dashboards?

 - More than one series in event visualiser would be great. For example
 number of cases as a line chart with one series for male and one for
 female, or for different age groups.

 - The options for filtering in event visualiser and report is a bit
 strange. For example, using an «age» data element, it does not seem to be
 possible to make a chart where the series is «cases with age  5 yrs».
 Instead, it  will make five different series (Age 0, Age 1, Age 2). I see
 that this is useful in some cases (though I can’t really think of any right
 now), but my guess is that getting all matches together would be most
 useful in most cases.

 - «Yes only» data elements are treated as integers when filtering in event
 visualiser/reports.

 - It is not possible to make a report on the number of cases in event
 visualiser, as it requires you to select a data item (unlike event
 reports). Being able to make a chart of the total number of cases by time
 or orgunit would be useful.

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


Re: [Dhis2-devs] ByPassing DHIS2 Login Page to Get to The Data Visualizer App

2015-01-07 Thread Jan Henrik Øverland
Ok good. And I think the setTimeout is not necessary. It will just delay
the whole process.

On Wed, Jan 7, 2015 at 1:17 PM, Arthur Gwatidzo arthu...@hisp.org wrote:

 Hi Jan,



 Thank you so much.



 Your solution has worked.



 Thanks again.



 Regards,



 Arthur



 *From:* Jan Henrik Øverland [mailto:janhenrik.overl...@gmail.com]
 *Sent:* 07 January 2015 02:09 PM
 *To:* Arthur Gwatidzo
 *Cc:* dhis2-devs
 *Subject:* Re: [Dhis2-devs] ByPassing DHIS2 Login Page to Get to The Data
 Visualizer App



 Hi Arthur, I guess the href in this line



 a href=*http://localhost:8080/dhis/dhis-web-visualizer/index.html
 http://localhost:8080/dhis/dhis-web-visualizer/index.html* onclick
 =autologging();VEA *Dashboard*/a



 will redirect the user to the href url before the script has logged him
 in. Try



 a href=# onclick=javascript:autologging();VEA Dashboard/a



 instead and see if it works.



 On Wed, Jan 7, 2015 at 12:54 PM, Arthur Gwatidzo arthu...@hisp.org
 wrote:

 Hi Devs,



 I am trying to make an app that performs auto-login into DHIS2(bypassing
 the login screen and landing the user to the Data Visualizer app) through a
 script.

 I have created a user and assigned this user to a public user role that
 has the authority of “Viewing the Data Visualizer module” only.



 With the code below, I am still being landed to the DHIS2 login page, even
 though I have specified the login to be done through my script.



 I am not getting any errors in the console nor even the network tab.



 What could be the problem? See the snippet codes below





 HTML Code

 ===

 html

 header

  titleVEA Public *Website*/title

  link rel=*stylesheet* href=*styles/style.css* type=
 *text/css* media=*screen* /

  script type=*text/javascript* src=
 *js/plugins/jquery-1.11.1.min.js*/script

  script type=*text/javascript* src=*js/autologin.js*/
 script

 /header

 body

  header

nav id=*navg*

 ul class=*nav-list*

lia href = *#*Home/a
 /li

lia href = *#*About
 Us/a/li

lia 
 href=*http://localhost:8080/dhis/dhis-web-visualizer/index.html
 http://localhost:8080/dhis/dhis-web-visualizer/index.html* onclick
 =autologging();VEA *Dashboard*/a

lia href = *#*Contact
 Us/a/li

 /ul



/nav

  /header

  h3centerPublic VEA *Website*/center/h3

 /body

 /html





 Script Code :* autologin.js*

 ===



 *function* autologging(){

setTimeout(*function*() {

$.ajax({

 type: POST,

 url: 
 http://localhost:8080/dhis/dhis-web-commons/security/login.action;,

 cache: *false*,

 async:*false*,

 crossDomain: *true*,

   //  contentType: application/text,

 data: { j_username: vea_public, j_password: V3apublic }

}).done(*function*( data,textStatus,xhr ) {

 alert( 'Welcome to the VEA Dashboard!' + xhr.status );

   window.location =
 http://localhost:8080/dhis/dhis-web-visualizer/index.html;;

});

  }, 3000);

 }







 Kind Regards,



 Arthur  Gwatidzo



 [image: Description: cid:image001.png@01CCADE7.1D5397D0]

 Software Development and Information Systems

 *Health Information Systems Program*

 ---

 Email:   arthu...@hisp.org

 Cell:  +27(0)768983930

 Skype:  Arthur.Gwatidzo

 Web*: *   http://www.hisp.org



 66 Rigel Avenue North, Waterkloof Ridge
 Pretoria, 0181
 South Africa
 E -25.7847787 S 28.2347984

 This message may contain privileged and confidential information intended
 only for the person or entity to which it is addressed. Any review,
 retransmission, dissemination, copy or other use of, or taking of any
 action in reliance upon this information by persons or entities other than
 the intended recipient, is prohibited. If you received this message in
 error, please notify the sender immediately by e-mail, facsimile or
 telephone and thereafter delete the material from any computer. Any views
 expressed in this message are those of the individual sender, except where
 the sender specifically states them to be the view of the entity
 transmitting the message.




 ___
 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

Re: [Dhis2-devs] ByPassing DHIS2 Login Page to Get to The Data Visualizer App

2015-01-07 Thread Jan Henrik Øverland
Hi Arthur, I guess the href in this line

a href=*http://localhost:8080/dhis/dhis-web-visualizer/index.html
http://localhost:8080/dhis/dhis-web-visualizer/index.html* onclick
=autologging();VEA *Dashboard*/a

will redirect the user to the href url before the script has logged him in.
Try

a href=# onclick=javascript:autologging();VEA Dashboard/a

instead and see if it works.

On Wed, Jan 7, 2015 at 12:54 PM, Arthur Gwatidzo arthu...@hisp.org wrote:

 Hi Devs,



 I am trying to make an app that performs auto-login into DHIS2(bypassing
 the login screen and landing the user to the Data Visualizer app) through a
 script.

 I have created a user and assigned this user to a public user role that
 has the authority of “Viewing the Data Visualizer module” only.



 With the code below, I am still being landed to the DHIS2 login page, even
 though I have specified the login to be done through my script.



 I am not getting any errors in the console nor even the network tab.



 What could be the problem? See the snippet codes below





 HTML Code

 ===

 html

 header

  titleVEA Public *Website*/title

  link rel=*stylesheet* href=*styles/style.css* type=
 *text/css* media=*screen* /

  script type=*text/javascript* src=
 *js/plugins/jquery-1.11.1.min.js*/script

  script type=*text/javascript* src=*js/autologin.js*/
 script

 /header

 body

  header

nav id=*navg*

 ul class=*nav-list*

lia href = *#*Home/a
 /li

lia href = *#*About
 Us/a/li

lia 
 href=*http://localhost:8080/dhis/dhis-web-visualizer/index.html
 http://localhost:8080/dhis/dhis-web-visualizer/index.html* onclick
 =autologging();VEA *Dashboard*/a

lia href = *#*Contact
 Us/a/li

 /ul



/nav

  /header

  h3centerPublic VEA *Website*/center/h3

 /body

 /html





 Script Code :* autologin.js*

 ===



 *function* autologging(){

setTimeout(*function*() {

$.ajax({

 type: POST,

 url: 
 http://localhost:8080/dhis/dhis-web-commons/security/login.action;,

 cache: *false*,

 async:*false*,

 crossDomain: *true*,

   //  contentType: application/text,

 data: { j_username: vea_public, j_password: V3apublic }

}).done(*function*( data,textStatus,xhr ) {

 alert( 'Welcome to the VEA Dashboard!' + xhr.status );

   window.location =
 http://localhost:8080/dhis/dhis-web-visualizer/index.html;;

});

  }, 3000);

 }







 Kind Regards,



 Arthur  Gwatidzo



 [image: Description: cid:image001.png@01CCADE7.1D5397D0]

 Software Development and Information Systems

 *Health Information Systems Program*

 ---

 Email:   arthu...@hisp.org

 Cell:  +27(0)768983930

 Skype:  Arthur.Gwatidzo

 Web*: *   http://www.hisp.org



 66 Rigel Avenue North, Waterkloof Ridge
 Pretoria, 0181
 South Africa
 E -25.7847787 S 28.2347984

 This message may contain privileged and confidential information intended
 only for the person or entity to which it is addressed. Any review,
 retransmission, dissemination, copy or other use of, or taking of any
 action in reliance upon this information by persons or entities other than
 the intended recipient, is prohibited. If you received this message in
 error, please notify the sender immediately by e-mail, facsimile or
 telephone and thereafter delete the material from any computer. Any views
 expressed in this message are those of the individual sender, except where
 the sender specifically states them to be the view of the entity
 transmitting the message.



 ___
 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


Re: [Dhis2-devs] DHIS2 Portal Demo Page broken

2014-12-23 Thread Jan Henrik Øverland
Hi, there was a problem with access rights in the demo db which is now
fixed. The portal has also been updated with the latest stable plugins.

https://apps.dhis2.org/portal/table.html
https://apps.dhis2.org/portal/chart.html
https://apps.dhis2.org/portal/map.html

On Mon, Dec 22, 2014 at 2:32 PM, Halvdan Grelland halvda...@gmail.com
wrote:

 FYI this seems to be a permissions issue. Giving the superuser role the
 ALL permission fixes it.

 2014-12-22 13:35 GMT+01:00 Jan Henrik Øverland 
 janhenrik.overl...@gmail.com:

 Hi Farai, will look at it as soon as I have the time.

 Jan

 On Thu, Dec 18, 2014 at 7:36 AM, Farai Mutero fmut...@gmail.com wrote:

 Hi Guys

 It seems like DHIS2 Portal page is broken (charts, tables and maps not
 rendering). Could you kindly assist?

 https://apps.dhis2.org/portal/


 Regards

 --
 Farai Mutero


 ___
 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



___
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] [Bug 1402247] [NEW] event visualizer: stacked line charts not working with optionsets

2014-12-23 Thread Jan Henrik Øverland
As the column chart shows there is only data for Male for W49.

A bar/column can represent a single value, but a line needs to go at least
from A to B :)


** Attachment added: Screenshot from 2014-12-23 15:39:03.png
   
https://bugs.launchpad.net/bugs/1402247/+attachment/4286462/+files/Screenshot%20from%202014-12-23%2015%3A39%3A03.png

** Changed in: dhis2
   Status: New = Invalid

** Changed in: dhis2
 Assignee: (unassigned) = Jan Henrik Øverland (janhenrik-overland)

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1402247

Title:
  event visualizer: stacked line charts not working with optionsets

Status in DHIS 2:
  Invalid

Bug description:
  Event visualiser stacked line charts are not stacked when having two
  options as the series, and period as category. The exact same data
  with stacked bar charts work as expected. Screenshots of how it looks
  attached.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1402247/+subscriptions

___
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] DHIS2 Portal Demo Page broken

2014-12-22 Thread Jan Henrik Øverland
Hi Farai, will look at it as soon as I have the time.

Jan

On Thu, Dec 18, 2014 at 7:36 AM, Farai Mutero fmut...@gmail.com wrote:

 Hi Guys

 It seems like DHIS2 Portal page is broken (charts, tables and maps not
 rendering). Could you kindly assist?

 https://apps.dhis2.org/portal/


 Regards

 --
 Farai Mutero


 ___
 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


Re: [Dhis2-devs] WebAPI getting all orgunits with hierarchy info

2014-12-15 Thread Jan Henrik Øverland
You can do this by using the *fields* param.

Go e.g. to https://apps.dhis2.org/dev/dhis-web-pivot - orgunit tab and
have a look at the network console when you expand nodes.



On Mon, Dec 15, 2014 at 2:34 PM, Simen Skogly Russnes 
simen_russ...@hotmail.com wrote:

 Dear all,

 can someone give me a suggestion on how to retrieve all orgunits through
 the WebAPI, including parent-child relationships of orgunits, so that an
 orgunit view can be created similarly to the view in Data Entry and
 Individual Records in DHIS 2? Perhaps it's possible to pass a parameter to
 api/organisationUnits so to include children or something, or in analytics
 get orgunits to include parent when passing the LEVEL-level parameter.
 The query wouldn't happen very often in the use case, but a low number of
 requests to the WebAPI would be preferable as ping rather than bandwidth is
 an issue.

 Regards,
 Simen S. Russnes

 ___
 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


Re: [Dhis2-devs] Invalid coordinates GIS

2014-12-11 Thread Jan Henrik Øverland
Hi Joao,

the coordinates in your image seems OK to me. Latitude must be within 90 to
-90.

I guess a different orgunit is messing up. You can e.g. try to use the
boundary layer, select facility level and then select a single
province/district in the tree. If it works you can go district by district
to localize the error.

On Wed, Dec 10, 2014 at 4:03 PM, Pamod Amarakoon pam...@gmail.com wrote:

 Hi Joao,

 The lattitude value you have entered in point coordinate is a negative
 value. It needs to be corrected. Are u using a local coordinate or WGS84?

 Regards,

 Pamod



 On Wed, Dec 10, 2014 at 8:28 PM, Joao Mazuze joao_maz...@chasssmt.com
 wrote:

  Dear all,

 I have recently set up coordinates for my health facilities, but when I
 am trying to visualize in GIS at the health facility level dhis2 throws: 
 *“invalid
 coordinates”, *can someone help on this? I have attached a picture
 showing how my coordinates look like.



 Kind regards





 *Melhores Cumprimentos*



 *João Gabriel Mazuze*

 *National Database Manager*

 CHASS-SMT Project

 Abt Associates Inc.

 Av. Marginal  nº 4067

 Maputo -  Mozambique

 Fax: (+ 258) 21493525/6/8

 Tel:  (+ 258) 21486767

 Cell: (+258) 824236279

 www.chasssmt.com



 [image: Description: Description: Description: Description: Description:
 Description: Description: Description: Logotipo CHASS-SMT]

 *We are a project founded by PEPFAR-II  through USAID to strengthen  the
 Health System in Sofala, Manica and Tete Provinces.*

 *Our aim is to improve  linkages and integration of HIV to  primary
 health care and other related services in coordination with the Provincial
 Health Directorates and partners. *

 *Through CHASS-SMT project, the US Government supports the Mozambican
 Governament to improve  quality of health care services in the country.*




 --
 This message may contain privileged and confidential information intended
 solely for the addressee. Please do not read, disseminate or copy it unless
 you are the intended recipient. If this message has been received in error,
 we kindly ask that you notify the sender immediately by return email and
 delete all copies of the message from your system.

 ___
 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




 --
 Pamod


 ___
 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


Re: [Dhis2-devs] Embedding charts with the Visualizer chart plug-in

2014-12-11 Thread Jan Henrik Øverland
Hi Arthur,

if you click the network tab, are there any errors?

Jan

On Fri, Dec 12, 2014 at 8:01 AM, Arthur Gwatidzo arthu...@hisp.org wrote:

 Hi Developers,



 I’m having a look at *1.18.2. Embedding charts with the Visualizer chart
 plug-in * example from the DHIS2 Developer manual.

 I made changes to point DHIS2 installation to my local machine (local
 host) and in the setLinks function, I refered to an existing through a
 valid Pivot table id.

 But im getting the following error:



 The table is not being rendered on my HTML page.

 Any idea where/what to tweak?





 Kind Regards,



 Arthur  Gwatidzo



 [image: Description: cid:image001.png@01CCADE7.1D5397D0]

 Software Development and Information Systems

 *Health Information Systems Program*

 ---

 Email:   arthu...@hisp.org

 Cell:  +27(0)768983930 or +27(0)730966325

 Skype:  Arthur.Gwatidzo

 Web*: *   http://www.hisp.org



 66 Rigel Avenue North, Waterkloof Ridge
 Pretoria, 0181
 South Africa
 E -25.7847787 S 28.2347984

 This message may contain privileged and confidential information intended
 only for the person or entity to which it is addressed. Any review,
 retransmission, dissemination, copy or other use of, or taking of any
 action in reliance upon this information by persons or entities other than
 the intended recipient, is prohibited. If you received this message in
 error, please notify the sender immediately by e-mail, facsimile or
 telephone and thereafter delete the material from any computer. Any views
 expressed in this message are those of the individual sender, except where
 the sender specifically states them to be the view of the entity
 transmitting the message.



 ___
 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


  1   2   3   4   >