dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #03754
Re: Separate DHIS2 database to 2
Hi, I agree with what Ola says, you should definitely not split your
database because of this. I am not sure if it is feasible to involve report
tables in excel reporting. In any case there is a method on
OrganisationUnitService which allows you to get all children of a specific
orgunit on a specific orgunit level:
/**
* Returns all OrganisationUnits which are children of the given unit
and are
* at the given hierarchical level. The root OrganisationUnits are at
level 1.
*
* @param level the hierarchical level.
* @param parent the parent unit.
* @return all OrganisationUnits which are children of the given unit
and are
* at the given hierarchical level.
* @throws IllegalArgumentException if the level is illegal.
*/
Collection<OrganisationUnit> getOrganisationUnitsAtLevel( int level,
OrganisationUnit parent );
Lars
Follow ups
References