[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15643: Fixed bug - Under the tracked Instance dashboard, the messages button doesnt load for viewing sen...

2014-06-12 Thread noreply
revno: 15643 committer: Tran Chau branch nick: dhis2 timestamp: Thu 2014-06-12 15:02:29 +0800 message: Fixed bug - Under the tracked Instance dashboard, the messages button doesnt load for viewing sent messages and sending messages; t

Re: [Dhis2-devs] Exporting and Importing Individual Records program Meta data

2014-06-12 Thread Adebusoye Anifalaje
Hi Prosper, That’s right. No meta data export for programs (yet). Hope this will change soon. Regards, Busoye On 12 Jun 2014, at 07:27, Prosper BT wrote: > Hi Team, > > I have designed a multiple stage program with registration but seems I can > only export and import data elements only n

Re: [Dhis2-devs] Bug in Messages and Reports on the Tracked Instance Dashboard

2014-06-12 Thread Tran Chau
Hi Prosper, This bug is fixed in revision 15142. Please take a look at it. Thank you for reporting this bug. Best regards, Châu Thu Trân HISP Viet Nam Email: tran.hispviet...@gmail.com On Sun, May 25, 2014 at 4:51 PM, Prosper BT wrote: > Dear

Re: [Dhis2-devs] Exporting and Importing Individual Records program Meta data

2014-06-12 Thread Morten Olav Hansen
Import/export of tracker metadata is coming to 2.16 On Jun 12, 2014 9:13 AM, "Adebusoye Anifalaje" wrote: > Hi Prosper, > > That’s right. No meta data export for programs (yet). > > Hope this will change soon. > > Regards, > > Busoye > > > On 12 Jun 2014, at 07:27, Prosper BT wrote: > > > Hi Tea

[Dhis2-devs] Importing OrgUnit data via API using curl

2014-06-12 Thread David Muturi
Hi Team, I am importing org unit data via the api using curl, on running the script, this is the error I am getting. Anyone who has done this before and has an idea what could be wrong ? I am doing this on DHIS 2.13 ---

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15644: (Translations) Seeding Bengali locale for translations server.

2014-06-12 Thread noreply
revno: 15644 committer: Jason Pickering branch nick: dhis2 timestamp: Thu 2014-06-12 03:37:57 -0400 message: (Translations) Seeding Bengali locale for translations server. added: dhis-2/dhis-services/dhis-service-i18n/src/main/resou

Re: [Dhis2-devs] Importing OrgUnit data via API using curl

2014-06-12 Thread Morten Olav Hansen
Did you set the content-type header? it's either that, or something is wrong with your data -- Morten On Thu, Jun 12, 2014 at 9:37 AM, David Muturi wrote: > Hi Team, > I am importing org unit data via the api using curl, on running the > script, this is the error I am getting. Anyone who has d

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15645: minor update of jsonpath (0.9.0 => 0.9.1)

2014-06-12 Thread noreply
revno: 15645 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Thu 2014-06-12 09:52:53 +0200 message: minor update of jsonpath (0.9.0 => 0.9.1) modified: dhis-2/pom.xml -- lp:dhis2 https://code.launchpad.net/~dhis2-devs-c

[Dhis2-devs] Need to pass credentials from external site

2014-06-12 Thread Md. Monjur Rahman
Dear All, I have several DHIS application from different server. I have developed a page which contains all the credential information about those applications. I want the DHIS application logged on after clicking the link. But it always redirect me to login page of DHIS. My code snippet is: $(

Re: [Dhis2-devs] Need to pass credentials from external site

2014-06-12 Thread Morten Olav Hansen
Hi, i test this on our demo server (http://apps.dhis2.org/dev) and this works fine: $.post('/dev/dhis-web-commons-security/login.action?authOnly=true', { j_username: "admin", j_password: "district" }) Is the request coming from the same server? remember that x-domain auth is not supported by defa

[Dhis2-devs] Issues importing ProgramStageSection

2014-06-12 Thread Mansi Singhal
Hello All, We were trying to create "Program", "Program Stage" and "Program Stage Section" using "/metadata" api. We are facing issues creating "Program Stage Section". *Status : 409 Conflict* When we tried debugging the issue, we got some ClassCastExceptions for "List to Set" and "Set to List"

Re: [Dhis2-devs] Issues importing ProgramStageSection

2014-06-12 Thread Morten Olav Hansen
Hi, The tracker metadata web-api should still be considered wip (it's new for 2.16). I haven't tested with programStageSections at all. I will have a look at it. -- Morten On Thu, Jun 12, 2014 at 10:49 AM, Mansi Singhal wrote: > Hello All, > > We were trying to create "Program", "Program Sta

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15646: minor fix, change to List for programStageDataElements

2014-06-12 Thread noreply
revno: 15646 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Thu 2014-06-12 11:11:27 +0200 message: minor fix, change to List for programStageDataElements modified: dhis-2/dhis-services/dhis-service-dxf2/src/main/java/or

Re: [Dhis2-devs] Issues importing ProgramStageSection

2014-06-12 Thread Mansi Singhal
Hey Morten, Thanks for that. I just wanted a clarification on one more thing: We created a Program say "Program1" and then "Program Stage" under it. This stage has approximately 20 "ProgramStageDataElements". On "Event Capture screen", after selecting relevant fields ("Program1" as program and

Re: [Dhis2-devs] Issues importing ProgramStageSection

2014-06-12 Thread Morten Olav Hansen
That sounds weird. Abyor or Tran, could you have a look at it? -- Morten On Thu, Jun 12, 2014 at 11:26 AM, Mansi Singhal wrote: > Hey Morten, > > Thanks for that. > > I just wanted a clarification on one more thing: > > We created a Program say "Program1" and then "Program Stage" under it. > T

Re: [Dhis2-devs] Need to pass credentials from external site

2014-06-12 Thread Knut Staring
Thanks Morten, Is this the right section in the manual? http://www.dhis2.org/doc/snapshot/en/implementer/html/ch08s03.html Knut On Thu, Jun 12, 2014 at 10:38 AM, Morten Olav Hansen wrote: > Hi, > > i test this on our demo server (http://apps.dhis2.org/dev) and this works > fine: > $.post('/dev

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15647: various fixes to ProgramStage, ProgramStageSection, adds link from programStageSection => program...

2014-06-12 Thread noreply
revno: 15647 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Thu 2014-06-12 11:41:31 +0200 message: various fixes to ProgramStage, ProgramStageSection, adds link from programStageSection => programStage modified: dhis-2/

Re: [Dhis2-devs] Need to pass credentials from external site

2014-06-12 Thread Morten Olav Hansen
That depends on what you want to do. That approach uses a apache/nginx authenticating proxy, and not JS. It is possible to get around x-domain issues in JS using CORS [1] also (but not available in all browsers/versions). Without knowing more of the setup, its hard to decide what is the best appr

Re: [Dhis2-devs] Need to pass credentials from external site

2014-06-12 Thread Knut Staring
I think the point is that it is not the same server (it is several different servers) On 12 Jun 2014 15:38, "Knut Staring" wrote: > Thanks Morten, > Is this the right section in the manual? > http://www.dhis2.org/doc/snapshot/en/implementer/html/ch08s03.html > > Knut > > > On Thu, Jun 12, 2014 at

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15648: minor fixes to ProgramStageDataElement

2014-06-12 Thread noreply
revno: 15648 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Thu 2014-06-12 11:53:18 +0200 message: minor fixes to ProgramStageDataElement modified: dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/ProgramStageDataEle

Re: [Dhis2-devs] Need to pass credentials from external site

2014-06-12 Thread Morten Olav Hansen
Ok, so one should probably delegate one server to be the "proxy" server, and this one will have different endpoint to the differents servers, and these will all be authenticating using the Authorization header. (Are you still with John? he has a nginx setup for something similar) -- Morten On T

Re: [Dhis2-devs] Issues importing ProgramStageSection

2014-06-12 Thread Morten Olav Hansen
Hi There was a few missing pieces to the programStageSection and programDataElements classes. Please try again, but remember that the format has changed, so I would create a new section in dhis and export it.. to look at the format. Also remember that programStage is the "owning" side of that rel

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15649: various collection fixes in idObjectImporter

2014-06-12 Thread noreply
revno: 15649 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Thu 2014-06-12 12:39:43 +0200 message: various collection fixes in idObjectImporter modified: dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/ProgramStage.j

Re: [Dhis2-devs] Issues importing ProgramStageSection

2014-06-12 Thread Mansi Singhal
Hello Morten, Program creation is fine. But ProgramStage and ProgramStageSection creation is failing. See details below. *"Program Stage":* *Input:* { "programStages": [{ "programStageDataElements": [{ "displayInReports": true, "dataElement": {

Re: [Dhis2-devs] Issues importing ProgramStageSection

2014-06-12 Thread Morten Olav Hansen
Yes, I'm looking into this now, seems like we are using a Set for programStageDataElements some places, and a List other places.. Btw, you are not allowed to have numbers in the start of an ID. -- Morten On Thu, Jun 12, 2014 at 12:59 PM, Mansi Singhal wrote: > Hello Morten, > > Program creati

[Dhis2-devs] Restriction of the analytics process to certain time periods

2014-06-12 Thread Jason Pickering
This may have been brought up before, but we get some data sometimes, submitted in faraway time periods (like 1-1-0001). No clue really how this gets in there, but it exposes a weakness in the analytics, in that if data exists from these ancient (or far in the future time periods), many thousands o

Re: [Dhis2-devs] Restriction of the analytics process to certain time periods

2014-06-12 Thread Lars Helge Øverland
Hi Jason, I see the problem. Analytics after 2.14 should remove all empty analytics tables though so you should not have all those empty tables between 0 and now. Unless someone plans to use DHIS for archaeological research / studies of the ancient Greeks we could maybe hard code some sensible li

Re: [Dhis2-devs] Issues importing ProgramStageSection

2014-06-12 Thread Morten Olav Hansen
Hi Mansi Could you try out rev 15650 and see if it works for you? -- Morten On Thu, Jun 12, 2014 at 1:06 PM, Morten Olav Hansen wrote: > Yes, I'm looking into this now, seems like we are using a Set for > programStageDataElements some places, and a List other places.. > > Btw, you are not all

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15650: fixes to ProgramStage/ProgramStageDataElement import

2014-06-12 Thread noreply
revno: 15650 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Thu 2014-06-12 15:35:43 +0200 message: fixes to ProgramStage/ProgramStageDataElement import modified: dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/Progr

Re: [Dhis2-devs] Restriction of the analytics process to certain time periods

2014-06-12 Thread Jason Pickering
Yeah, this is really sort of an issue with the submission of mobile data from phones who have not set their clocks correctly, and the fact that DHIS2 does not really barf at recording things for periods from the ancient past. Although we try to instruct people this is necessary, just one submission

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15651: throw exception for any write action on idObjectController

2014-06-12 Thread noreply
revno: 15651 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Thu 2014-06-12 16:32:29 +0200 message: throw exception for any write action on idObjectController modified: dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15652: removed /api/optionSets/ID/options and /version, now supported generically through AbstractCrudCo...

2014-06-12 Thread noreply
revno: 15652 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Thu 2014-06-12 16:34:04 +0200 message: removed /api/optionSets/ID/options and /version, now supported generically through AbstractCrudController (slighly differe

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15653: allow deep path on /api/type/id/property, /api/type/id/a/b/c works as alias for /api/type/id?fiel...

2014-06-12 Thread noreply
revno: 15653 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Thu 2014-06-12 17:01:50 +0200 message: allow deep path on /api/type/id/property, /api/type/id/a/b/c works as alias for /api/type/id?fields=a[b[c]] modified: d

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15654: removed /api/type/id/members (/q/) from API, have already been replaced by fields= in appropriate...

2014-06-12 Thread noreply
revno: 15654 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Thu 2014-06-12 17:36:36 +0200 message: removed /api/type/id/members (/q/) from API, have already been replaced by fields= in appropriate places modified: dhis

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15655: Add uid property in the last property in the details area for objects in Data Elements and Indica...

2014-06-12 Thread noreply
revno: 15655 committer: Tran Chau branch nick: dhis2 timestamp: Fri 2014-06-13 00:08:03 +0800 message: Add uid property in the last property in the details area for objects in Data Elements and Indicators function. modified: dhis-2

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15656: Removed new methods for querying TEIs. All TEI queries should go through the existing getTrackedE...

2014-06-12 Thread noreply
revno: 15656 committer: Lars Helge Overland branch nick: dhis2 timestamp: Thu 2014-06-12 18:30:25 +0200 message: Removed new methods for querying TEIs. All TEI queries should go through the existing getTrackedEntityInstances method.

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15657: Minor

2014-06-12 Thread noreply
revno: 15657 committer: Lars Helge Overland branch nick: dhis2 timestamp: Thu 2014-06-12 18:38:27 +0200 message: Minor modified: dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ajax/jsonDataElementCategor

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15658: Fixed typos

2014-06-12 Thread noreply
revno: 15658 committer: Lars Helge Overland branch nick: dhis2 timestamp: Thu 2014-06-12 18:43:46 +0200 message: Fixed typos modified: dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/dataelement/hibernate/Dat

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15659: support pr rootNode serialiation configuration, only pretty print is supported right now (and onl...

2014-06-12 Thread noreply
revno: 15659 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Thu 2014-06-12 20:05:28 +0200 message: support pr rootNode serialiation configuration, only pretty print is supported right now (and only supported in Jackson2Js

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15660: Data value, including attribute option combo in equals/hashcode.

2014-06-12 Thread noreply
revno: 15660 committer: Lars Helge Overland branch nick: dhis2 timestamp: Thu 2014-06-12 20:37:50 +0200 message: Data value, including attribute option combo in equals/hashcode. modified: dhis-2/dhis-api/src/main/java/org/hisp/dhis/d

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15661: Impl check for authority for searching across all org units

2014-06-12 Thread noreply
revno: 15661 committer: Lars Helge Overland branch nick: dhis2 timestamp: Thu 2014-06-12 20:38:24 +0200 message: Impl check for authority for searching across all org units modified: dhis-2/dhis-services/dhis-service-core/src/main/j

Re: [Dhis2-devs] Can I get the User Orgunit through the Web API?

2014-06-12 Thread Lars Helge Øverland
Hi, if what you need is current user org unit you can use this too: http://apps.dhis2.org/dev/api/me.json Lars On Wed, Jun 11, 2014 at 8:04 AM, Knut Staring wrote: > Great, thanks. Please also see my other question about getting the Root > (or Roots, of course...) > > > On Wed, Jun 11, 2014

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15662: Minor

2014-06-12 Thread noreply
revno: 15662 committer: Lars Helge Overland branch nick: dhis2 timestamp: Thu 2014-06-12 21:51:51 +0200 message: Minor modified: dhis-2/dhis-support/dhis-support-test/src/main/java/org/hisp/dhis/mock/MockCurrentUserService.java --

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15664: IE 8 fix merge

2014-06-12 Thread noreply
Merge authors: Mark Polak (markpo) revno: 15664 [merge] committer: Mark Polak branch nick: dhis2 timestamp: Fri 2014-06-13 02:11:31 +0200 message: IE 8 fix merge modified: dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp

[Dhis2-devs] [Branch ~dhis2-documenters/dhis2/dhis2-docbook-docs] Rev 1102: Add menu in custom app section to apps chapter

2014-06-12 Thread noreply
Merge authors: Mark Polak (markpo) revno: 1102 [merge] committer: Mark Polak branch nick: dhis2-docbook-docs timestamp: Fri 2014-06-13 03:40:21 +0200 message: Add menu in custom app section to apps chapter added: src/docbkx/en/reso

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15666: minor change

2014-06-12 Thread noreply
revno: 15666 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Fri 2014-06-13 08:47:27 +0200 message: minor change removed: dhis-2/dhis-api/src/main/java/org/hisp/dhis/node/config/Configuration.java dhis-2/dhis-api/src/m