Check Box Persistence
Does anyone have an example or insight into persisting Check Boxes in a workflow? When my workflow returns to my initial window (after checking some check boxes), all boxes are unchecked. I've attempted to save off the boolean values and reassign them back to the checkbox objects, after my RefreshMap, but still no luck.
-
The first problem is when a workflow runs it has no knowledge of previous executions of that workflow.
So you first will have to "store" the checkboxes in some method, outside of the workflow and likely on the server. If trying to do this per-user (where one user may have different options than another), I can foresee lots of challenges. Setting the checkboxes can be done using runtime modifications on the forms. Alternatively, you can program your own customized workflow forms.
I hope that helps get you pointed in the right direction.
Shawn.
0 -
That does help, thank you.
0 -
Solved: After some research and at least one reference to Runtime Modifications elsewhere in the Forums, I was able to persist my Check Boxes, Combo Boxes and Date Picker dates. I was already storing the user values in variables, I just needed to use a "Runtime Modifications" activity with a series of IF and ASSIGNs to place those user values BACK into the items. The Display Activity Form help lists various "form.Find(Of CheckBoxFormItem).." etc. which really put it all together for me.
CC
0 -
Hi Chris, I am also trying to get my check boxes to remain checked using a workflow, but am unsure how to complete the assign activity in the runtime modification...Any suggestions... 
I know the ToString part is wrong, any suggestions on what it should be?0 -
Hi Lisa
.Checked is a black and white question ie True or False.
What sort of datatype is "favorite"?
What ever it is it needs to end up as a True or False bollean value and not "True" or "False" string value.
Hope that helps
Ralph Price0 -
"favorite" is a sql_variant datatype in SQL. I have created a workflow that allows a user to mark a check box which 'favorites' a facility. I'd like to enable the ability for the user to go back in and 'unfavorite' the facility.
See my workflow below...do you have any suggestions on how I would accomplish this?
https://drive.google.com/file/d/0B5rgPuFOw9yfQTJSMjZjUGpLMjQ/view?usp=sharing0 -
Yet to look at your request but you could try:
Convert.ToBoolean(SqlQueryResult.Rows.Item(0).Item("favorite"))
Thanks
Ralph Price0 -
That did it! Thank you so much Ralph! 0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
8 kommentarer