Hi all, I'm new to ArcGIS javascript API, now I need to replace an attributes array of the feature layer (whole records associated with a specific field) as a new array of records. I'm just wondering is it possible to use the method attr(name,value) to realize it? Because I saw the method description says:
attr(name,value)
Adds a new attribute or changes the value of an existing attribute on the layer's node. Removes the attribute if the value is null or undefined. (Added at v3.7)
If I can't, can any one give me any hint or code about how to do it? Thanks in advance!