//

706
5
Jump to solution
09-18-2018 11:03 AM
_____
by
New Member
 
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Esteemed Contributor

Ian,

   My apologizes. It should be:

var length = results.features[0].attributes['SHAPE.STLength()'];

Notice that SHAPE is all caps. JS is case sensitive

View solution in original post

5 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

Ian,

   Use:

.attributes['Shape.STLength()'];
0 Kudos
_____
by
New Member

//

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Strange it works for me. you are using:

var length = results.features[0].attributes['Shape.STLength()'];

right?

0 Kudos
_____
by
New Member

//

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Ian,

   My apologizes. It should be:

var length = results.features[0].attributes['SHAPE.STLength()'];

Notice that SHAPE is all caps. JS is case sensitive