Sample issue: 'Query and edit related records' doesn't work

351
0
04-09-2012 10:51 AM
FredSpataro
Occasional Contributor III
Anyone know what's wrong with the 'Query and edit related records' sample? http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm

The voteForIncident() method fails with:

Uncaught TypeError: Cannot read property 'length' of undefined              dojo.mixin.filterserverapi.arcgisonline.com:14
_4.declare._convertFeaturesToJson                                                   FeatureLayer.xd.js:19
_4.declare.applyEdits                                                                      FeatureLayer.xd.js:19
esri._createWrappers.dojo.forEach._2fa.(anonymous function)                serverapi.arcgisonline.com:48
voteOnIncident                                                                              ed_relatededits.html:157
(anonymous function)                                                                     ed_relatededits.html:1
onclick                                                                                         ed_relatededits.html:2


Thanks

UPDATE: I get the same error in both IE9 and Chrome.  The FlexAPI version (http://help.arcgis.com/en/webapi/flex/samples/index.html#/Editing_a_related_table/01nq00000020000000...) works fine so I don't think it's the map service.  Seems like there might be an issue with Javascript API...maybe just an old sample.
0 Kudos
0 Replies