make radio button and groupbox visible in runtimemodification
I have two radio buttons and two group boxes on the form. Based on the radio button check property i make the corresponding group box visible in runtime modification. Everything works fine when user clicks the radio button. Then i want to keep user selected radio button on when user select the same workflow again. For example my default radio button is address search. if user selects parcel search then i want to make parcel radiobutton as the one checked on when user click on the workflow again. My problem is that the both group boxes are visisble when i make the parcel radiobutton as checked, the parcel groupbox visible, and addre groupbox not visible. it seems i can't make radiobutton checked in the runtimemodification. the form could display the radio button for parcel (which is not set checked at form design time) being checked but all the group boxes are visible. Any idea how to make this work? Hope i explained this clear enough.
thanks
0
-
I'm not sure exactly what you're asking, so please correct me if I misread you. You have users re-loading a workflow over and over again, and you'd like to keep some user settings from within the workflow accross each instance? You are also having a problem with both radio buttons being checked at once?
So. All of a workflow's variables disappear when it terminates. You have two ways to hang on to the user's preference. 1) Don't terminate the workflow, instead point the end of the workflow back to the beginning and make sure that your important variables are scoped high enough that they will persist through the loop. 2) Store the variables that you want in the viewer using the "Set External Value" activity, then check for it when needed using "Get External Activity." I would personally pick the second option.
For the issue of having both radio buttons clicked, it sounds as though you are close by correctly assigning the radiobuttonformitem.checked property for the one that you want checked. You may need to set the property for the other button to false first, or maybe you can get around this by setting a radio button group name in the form designer.0 -
Thanks for the reply. I talked to geocortex support. I should not check any radio button at design time, which set the checked radio button as default. Then I check the radio button at runtime based on the conditions. the radio button decides the corresponding groupbox's visibility, which is set at design time. 0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare