Skip to main content

Label feature dynamicly

Comments

3 comments

  • Permanently deleted user

    Does anyone have an update on this question?  Thank you 

    0
  • Permanently deleted user

    If you are only labelling a couple of features you could use the text drawing tool.  On the Tasks tab, with the drawing tools, there is a Text tool.  Click on the feature you want to label, and then click the ellipses.  A dialogue box opens where you can select an attribute to use for the label.

    0
  • Permanently deleted user

    You could probably do something like this with the "SetLayerDefinition" activity. I would do it like this:

    • Add a copy of the layer you wish to label to the map service, and configure it to label the desired field(s), etc... Symbolize it to be invisible, so that only the label is visible. You would also perhaps want to hide it in the layer list and legend.
    • Then in your workflow, get the selected features, and create a definition expression, using objectid, like "ObjectID in (" + objIdList + ")" or similar.
    • Next, use that expression in the SetLayerDefinition activity to filter the layer to show only those features.

    Of coures this only works if you can identify the field(s) and layer(s) at design time.  If you need something more dynamic where the user is choosing which layer and field, then I dont know how to do that.

    0

Please sign in to leave a comment.