Is there a way to prevent the geometry picker from capturing input if you want to hide/disable the element in a form?
I'm currently working a workflow that has a display form containing an item picker, displaying a list of results returned from an external workflow. I have setup some subworkflows in the events of some button bar elements to control what gets displayed in in the form so that when a user clicks a button labelled "Add" the item picker is hidden, and a Geometry picker and a new button bar is displayed in the form.
I'm setting up a "Back" button that will allow the user to return to the default state of the form (Item picker visible, geometry picker hidden), but I'm running into an issue where the geometry picker still picks up input when the element is hidden and enabled set to false. Is there a command or property that will clear or prevent the geometry picker from receiving input or a possible way to reload/reset the geometry picker element?
-
How are you resetting the form? MY first instinct would be to have the logic exit the form and loop back around to it with the "reset" property on the form set to true.
If that isn't working for you, you can clear the geometry out of the element's "value" and "state" properties.
0 -
I've got a single display form with the Item picker, Geometry Picker, button bar for the geometry picker and the default footer(button bar). I hide the item picker and footer when the Add button is clicked and make the Geometry Picker and it's button bar visible. When the back button is clicked I want to hide the Geometry Picker and button bar and display the item picker and footer again.
I would like to have the Auto-activate option active on the Geometry picker, which I think is the issue. If I don't enable that option it doesn't pick up the geometry if it'd hidden/not enabled.
0 -
I am hiding a second geom picker in the form, until the first geom picker geometry is captured. I do this with if logic in the change event and the show form element activity. the expression in the if activity is: =$form1.state.geometryPicker1.value !== "undefined". Once the geometry is defined in the 1st geom picker, then it is no longer "undefined", which causes the second geom picker to show up with the show form element activity. Hope that is helpful.
0 -
Was struggling with the same issue. I had a Radio Group to choose between a Geometry Picker and a Check Group. With the Geometry Picker AutoActivate on and after each drawing was kept on). When changing the choice in the Radio Group to the Check Group, it was still drawing.
A colleague found a workaround: in the change event of the Radio Group, when the Geometry Picker is getting deactivated (because the Check Group is the chosen option): add a Get Map Extent and Set Map Extent (with extent from the Get Map Extent). This stopped the drawing of the Geometry Picker.
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
4 kommentarer