export.js
/**
 * Clear assignment of orgnuits of dataSets, programs and users.
 */
Clear assignment of orgnuits of dataSets, programs and users.
Clear assignment of orgnuits of dataSets programs and users .
function clearOrgunitAssignment() {
	for (var i = 0; metaData.dataSets && i < metaData.dataSets.length; i++) {
		metaData.dataSets[i].organisationUnits = [];
	}
	for (var i = 0; metaData.programs && i < metaData.programs.length; i++) {
		metaData.programs[i].organisationUnits = [];
	}
	for (var i = 0; metaData.users && i < metaData.users.length; i++) {
		metaData.users[i].organisationUnits = [];
		metaData.users[i].dataViewOrganisationUnits = [];
		metaData.users[i].teiSearchOrganisationUnits = [];
	}
	for (var i = 0; metaData.hasOwnProperty("predictors") && i < metaData.predictors.length; i++) {
		metaData.predictors[i].organisationUnitLevels = [];
	}
}
function clearOrgunitAssignment ( ) { for ( var i = 0 ; metaData . dataSets && i < metaData . dataSets . length ; i ++ ) { metaData . dataSets [ i ] . organisationUnits = [ ] ; } for ( var i = 0 ; metaData . programs && i < metaData . programs . length ; i ++ ) { metaData . programs [ i ] . organisationUnits = [ ] ; } for ( var i = 0 ; metaData . users && i < metaData . users . length ; i ++ ) { metaData . users [ i ] . organisationUnits = [ ] ; metaData . users [ i ] . dataViewOrganisationUnits = [ ] ; metaData . users [ i ] . teiSearchOrganisationUnits = [ ] ; } for ( var i = 0 ; metaData . hasOwnProperty ( "predictors" ) && i < metaData . predictors . length ; i ++ ) { metaData . predictors [ i ] . organisationUnitLevels = [ ] ; } }
Clear assignment of orgnuits of dataSets, programs and users.
Clear assignment of orgnuits of dataSets programs and users .