Cast Obj to IList - Form List Box
I have a form that allows a client to select a cemetery name. The form variable is of type object. I'm using the "Cast<IList>Object" activity.
/customer/servlet/servlet.FileDownload?file=00P6000000eluH1EAI
But I'm getting an invalid cast from "System.String" to "System.Collections.Generic.IList" error.
My workflow is similar to the one that Ralph provided to another client.
Walter
-
I recently used a combobox to select a value and used String.Format("{0}", selectedObject) to put the selected value into a string after the form was closed.
If the selection type is multiple, you can cast the result to a List<Object> and then go through each object in the list doing a String.Format("{0}", objectValue) to get the selected string value.
-Kevin
0 -
Kevin,
That worked, thanks. Was using a single selection list box, so your suggestion worked perfectly.
Walter
0
Please sign in to leave a comment.
Comments
2 comments