Hoppa till huvudinnehållet

Is there a way to prevent the geometry picker from capturing input if you want to hide/disable the element in a form?

Kommentarer

4 kommentarer

  • Zack Robison

    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
  • Permanently deleted user

    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
  • Christopher Wiebke

    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
  • Tim Baert

    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.