[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 21070: PT noext.

2015-11-16 Thread noreply
revno: 21070 committer: Jan Henrik Overland branch nick: dhis2 timestamp: Mon 2015-11-16 17:26:50 +0100 message: PT noext. modified:

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 21069: event-capture: file type dataelements - WIP

2015-11-16 Thread noreply
revno: 21069 committer: Abyot Asalefew Gizaw branch nick: dhis2 timestamp: Mon 2015-11-16 16:48:46 +0100 message: event-capture: file type dataelements - WIP modified:

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 21068: EventController getting ready for event data value file types

2015-11-16 Thread noreply
revno: 21068 committer: Abyot Asalefew Gizaw branch nick: dhis2 timestamp: Mon 2015-11-16 16:47:16 +0100 message: EventController getting ready for event data value file types modified:

Re: [Dhis2-devs] Web API : Get Indicator Value

2015-11-16 Thread Julhas Sujan
Hi Pamod, Please check the following links: Download Guide: http://www.julhas.info/dhis2/dataextract/previousmonthdata.pdf Download Source Code: http://www.julhas.info/dhis2/dataextract/previousmonthdata.zip If you need more information please let me know. Thanks Julhas On Mon, Nov 16, 2015

[Dhis2-devs] Current Dis-aggregation vs Historical via API

2015-11-16 Thread Timothy Harding
Hello DHIS2 Devs! API question for the API Gurus: During configuration on a recent project, maybe dis-aggregation groups were changed and updated after their Category Option Combos were initially generated. They do not have data associated with them, but I think that is beside the point for my

Re: [Dhis2-devs] Web API : Get Indicator Value

2015-11-16 Thread Pamod Amarakoon
Hi Julhas, Thank you very much for the descriptive guide and the codes. Will try them out :) On Mon, Nov 16, 2015 at 6:15 PM, Julhas Sujan wrote: > Hi Pamod, > > Please check the following links: > > Download Guide: >

Re: [Dhis2-devs] Current Dis-aggregation vs Historical via API

2015-11-16 Thread Timothy Harding
Proof reading isn't my strong suit today: --- API question for the API Gurus: During configuration on a recent project, many dis-aggregation groups were changed and updated after their Category Option Combos were initially generated. They do not have data associated with them, but I think that

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

2015-11-16 Thread noreply
revno: 21071 committer: Lars Helge Overland branch nick: dhis2 timestamp: Mon 2015-11-16 21:38:13 +0100 message: Minor modified:

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 21072: Made Program - ProgramTrackedEntityAttribute association bi-directional by adding a Program assoc...

2015-11-16 Thread noreply
revno: 21072 committer: Lars Helge Overland branch nick: dhis2 timestamp: Mon 2015-11-16 23:52:04 +0100 message: Made Program - ProgramTrackedEntityAttribute association bi-directional by adding a Program

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 21075: add AttributeValueStore

2015-11-16 Thread noreply
revno: 21075 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Tue 2015-11-17 11:18:36 +0700 message: add AttributeValueStore added:

Re: [Dhis2-devs] [Dhis2-users] Dealing with Updated/Expired data elements/indicators

2015-11-16 Thread Elmarie Claasen
Hi Craig, In South Africa we have a Indicator dataset review process every 2 years and the revision is released officially to all users so it is largely a transparent process The outcome usually results in a mixture of the following: 1) Indicators and their related elements being dropped off -

Re: [Dhis2-devs] Dealing with Updated/Expired data elements/indicators

2015-11-16 Thread Craig Hollingsworth
Hi, Hope all are well. I can envisage a situation where a given indicator/data element is changed in some way (perhaps a changed calculation or definition). For historical reporting purposes we would want to keep the old version of the indicator/data element but would prefer that it is not

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 21073: SchemaDescriptor and Controller for PTEA

2015-11-16 Thread noreply
revno: 21073 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Tue 2015-11-17 10:35:21 +0700 message: SchemaDescriptor and Controller for PTEA added:

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 21074: mergefix for userCredentials.ldapId

2015-11-16 Thread noreply
revno: 21074 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Tue 2015-11-17 10:38:58 +0700 message: mergefix for userCredentials.ldapId modified:

[Dhis2-devs] New way to share DHIS2 templates and tools

2015-11-16 Thread Gillian Kerr
Hello, all - We are getting ready to share our templates and tools for DHIS2 implementations, and we invite everyone to contribute their tools to the collection. My team at LogicalOutcomes is working with Steven Uggowitzer, David Hagan, Prosper Behumbiize's team at HISP Uganda, and others to

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

