downloadReservedValues

fun downloadReservedValues(attributeUid: String, numberOfValuesToFillUp: Int?): Observable<D2Progress>

Download of TrackedEntityInstance reserved values. The number of reserved values is filled up to the numberOfValuesToFillUp. If not defined, it defaults to .FILL_UP_TO.



The download is only triggered for this attribute passed as parameter.



If the attribute pattern is dependent on OrganisationUnit code (that is, it contains "ORG_UNIT_CODE"), it reserves values for each orgUnit assigned to the programs with this attribute. It applies the limit per orgUnit. Otherwise the limit is applied per attribute.

Return

An Observable that notifies about the progress.

Parameters

attributeUid

Attribute uid

numberOfValuesToFillUp

An optional maximum number of values to reserve