Hoppa till huvudinnehållet

set form list box items

Kommentarer

6 kommentarer

  • Permanently deleted user
    Thanks heaps Lauren, perfectly simple!
    0
  • Permanently deleted user

    David or Lauren - 

    Can you please post the answer here? I think I have the same question. I've converted my query results/Get Attribute Values results to a DataItem List using 'ListToDataItemList', but haven't had any luck getting the List Box to populate from it.

    As a runtime mod, I've tried an assign statement with the left side as: form.Find(Of ListBoxFormItem)("ListBox1").DataItems and the right side as my dataitemlist. I am showing an error on the left side.

     

     

    Error text: "Compiler error(s) encountered processing expression "form.Find(OfListBoxFormItem)("ListBox1).DataItems". Invalid L-value expression.: Reference expressions cannot end with Conversion. The provided expression's type must exactly match the Type T of VisualBasicReference<T> or LambdaReference<T>."

     

     

    Ideas?

     

     

    Thanks,

     

    Jena
    0
  • Permanently deleted user
    Hi Jena, wow what a confusing forum... The solution is dead simple once you see an example. The post to which Lauren answered is this one: https://support.geocortex.com/chatteranswers/ChatterAnswersQuestionSingleItem.apexp?id=906f2000000Crqj Let me know if you have further probems Cheers
    0
  • Permanently deleted user
    Thanks, David!
    0
  • Permanently deleted user
    Another thing Jena, in my workflows I have been setting the listbox items via the 'input data section'. You don't need run-time mods. See attached pic. Cheers
    0
  • Permanently deleted user
    David - 

     

     

    Yep, I moved it out of the run-time mods and into the 'input data' section as well. As you said, once you see it, it's dead simple :) It's working like a charm now.

     

     

    -Jena
    0

Du måste logga in om du vill lämna en kommentar.