Skip to main content

Add Null to a DataItem List

Comments

2 comments

  • Nico Burgerhart
    You can add an item to your dataitemlist with an Add To Collection activity. Collection = myDataItemList TypeArgument = Geocortex.Forms.Client.DataItem Item = New dataitem("<Null>","") But in this case the output value is an empty string. I'm afraid calculating to a Null is not possible.

     

    P.S.

     

    You do not need a ListToDataItemList activity. The GetCodedValueDomain activity can output to a DataItemList directly.

     

     
    0
  • Jessica Gould
    Thank you so much!  I've been working at this all day, and thanks to another post, I successfully used the InsertIntoList activity using New DataItem("<Null>", nothing). 

     

    Then, in my RuntimeModifications, when I'm assigning the default value to my combobox, I have to use an If activity to account for when the existing attribute value is Null.

     

    Originally, I wasn't using the ListToDataItemList activity, but the Help for GetCodedValueDomain suggests to use it, but I think I'll clean up my workflow to not include it.
    0

Please sign in to leave a comment.