Select to view content in your preferred language

FeatureLayer.applyEdits - Null attribute properties

4807
2
11-11-2010 10:24 AM
DanielBradshaw
Deactivated User
Hello All,

Is it at all possible to pass null values to the rest endpoint using the applyEdits method of the FeatureLayer?  For example, if I have an attribute object {"test":null,"test2":"Hello"} and run this JSON through either the JSON.encode or FeatureLayer.applyEdits, the "test" property never makes it to the REST endpoint.  Has anyone encountered this or worked around it somehow?

ESRI, what if we want to pass null values to our database?

Thanks.
Tags (2)
0 Kudos
2 Replies
DasaPaddock
Esri Regular Contributor
This will be fixed in the next release. You can work-around it though by setting the value to Number.NaN.
0 Kudos
GreggCornetski
Occasional Contributor

I'm surprised how little discussion there is of this issue in the forums and the docs. At which release is this fixed? I'm at 10.1 with the problem. What value does Number.NaN translate to in the JSON request? Does this workaround work for a nullable attribute of any GDB data type? What is the workaround from Silverlight?

0 Kudos