Skip to main content

Determine field type

Comments

1 comment

  • Permanently deleted user

    Marcus,

    Wonder how you can get the json string of the "Fields" property of the Layer from GetLayerProperty. It is the Collection<Field> where Field is the Gcx Field object which is not serializable object.

    However, if you can have the Json presentation of the Fields, you can convert to the Dictionary using JsonToDictionary to get the field type you are looking for. But I don't know how you get the Json string you wrote on your post.

    You may try to using QueryTask to get one Feature from the Layer, and loop through the Attributes to get the field type. That is one way to do.

    Munhwan

    0

Please sign in to leave a comment.