How can a form button, after being clicked, keep the form visible?
On my form I have a button that launches a reference workflow, but the form disappears. I do not want to lose the form when the button is clicked. How can I achieve this?
This is the same as what I'm trying to learn from this post (https://support.geocortex.com/essentialsGSCForum?sub-nav=forum&main-nav=essentials&#!/feedtype=SINGLE_QUESTION_DETAIL&id=906f2000000k9jMAAQ) .
I will share what works. Please help.
Thanks,
Justin
-
Use a flowchart, and reload the form, use runtime modifications to reload dynamic form content (when present). 0 -
Thanks Nico. I have a simplified workflow I have used for testing, so I will attempt what you suggest in that one. My thought is to follow the DisplayForm activity with a Flow Decision to either display the form a second time after saving attributes entered so far, or simply save attributes. I will follow up here with any progress I make. Please do reply if you know what I'm proposing will not work. 0 -
If you want to re-populate the form items with user input, you'll need to make judicious use of the runtime modifications sequence in your form. I recommend using the Form Results output argument to help with this. 0 -
Thank you Zack. I'd actually already gotten it working nicely from what Nico suggested, because I already had the form populating itself from what is in the attributes. But thanks anyway.
My problem now is how do I get the highlight to disappear once the user has edited the geometry, because after the icon moves, the area it came from is still highlighted. Reason for this is because it is through the MapTips result window that I've been testing my workflow, since I feel this to be the simplest way for the user (and myself) to invoke it. Ought I put this problem in a new thread?
-------------
Regardless, to resolve this thread:The trick was putting DisplayForm into a flowchart as Nico suggested (Thanks Nico!). Following this is a Decision activity that when true points to the Save Attributes sequence. Following this is a second Decision that when true runs the Edit Geometry sequence. The first condition checks for it being either the Save button or the Edit Geometry button that was clicked. The second checks only for the Edit Geometry button being clicked.
By virtue of this portion of the workflow now being in a flowchart and the Save Attributes sequence running first, the arrow out from the Edit Geometry sequence points back to DisplayForm, enabling it to redisplay with whatever values were present or edited in its controls before Edit Geometry was clicked.
Thank you to both Nico and Zack for helping me with this.
Cheers,Justin
0 -
Getting the highlight to disappear depends on where the highlight comes from. Most likely the commands ClearSelection, ClearFeatureFocus, and/or ClearHighlights will do the trick. 0 -
Thanks Zack. I've tried RunExternalCommand with all three of those in sequence following UpdateFeatures, followed by RefreshMap, and still the only time the highlight disappears is when I close the MapTips window. Makes me wonder what command(s) the MapTips close event activates. 0 -
I found what works: HideMapTips
When entered to a RunExternalCommand after UpdateFeatures, the map tidies itself up perfectly.0 -
one more thing regarding my last post above: to get the tidy map also requires ClearHighlights 0 -
Glad that you got it!
ClearFeatureFocus requires an input value, and I think that itjhe command clears the map tip as well. I don't recall what that input argument is, but I think that if you supply a featureset with the map-tipped feature in it that you'll be fine. Could be wrong though (if anyone knows please chime in).
0 -
Thanks Zack.
I did try ClearFeatureFocus with the active featureset as its command parameter, but found it stil leaves the highlight on the original location, even if I follow it with ClearHighlights (with no parameter). Perhaps the parameter on ClearFeatureFocus is not what it is looking for, but I think it may be best just to leave the HideMapTips in place. Thanks though.0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
10 Kommentare