If my memory serves me right, we also supports turning off certains objects in 2.8, so.. there is no assumeTrue=false, but you can do organisationUnits=false, dataElements=false, etc..
But as Bob says, unless 2.8 is a requirement, i would stick with trunk / 2.9. -- Morten On Fri, Jun 29, 2012 at 12:57 PM, Bob Jolliffe <[email protected]> wrote: > Alice it seems (from the symptoms) you are probably working with a > dhis2.8 war file. In which case you are probably correct. You can > get everything from metadata.xml but it is a lot :-) Though probably > mostly its orgunits which are what you need anyway. > > To start using the more refined features you really need to work with > a 2.9 snapshot, which you can either build yourself or download > whatever is latest build from > > http://apps.dhis2.org/ci/job/dhis-web-trunk/lastSuccessfulBuild/artifact/dhis-2/dhis-web/dhis-web-portal/target/dhis.war > > Note this gets rebuilt frequently. > > On 29 June 2012 10:36, Alice E Tessen <[email protected]> wrote: >> Hi all, >> >> Thank you for the advice--I think I will use the api/metaData.xml data for >> my purposes. I get an error with >> "api/metaData?assumeTrue=false&organisationUnits=true", and >> "api/organisationUnits.xml?viewClass=export" seems to only list facilities, >> and without parent fields. But the metadata file, while massive, looks like >> it has everything I need. Thanks again! >> >> --Alice >> >> >> On Thu, Jun 28, 2012 at 4:32 PM, Morten Olav Hansen <[email protected]> >> wrote: >>> >>> > One small question: before the orgunits were being listed in order >>> > (breadth first tree traversal). This seems to be no longer the case. >>> >>> Ah, yes... I think its only sorted on the way in right now, it got >>> lost when I did my total rewrite.. will add it soon >>> >>> -- >>> Morten >>> >>> > Bob >>> > >>> >> >>> >> -- >>> >> Morten >>> >> >>> >>> Alice I think viewClass=export might solve your problem. Or is there >>> >>> something else you are getting at with your question? >>> >>> >>> >>> Regards >>> >>> Bob >>> >>> >>> >>> >>> >>>> (but not on demo, try dev. Sorry, I can't access the UiO network from >>> >>>> where I am now) >>> >>>> >>> >>>> -- >>> >>>> Morten >>> >>>> >>> >>>>> This will give you the list of orgunits with parent field and also >>> >>>>> conveniently in order from top of the tree down to the base (a >>> >>>>> breadth-wise traversal). You should be able to construct your >>> >>>>> javascript or html UI with this data. >>> >>>>> >>> >>>>> There are also some options to restrict whether *only* orgunits are >>> >>>>> shown but I can't remember them offhand. Once I've looked up I'll >>> >>>>> let >>> >>>>> you know. >>> >>>>> >>> >>>>> Cheers >>> >>>>> Bob >>> >>>>> >>> >>>>>> >>> >>>>>> Thanks, >>> >>>>>> Alice >>> >>>>>> >>> >>>>>> >>> >>>>>> On Wed, Jun 27, 2012 at 5:02 PM, Bob Jolliffe >>> >>>>>> <[email protected]> wrote: >>> >>>>>>> >>> >>>>>>> Sure. Alice I don't know what you are going to ask or if I have >>> >>>>>>> the >>> >>>>>>> answer, but in case I don't. I presume you won't have a problem if >>> >>>>>>> I >>> >>>>>>> direct to the dhis2 developers list? >>> >>>>>>> >>> >>>>>>> On 27 June 2012 12:27, Sundeep Sahay <[email protected]> >>> >>>>>>> wrote: >>> >>>>>>> > bob, >>> >>>>>>> > alice had some queries on the WebAPI >>> >>>>>>> > can i direct her to you? >>> >>>>>>> > thanks >>> >>>>>> >>> >>>>>> >>> >>>>> >>> >>>>> _______________________________________________ >>> >>>>> Mailing list: https://launchpad.net/~dhis2-devs >>> >>>>> Post to : [email protected] >>> >>>>> Unsubscribe : https://launchpad.net/~dhis2-devs >>> >>>>> More help : https://help.launchpad.net/ListHelp >> >> >> >> _______________________________________________ >> Mailing list: https://launchpad.net/~dhis2-devs >> Post to : [email protected] >> Unsubscribe : https://launchpad.net/~dhis2-devs >> More help : https://help.launchpad.net/ListHelp >> > > _______________________________________________ > Mailing list: https://launchpad.net/~dhis2-devs > Post to : [email protected] > Unsubscribe : https://launchpad.net/~dhis2-devs > More help : https://help.launchpad.net/ListHelp _______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : [email protected] Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp

