In my app, there is a requirement to let the user add features using xy coordinate pairs as input. I have been able to get the user XY input and generate a MapPoint & update it to SDE.However, when it comes to polyline or polygon, the user inputs have been updated to an array of mappoints. But from that array I am unable to generate graphics or create a feature which could be updated in SDE.This is the codeswitch(selectedFeatureLayer.layerDetails.geometryType) { case Geometry.POLYLINE: { Alert.show(myPointArray.toString(), myPointArray.length.toString()); pline = new Polyline([myPointArray]); var myGraphicLine:Graphic = new Graphic; myGraphicLine.geometry = pline; myGraphicLine.symbol = new SimpleLineSymbol(SimpleLineSymbol.STYLE_DASHDOT,0x0000FF, 0.6,2); myGraphicsLayer.add(myGraphicLine); selectedFeatureLayer.applyEdits([myGraphicLine], null , null); break; } case Geometry.POLYGON: { // Get the points array and add the first point at the end of the array to make a polygon var onePointArray:Array = new Array; onePointArray=myPointArray[0]; myPointArray.push([onePointArray]); // Create polygon graphic poly = new Polygon([[myPointArray]]); myGraphicPoly.geometry = poly; myGraphicPoly.symbol = new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID,0x00FF00, 0.7); myGraphicsLayer.add(myGraphicPoly); selectedFeatureLayer.applyEdits([myGraphicPoly], null , null); myPointArray = new Array; finishAdd.enabled = false; break; } default: { break; } }The user entered coordinates are stored in myPointArray. Trace shows that the pline / poly is not getting generated. How do I go about this? Whats the mistake?