how to give customized values in attributes while editing
var newGraphic = new Graphic(point2, null, newAttributes);
Solved! Go to Solution.
You can create your own attributes object and set the attributes at any time:
var attrobj = {
id: null,
x: null,
y: null,
comment: ""
};
newGraphic.attributes = attrobj;
newGraphic.attributes.id = myIDval;
newGraphic.attributes.x = myXval;
newGraphic.attributes.y = myYval;
newGraphic.attributes.comment = myComment;
You can create your own attributes object and set the attributes at any time:
var attrobj = {
id: null,
x: null,
y: null,
comment: ""
};
newGraphic.attributes = attrobj;
newGraphic.attributes.id = myIDval;
newGraphic.attributes.x = myXval;
newGraphic.attributes.y = myYval;
newGraphic.attributes.comment = myComment;
will that reflect into database
No, just the graphic's attributes. You'll still need to push the values through to the editable feature class.
thank u fc basson it worked