Get field names from joined table

3958
0
08-14-2014 08:17 AM
asinha_ppc
New Contributor II

Hi, I have a feature class joined to a standalone table and published as a map service. I have a simple JavaScript webapp.

And when I run this script, I only get the field names from the original feature class (and nothing from the joined table).

 

var attributes = feature.attributes;

for (var attributeName in attributes) {
  if (attributes.hasOwnProperty(attributeName)) {
    alert(attributeName + " : " + attributes[attributeName]);
  }

 

How do I retrieve the list and values of all the fields from the joined table?

 

Thanks!

0 Kudos
0 Replies