Zum Hauptinhalt gehen

populate list box from c# block?

Kommentare

3 Kommentare

  • Permanently deleted user

    Hi Sandeep,

    1. The serializable error you are getting in the C# Script activity is from the line iItemsList.Add(item). For whatever reason, this method can't be called from within the script. However, I was able to get it to work by using Assign and InvokeMethod activities that perform the same steps in sequence.

    2. The DataItems property of a ListBox is read-only, so you will not be able to set this to a new list of dataitems within the runtime modifications. That is why you are getting the second error there. However, you can assign the itemsList that was created in the previous steps directly to the ListBox1 Input Data property in the body of the form:

    /customer/servlet/servlet.FileDownload?file=00P6000000elzqxEAA

    You can download the working Workflow (https://data.latitudegeo.com/community/listbox.zip) here .

    -Victoria

    0
  • Permanently deleted user
    Victoria, 

     

    Would you please upload your codes again since I have simliar issue? The original link was removed somehow. Thanks a lot !
    0
  • Permanently deleted user
    Hello Hua, 

     

    You can now find the code here: https://data.latitudegeo.com/community/listbox.zip

     

    Enjoy!

     

    Pandora
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.