AnsweredAssumed Answered

Joined Field in ClassBreaksRenderer

Question asked by sarahclark on Mar 14, 2016
Latest reply on Mar 15, 2016 by rscheitlin

Hello - I have a ClassBreaksRenderer that's failing when I use a joined field for the attributes. The joined field name has periods in it, e.g.  'database.dbo.testField'. I don't see anything about this renderer not working on joined data -- can it not handle the field name?

 

Thanks!

 

var testCBR = new ClassBreaksRenderer(lmpPoint0, "database.dbo.testField");
        testCBR.addBreak({
            maxValue : 10,
            minValue : -50,
            symbol : lmpPoint1
        });
        testCBR.addBreak({
            maxValue : 20,
            minValue : 10.01,
            symbol : lmpPoint2
        });
        testCBR.addBreak({
            maxValue : 21,
            minValue : 20.01,
            symbol : lmpPoint3
        });
        testCBR.addBreak({
            maxValue : 22,
            minValue : 21.01,
            symbol : lmpPoint4
        });
        testCBR.addBreak({
            maxValue : 23,
            minValue : 22.01,
            symbol : lmpPoint5
        });
        testCBR.addBreak({
            maxValue : 30,
            minValue : 23.01,
            symbol : lmpPoint6
        });
var testCBROption= new LayerDrawingOptions(;
testCBROption.renderer = testCBR;

var lmpOptions = [];
lmpOptions[2] = testCBROption;


var test = new ArcGISDynamicMapServiceLayer("https://etc.etc.etc", {
  showAttribution : false,
  id : "testid",
  visible : true
})
test.on('load', function() {
  test.setLayerDrawingOptions(lmpOptions);
}

Outcomes