How can I prevent users from changing the organizational unit (OU) after selecting a stage record in the tracker within the DHIS2 Android app? I would like to ensure that once an OU is selected, it remains fixed for the duration of the stage record. Alternatively, is there a way to provide implementers with the flexibility to enable or disable the ability to change the OU in the stage creation process, based on their specific needs?
Disabling the Ability to Change OU in the Stage Creation Process or Providing Flexibility to Enable/Disable OU Changes Based on Implementers' Needs
If I understand your question correctly, the requirement is that these steps are enforced:
- Data entry user who is using the Android Capture app, enters a TEIs dashboard
- Creates a new stage
- During the creation of the new stage, the user is not allowed to select another OU?
Exactly, I want this. But unfortunately it’s not working currently in android app.
Hi @sami.oracle10g ,
I am a bit confused about the question, but reading the original question, what I understand is that you want that user can not change the org unit of a already created record in a program stage, isn’t it?.
If so, the Android capture app already prevent this, I’ll attach a video of the use case, to see if it is what you want: Prevent_users_change_org_unit.mp4 - Google Drive
Let me know if you have any doubt.
thanks Andres! I would only add that changing the OU is not available during the creation of event - before saving- either.
The user selects an OU, then the data entry form opens. If at that moment the user goes back to details, the OU is greyed out and cannot be changed.
Can you help us understand what is the issue if not this?