You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For more advanced logic of this nature, my thought is that we should move away from adding to the XForms XML and mucking about deeper in the JavaRosa XForms madness. We want to stay away from modifying pyxform if possible.
This should be a discussion item during kickoff week.
When building this make sure that the hidden tags may have required constraints, and they (perhaps a name tag) are only required if the parent tag, like building=commercial has been activated.
Somehow I need to figure out how to make the FragmentStatePager adapter update when the list of tags to be shown changes. Not obvious.
This one is blocking me a bit right now. I'm thinking if I clean up TagEdit a bit so that the List<TagEdit> is not exposed to the TagSwipeActivity, it'll make more sense. If TagSwipeActivity just calls a static method of TagEdit or better yet, a container class for TagEdit, I can just have it get the tag it's asking for and leave it at that. Then, I'll have to find the right mechanism to tell the TagSwipe to refresh.
Though this UI is not super common, it's similar to tabs found in the play store. If I can find an example of dynamically changing the list of tabs and their corresponding fragments, the same thing would apply for TagSwipe
Alright, 15 commits later, done! This one was pretty complex to implement. I think I've caught all the bugs, but this is a place with a high potential of UI bugs. It took a lot of logic to get us there. Please reopen if you run into any problems.
Activity
hallahan commentedon Nov 21, 2015
For more advanced logic of this nature, my thought is that we should move away from adding to the XForms XML and mucking about deeper in the JavaRosa XForms madness. We want to stay away from modifying pyxform if possible.
This should be a discussion item during kickoff week.
hallahan commentedon May 11, 2016
This is probably the most useful constraint.
When building this make sure that the hidden tags may have required constraints, and they (perhaps a name tag) are only required if the parent tag, like
building=commercialhas been activated.See #17
hallahan commentedon May 14, 2016
Besides
building=commercialvsbuilding=residential, what are other skip logic examples?cc/ @dalekunce @PaulUithol
#117 #148 #37 Improve skip logic constraint JSON
PaulUithol commentedon May 17, 2016
Depends completely on what you're surveying :)
Could be values for
amenity,buildingvalues indeed,waterway(drainage, ditch, stream, river, etc) or any of a dozen others.#117 #37 Tapping into tag updates to notify constraints
hallahan commentedon May 17, 2016
Cool, this will be configurable in a form-by-form basis, as well as a global basis.
hallahan commentedon May 17, 2016
Somehow I need to figure out how to make the FragmentStatePager adapter update when the list of tags to be shown changes. Not obvious.
This one is blocking me a bit right now. I'm thinking if I clean up
TagEdita bit so that theList<TagEdit>is not exposed to theTagSwipeActivity, it'll make more sense. If TagSwipeActivity just calls a static method ofTagEditor better yet, a container class forTagEdit, I can just have it get the tag it's asking for and leave it at that. Then, I'll have to find the right mechanism to tell theTagSwipeto refresh.Though this UI is not super common, it's similar to tabs found in the play store. If I can find an example of dynamically changing the list of tabs and their corresponding fragments, the same thing would apply for
TagSwipe#117 #37 Showing removing another tag view, but the fragments don't u…
#117 #37 Correctly removes fragments dynamically
#117 #37 Keeping track of which tags should be hidden.
#117 #37 Working on the show_if portion of tagShouldBeShown method
#117 #37 Working on hideMap potion of tagShouldBeShown method. the hi…
#117 #37 We actually really do need both types of hash indices. 1: Th…
#117 #37 Almost there with hiding things for real.
#117 #37 Actually hiding hide_if elements when the condition arises
#117 #37 Doesn't show tags that should be hidden upon first load of T…
#117 #37 Check for null reference in causeShowMap and causeHideMap - …
#117 #37 Adds and removes dependent tags properly, but the radio butt…
#117 #37 Fix null reference when finding tags upon delete
#117 #37 Fix incorrect re-toggling of button when view implicitly rel…
#117 #37 Hide when its time tags that have been explicitly shown due …
#117 #37 If tag edits get taken out and the index of the active view …
hallahan commentedon May 20, 2016
Alright, 15 commits later, done! This one was pretty complex to implement. I think I've caught all the bugs, but this is a place with a high potential of UI bugs. It took a lot of logic to get us there. Please reopen if you run into any problems.