Select to view content in your preferred language

Editing - populating a field with default value

379
1
05-06-2011 09:14 AM
PhilipThompson
Emerging Contributor
The long and short of it is that I want to edit a feature and add in "who" has made the edit to the feature. I'm going to add a column to the underlying feature class, make this not visible in the Attribute Inspector and then fill it with my Users details.

The only thing is I don't see an appropriate event or property where I can add the value.

Sorry for the noobie question. The samples seem to almost get me there but I thought I'd just post here before I started butchering some code. It seems a relatively common requirement.
Tags (2)
0 Kudos
1 Reply
by Anonymous User
Not applicable
You should be able to autopopulate fields with user info in the AttributeInspector if you listen to FeatureLayer selection complete event.  I know we are currently looking into options to handle what you want to do.  Hope this helps for now.

private function featureLayer_selectionComplete(event:FeatureLayerEvent):void
{
    //Your logic here
}

Regards,
Doug Carroll, ESRI Support Services SDK Team
http://support.esri.com/
0 Kudos