Check Box remaining checked in runtime modification
I have a workflow that allows a user to check a check box to mark a feature as a 'Favorite'. I'd like the check box to remain clicked if the workflow is opened again, so the feature can be unfavortied. I know I need to use runtime modifications to accomplish this, but am unsure how to configure the assign property...this is what I have so far...
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=90660000000PDnO&feoid=Body&refid=0EM60000000HT3C"_/_img_
I am getting an error because of the 'ToString'..."Cannot assign from type System.String to type System.Boolean"
Any help is greatly appreciated!
0
-
The error is because the "Checked" property of a CheckBoxFormItem is a boolean value, not a string like what you're trying to feed it. So you need to change that. I assume that the "Favorite" value is already a boolean; if that is the case then you should be fine using the System Convert.ToBoolean method. If you don't also have a way to persist the checked boxes, I would look into using the Set/Get External Value activities. 0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar