Skip to main content

Can't add a data item to combobox list when pulling from mapservice layer?

Comments

6 comments

  • Permanently deleted user

    > The Add Data Item command

    Could you post your workflow here since I don't get what you tried to do.

    Munhwan

     

    0
  • Permanently deleted user

    Rob,

    >it does not work when the source of the combobox is a map service url.

    It won't work that way (configured Query Deatails on the ComboBox control directly), but if you follow the same way you implement assign the datasource for the combobox control using Input Data, it will work.

    Having said, do the followings:

    1) Use Query Task activity to get the datasource, which will return FeatureSet

    2) Use 'Sort FeatureSet' activity if you want to sort

    3) Use 'FeatureSet To DataItem List' activity, which will be the data source for the comboBox, and assign to your variable

    4) Configure to 'Input Data' of the ComboBox control on Display Form

    *** Note: study to use Runtime modification too to use the configured map service Url or where clause etc if you need to assign directly to the comboBox control too so that you can use the configured value outside of workflow, which will be good for the maintenance of your workflow to other machine or when a map serivce layer id is changed or so.

    wish this helps you out.

    Munhwan

    0
  • Permanently deleted user

    Hi, thanks for the suggestion! So then I take it you can not add items to a combobox that is cascading from other comboboxes? Since cascading comboboxes have to be within the form design right?

    I'm not really sure what you mean by your about run-time modifications and using the value outside the workflow. Can you epxlain that part and it applies?

    thanks you!

    0
  • Permanently deleted user

    Refer HELP document for 'Display Form' activity.

    1) open Workflow Designer

    2) Create a new workflow - add a DisplayForm activity

    3) CLick F1 or rightmosuse click to see the help for Display Form activity, at the bottom of document (To modify a form at runtime: section), there are many example how to set the control. For example, to assign ComboBox QueryService URl, Use Assign activity on RuntimeModifications under DisplayForm, and set 

    • form.Find(Of ComboBoxFormItem)("ComboBox1").QueryServiceUrl = [Your configured variable or Argument which comes in Property of the Workflow in Site.xml], rather than hardcoded URL on the ComboBox control initself.

     

    Munhwan

    0
  • Permanently deleted user

    Hi there,

    Yes I've read about the runtime modifications but I guess wasn't clear on how that applied to the the current question. Are you saying that if I make the map service url a property of the workflow, then have that loaded into the combobox at run-time, that Iwill be able to both add individual items to the list and also be able to use cascading where clauses?

    0
  • Permanently deleted user

    Rob,

    My statement at the original does not seem to clear to you.

    > which will be good for the maintenance of your workflow to other machine or when a map serivce layer id is changed or so.

    I recommends to use 'Runtime modification', rather than 'hard-coded url' or 'Where-clause' on the Form control, to make the maintenance easier.

    It is not related with the Cascading configuration.

    Munhwan

    0

Please sign in to leave a comment.