AnsweredAssumed Answered

Is dataSourceProxy returning bad data? (field types, aliases, supportSelection)

Question asked by htudosieesri-ca-esridist Employee on Dec 3, 2015
Latest reply on Dec 16, 2015 by htudosieesri-ca-esridist

Both dataSourceExpired(dataSource, ...) and getDataSourceProxies() (with a bug fix!) returns a dataSource that do not resembles the layer:

  1. expected type domains-code returns actually "esriFieldTypeSmallInteger" (and the f.attributes[<field name>] returns an integer,)
  2. aliases of fields return the name of the field instead of real alias defined in the layer,
  3. supportsSelection of the dataSource returns false instead the value configured, and so selectFeaturesByObjectIds() does not work!


Is it something I do wrong?

How can I fix all those issues?