executeRelationshipQuery field aliases

2670
1
10-13-2010 07:22 AM
GuilhermeSoares
New Contributor
Hey

We're having problems with QueryTask's function executeRelationshipQuery, because it doesn't return the field aliases in the property fieldAliases of the class com.esri.ags.FeatureSet.

The json seems to be okay (the fields attribute return the fields with the aliases) but the property fieldAliases comes up with null value. It appears to be a problem with the transformation of the result from json (with useAMF results in the same problem) to the actionScript objects.

There's an error that occurs when the transformation takes place:

ReferenceError: Error #1056: Cannot create property fields on com.esri.ags.tasks.supportClasses.RelatedRecordSet.


We really could use some help with this.

Thanks
Guilherme Soares
Tags (2)
0 Kudos
1 Reply
DasaPaddock
Esri Regular Contributor
Thanks for reporting this issue. It should be fixed in a future API release.

As a workaround, you could use the DetailsTask to get the fields and their aliases.
http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tasks/DetailsTask.html
0 Kudos