Hoppa till huvudinnehållet

Mapping a GPFeatureRecordSetLayer to a Listbox in a Workflow Form

Kommentarer

1 kommentar

  • Drew Millen

     

    Hi Sune,

    I can see what you are attempting to accomplish.

    Did Ryan Cooney’s post on our User Forum help you with this? I think his suggestion is a good start…

     

    http://support.geocortex.com/Forums/Thread.aspx?thread=46114&mid=2&pageid=0&ItemID=20&pagenumber=1#post133308

    You will need to:

    1. Get the “FeatureSet” object from the GPFeatureRecordSetLayer
    2. Use the ForEach<T> activity to loop through each item in the FeatureSet.Features collection.
      • FeatureSet.Features is an IList<Graphic> collection, so each item will be of type ESRI.ArGIS.Client.Graphic
    3. For each graphic, you can get the values of the Name, SourceID, and Total_minutes attributes by accessing the “Attributes” collection. In VB syntax, getting the value of an individual attribute will be something like:

       

       

      myGraphic.Attributes.Item(“Total_minutes”)

       

       
    4. Put these values into a new Geocortex.Forms.Client.DataItem object. A list of these DataItem objects can be used to populate a drop-down in a form.

     

    I hope this helps!

    0

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