2015-11-16 Thread noreply
revno: 21067 committer: Abyot Asalefew Gizaw branch nick: dhis2 timestamp: Mon 2015-11-16 09:54:03 +0100 message: minor modified:

Re: [Dhis2-devs] [Dhis2-users] Web API : Get Indicator Value

2015-11-16 Thread Hannan Khan
Dear Pamod To get a indicator through web API is by calling using uid of the indicator. for example: https://play.dhis2.org/demo/api/indicators/ReUHfIn0pTQ will give you 'ANC 1-3 Dropout Rate'; the last 11 digit is the uid of the indicator. Indicator values are not saved in tables, DHIS2

Re: [Dhis2-devs] Web API : Get Indicator Value

2015-11-16 Thread Julhas Sujan
Hi Pamod, Please paste the following code in your dataentry screen and check the result from console. It will show the selected organization unit and period: dhis2.util.on( 'dhis2.de.event.formReady', function( event, aglAzf2x2bF ) { var orgName = $( '#selectedOrganisationUnit' ).val();

Re: [Dhis2-devs] Web API : Get Indicator Value

2015-11-16 Thread Pamod Amarakoon
Dear Julhas, Thank you very much. I actually needed orgUnitId to call web-api. Iused the following code to get it done. Seems to work on data entry screen. var ouselect = $('.selected').attr('href'); var orgid = ouselect.match(/"([^"]+)"/)[1]; On Mon, Nov 16, 2015 at 3:39 PM, Julhas Sujan

Re: [Dhis2-devs] Web API : Get Indicator Value

2015-11-16 Thread Julhas Sujan
You will get period look like: November-2015. You need last day or month data. If month you may convert it as a simple way for 201510 as follows: if(periodName=='December 2015'){ var periodN="201511"; }else if(periodName=='November 2015'){ var periodN="201510"; }else if(periodName=='October

Re: [Dhis2-devs] Web API : Get Indicator Value

2015-11-16 Thread Pamod Amarakoon
Dear Julhas, Thanx a lot for the code. I'll check this out I was working on the following code. $(document).ready(function() { function getPreVal(){ var orgunit = selectedOrganisationUnit.value; console.log(orgunit); var ouselect = $('.selected').attr('href'); var orgid =

Re: [Dhis2-devs] Web API : Get Indicator Value

2015-11-16 Thread Julhas Sujan
Hi Pamod, I am sending you soon the whole code with a business scenario that will be helpful for you. You can easily adapt your business in this script. Thanks Julhas On Mon, Nov 16, 2015 at 5:04 PM, Pamod Amarakoon wrote: > Dear Julhas, > > Thanx a lot for the code. I'll

Re: [Dhis2-devs] [Dhis2-users] Web API : Get Indicator Value

2015-11-16 Thread Pamod Amarakoon
Dear Hannan, Thank you for the reply. Use case was to auto fill a dataElement from a value of a previous Day/Month dataSet, will try your lead with indicators On Mon, Nov 16, 2015 at 4:07 PM, Hannan Khan wrote: > Dear Pamod > > To get a indicator through web API is by

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

2015-11-16 Thread noreply
revno: 21077 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Tue 2015-11-17 14:00:29 +0700 message: minor modified: dhis-2/dhis-api/src/main/java/org/hisp/dhis/attribute/AttributeValue.java

Re: [Dhis2-devs] Current Dis-aggregation vs Historical via API

2015-11-16 Thread Jason Pickering
Hi Tim, I think the short answer to your question is there is no API to tell you this directly. The database does not version category option combos, so there is no real way to know what is historical versus what is current. In your particular case, you might be able to leverage the "created"

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

2015-11-16 Thread noreply
revno: 21078 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Tue 2015-11-17 14:09:05 +0700 message: Minor fix modified:

Re: [Dhis2-devs] [Dhis2-users] Dealing with Updated/Expired data elements/indicators

2015-11-16 Thread Jason Pickering
Hi Craig, Why not use the "sharing" feature? Set the indicator's Public sharing to "None". It would still be present, but not visible to anyone. Then you could create a user group "Legacy indicators user group" and add users to this group, and set the sharing of the indicator to allow this group

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 21076: Minor TableAlteror addition, clean up AttributeValues where value is null or empty string, mainly...

2015-11-16 Thread noreply
revno: 21076 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Tue 2015-11-17 13:46:57 +0700 message: Minor TableAlteror addition, clean up AttributeValues where value is null or empty string, mainly for