I have program stages and inside the program stages there is a section I want to make read-only access to a specific section for roles, how can I do this, maybe someone has encountered such problems
Itâs possible to control access to an entire program stage but I donât think we can restrict access to only a specific section of the form within the program stage.
Instead of having one program stage, expand to PS1, PS2, PS3
Make PS1 â View Onlyâ for roles B&C
Thank you for your reply. I know program stages can be controlled by program rules and access control. But in my case I need to make some sections visible or read only for certain group of users.
If it is jot possible, I believe it could be great functionality in the future
Hi @Ulanbek
May be this will not be usable in your case (depending the number of Data elements in the program stage) but i recently used a workaround with a program rule doing 2 actions if the user does not have the required role to edit:
1 Action to Hide the section
1 action to display Text in the program Indicator widget using expressions with variables to display the values of the DE.
I did not yet test it on Android app, but for capture Web app, this is working.
I think @gregoryâs suggestion should work to control access for sections since we can figure out that users have role B & C. However, there isnât a âmake read onlyâ action:
So I think we can create a feature request? Would you like to create one and share it here: jira.dhis2.org? If youâd like, I can create it on your behalf. Thanks!
@Gassim I agree with Ulanbek, and a read only feature for form sections would be really great for our use cases, instead of displayting the content in a feedback widget (which does not seem to work on android app)
Kindly share the link whenever available so that we can upvte for this feature.
I confirmed with @dhis2-android team that âThe feedback from program rules are displayed in the analytics tabs in events or tei dashboard. If it is not displaying it may be an issue with the rule expression.â(@Pablo)
Would you kindly create a new topic explaining how the feedback widget isnât working for you in the android app? A new topic with your use case and program rule expression will help with discussing this issue seperately. And specifically so we can see if thereâs an issue that can be reproduced or a correction in the rule expression please.
Thanks ahead!
Gassim
(AL-Gassim Sharaf Addin)
Split this topic
17