FeatureLayer.applyEdits - Null attribute properties

4707
2
11-11-2010 10:24 AM
DanielBradshaw
New Contributor
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
New Contributor III

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