-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide subforms #155
base: development
Are you sure you want to change the base?
Hide subforms #155
Conversation
manually hide subforms w.r.t positions in a listview.
Can one of the admins verify this patch? Also need an authorization to run tests. |
I'll be experimenting more on this issue with json files , after my university endsem exams. If this method seems right ,I will add label to show hidden forms . I tried hiding using table_id but table_id can only be accessed after clicking on the list , so to remove subforms using tableid or form_id etc. user have to click on the forms one by one . So most easiest way was to store the position manually and remove em all together . |
runtests |
@sanyud24 you should use the form Id as there can be multiple forms for a single table. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sanyud24 a "manual" solution to hiding forms cannot be written it java code. It needs to be configurable by a deployment architect. As suggested in the issue, maybe have a field on the settings page that then gets checked when creating the list of forms.
This issue was not an easy win XD. I'll try it for 2 more days , if I'll be unable to figure it out then I'll have to drop this issue , Thanks a lot for the review . |
I'll try using formId as you said for that I'll make a HashMap containing formid's and a boolean value to hide and show subform. I'll try approaching this issue like this . |
@sanyud24 I agree this is not an easy win, it got mislabeled. Apologies. The mentors are aware that some contributions are more difficult than others. Survey is using Content Provider from ODK-X Services to get it's list of forms. The actually query for the forms list is done in Services. To complete this you would need to modify the query. A "Content Provider" is an Android construct. Again I agree this is not a simple issue. |
Thanks a lot I've been looking for the file , I'll try doing it . |
Fixes : odk-x/tool-suite-X#154
manually hide subforms w.r.t positions in a listview.
For now only Education_form and household_member of household have been removed .