I think what you are looking for is either the periodType or dataInputPeriods fields of the dataSet, is that correct? It’s these two fields in the Maintenance app.
Instead of using multiple network requests and filters, it is more efficient to use the field expansion capabilities of the DHIS2 api within a single request.
This will select the dataSet ID, period type, dataInputPeriods, and the name and id of each affiliated dataElement within a single API call:
Hello @austin, Thank you for that solution.
I’m developing an App using javascript and once I select a data set, I want to be able to dynamically pull the DataSet Period for data entry as below:
Hope this clarifies my problem.
Remember if one selects a Period that is not mapped according to how it was set, the Data Elements will not be pulled.
I get what you are trying to do here, it’s a good question. The current Data Entry app does not fetch these periods from the API, so I am not sure they are exposed in the API itself. @jan or @Lars might be able to confirm that.