On Wed, Jun 11, 2014 at 8:50 AM, Knut Staring wrote:
> $.getJSON( url, function( json ) {
> console.dir(json);
> });
>
$.ajax({
url: URL,
dataType: 'json'
}).done(function(data) {
$.each(data.organisationUnits, function(idx) {
console.log("root" + idx + ": " + this.id);
})
});
S
Thanks!
I now did this, which also works:
var url = dhis_api_base
+'organisationUnits.json?userDataViewFallback=true';
$.getJSON( url, function( json ) {
console.dir(json.organisationUnits[0].name + ' has UID ' +
json.organisationUnits[0].id);
});
On Wed, Jun 11, 2014 at 9:03 AM, Morten
Thanks Knut for raising this question. Now I no longer have to hard code
the root OU UID so as to render the full OU hierarchy in my apps.
On Wed, Jun 11, 2014 at 9:07 AM, Knut Staring wrote:
> Thanks!
>
> I now did this, which also works:
>
> var url = dhis_api_base
> +'organisationUnits.jso
Yes, I think we should try to add these kind of helpful tips to the manual.
The Web API is quite extensively covered, but there is still some leap to
get started with apps for those of us who are not experienced API + JS
developers...
On Wed, Jun 11, 2014 at 9:09 AM, Farai Mutero wrote:
> Thank
revno: 15615
committer: Morten Olav Hansen
branch nick: dhis2
timestamp: Wed 2014-06-11 09:43:00 +0200
message:
various bugfixes to fields filter
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/schema/Ja
Hi
This should now be working in rev 15615.
/api/users/OYLGMiazHtW.json?fields=:all,userCredentials[:all]
Please try it out and report any issues back
--
Morten
On Tue, Jun 10, 2014 at 1:33 PM, Morten Olav Hansen
wrote:
> Hi
>
> All our endpoint have now been switched our to using the new fi
revno: 15616
committer: Morten Olav Hansen
branch nick: dhis2
timestamp: Wed 2014-06-11 10:13:22 +0200
message:
minor fix, collapse exception block
modified:
dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller
revno: 15617
committer: Morten Olav Hansen
branch nick: dhis2
timestamp: Wed 2014-06-11 11:26:41 +0200
message:
minor indent fix
modified:
dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/AnalyticsControlle
Hello Morten,
Thank you for the quick fix!
We were trying the new api and it works. We also looked at the code a
little bit, and we saw that if we don't give any query params, we are
defaulting it to ":all". However this retrieves fields only at the first
level and does not retrieve fields for th
Yes,
This is by design, :all merely means "give me all property on current
level". It will by default render idObjects with just idObject properties,
and Collections of idObject as a collection of idObject properties.
I know this breaks things, but we were really not happy with the current
use of
revno: 15618
committer: Morten Olav Hansen
branch nick: dhis2
timestamp: Wed 2014-06-11 11:59:34 +0200
message:
bugfixes for preset expansion in field filtering
modified:
dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp
Is it possible to keep backward compatibility intact while making API
changes?
We're already seeing lot of issues on our side, and I'm sure others who're
using the API will also face these problems.
One more place where the API change is breaking our code is this, while
querying the org hierarchy
On Wed, Jun 11, 2014 at 12:03 PM, Kiran Prakash
wrote:
> Is it possible to keep backward compatibility intact while making API
> changes?
>
Ideally yes, but these changes did require breaking the API in a few
places. Going forward there should be no major changes to the external API
(only additi
includeChildren/includeDescendants should now be available in rev 15619.
--
Morten
On Wed, Jun 11, 2014 at 12:15 PM, Morten Olav Hansen
wrote:
> On Wed, Jun 11, 2014 at 12:03 PM, Kiran Prakash > wrote:
>
>> Is it possible to keep backward compatibility intact while making API
>> changes?
>>
>
revno: 15619
committer: Morten Olav Hansen
branch nick: dhis2
timestamp: Wed 2014-06-11 13:03:34 +0200
message:
support includeChildren/includeDescendants in /api/organisationUnits/uid API
modified:
dhis-2/dhis-web/dhis-web-api/src/
revno: 15620
committer: Morten Olav Hansen
branch nick: dhis2
timestamp: Wed 2014-06-11 13:13:54 +0200
message:
minor fixes to orgUnit controller
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/organisationunit/OrganisationUni
revno: 15621
committer: Morten Olav Hansen
branch nick: dhis2
timestamp: Wed 2014-06-11 13:18:03 +0200
message:
allow filter on /api/type/uid endpoint, only really useful in cases where the
endpoint returns more than one result, and y
revno: 15622
committer: Morten Olav Hansen
branch nick: dhis2
timestamp: Wed 2014-06-11 14:04:45 +0200
message:
minor fixes
modified:
dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/organisationunit/Organi
revno: 15624
committer: Morten Olav Hansen
branch nick: dhis2
timestamp: Wed 2014-06-11 14:43:52 +0200
message:
minor indent fix
modified:
dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/trackedentity/
revno: 15623
committer: Morten Olav Hansen
branch nick: dhis2
timestamp: Wed 2014-06-11 14:43:09 +0200
message:
minor fix to Relationship class
modified:
dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events
revno: 15625
committer: Morten Olav Hansen
branch nick: dhis2
timestamp: Wed 2014-06-11 14:57:50 +0200
message:
bugfix for relationships when you add a new TEI
modified:
dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/
revno: 15626
committer: Tran Chau
branch nick: dhis2
timestamp: Wed 2014-06-11 21:14:42 +0800
message:
Add a field which supports search TEI by attribute quickly on the Find/Add
Instance form.
added:
dhis-2/dhis-web/dhis-web-caseen
revno: 15627
committer: Tran Chau
branch nick: dhis2
timestamp: Wed 2014-06-11 21:19:09 +0800
message:
Fixed bug - The orgunit name in Advanced search is displayed wrong.
modified:
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/
revno: 15628
committer: Morten Olav Hansen
branch nick: dhis2
timestamp: Wed 2014-06-11 15:32:50 +0200
message:
fixes for updating coordinates
modified:
dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/
Hello Mansi,
If you are using and User account with all access (Super users) or account
with both "Approve Data" and "Approve data at Lower level", then unapproved
data will still show up in reports/analysis.
The design is, if user has access to approve data (at his level, or at
lower levels) the
revno: 15629
committer: Tran Chau
branch nick: dhis2
timestamp: Wed 2014-06-11 22:32:45 +0800
message:
Fixed bug - The TEI result after searching by a attribute value is
dumplicated.
modified:
dhis-2/dhis-services/dhis-service-trac
revno: 15630
committer: Morten Olav Hansen
branch nick: dhis2
timestamp: Wed 2014-06-11 17:01:05 +0200
message:
minor bugfix for relationship, correctly set pointer in export
modified:
dhis-2/dhis-services/dhis-service-dxf2/src/main
revno: 15631
committer: Tran Chau
branch nick: dhis2
timestamp: Wed 2014-06-11 23:36:16 +0800
message:
Minor fix.
modified:
dhis-2/dhis-services/dhis-service-tracker/src/main/java/org/hisp/dhis/trackedentity/hibernate/HibernateTrack
revno: 15633
committer: Morten Olav Hansen
branch nick: dhis2
timestamp: Wed 2014-06-11 21:13:57 +0200
message:
removed unused exception
removed:
dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/exception/N
revno: 15632
committer: Morten Olav Hansen
branch nick: dhis2
timestamp: Wed 2014-06-11 21:10:58 +0200
message:
minor indent fix
modified:
dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/dataelement/Genera
revno: 15634
committer: Morten Olav Hansen
branch nick: dhis2
timestamp: Wed 2014-06-11 21:26:43 +0200
message:
minor indent
modified:
dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/mapping/GeoFeatureCont
revno: 15635
committer: Morten Olav Hansen
branch nick: dhis2
timestamp: Wed 2014-06-11 21:35:22 +0200
message:
indent fix in EventAnalyticsController
modified:
dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/control
revno: 15636
committer: Morten Olav Hansen
branch nick: dhis2
timestamp: Wed 2014-06-11 21:54:06 +0200
message:
add new generic endpoint, /api/type/id/property, allows to get property
directly, works as a alias for ?fields=property
mo
revno: 15637
committer: Morten Olav Hansen
branch nick: dhis2
timestamp: Wed 2014-06-11 22:00:39 +0200
message:
remove unused services in ReportTableController
modified:
dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webap
revno: 15638
committer: Morten Olav Hansen
branch nick: dhis2
timestamp: Wed 2014-06-11 22:01:15 +0200
message:
remove unused import in SchemaController
modified:
dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/contr
revno: 15639
committer: Morten Olav Hansen
branch nick: dhis2
timestamp: Wed 2014-06-11 22:02:58 +0200
message:
indent fixes
modified:
dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/SystemSettingControlle
revno: 15640
committer: Morten Olav Hansen
branch nick: dhis2
timestamp: Wed 2014-06-11 22:27:54 +0200
message:
moved WebMetaData and WebOptions classes to webdomain package
removed:
dhis-2/dhis-web/dhis-web-api/src/main/java/org/hi
revno: 15641
committer: Morten Olav Hansen
branch nick: dhis2
timestamp: Wed 2014-06-11 22:34:56 +0200
message:
removed Model from getObject/getObjectList in AbstractCrudController, not in
use anymore
modified:
dhis-2/dhis-web/dhis
Hi Team,
I have designed a multiple stage program with registration but seems I can
only export and import data elements only not attributes and the program
itself.
Is this right or am missing something.
Regards
--
Prosper Behumbiize, MPH
Phone:+256 414 320076
Cell: +256 77
revno: 15642
committer: Tran Chau
branch nick: dhis2
timestamp: Thu 2014-06-12 14:06:25 +0800
message:
Minor fix
modified:
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/trackedEntityInstance.js
40 matches
Mail list logo