Skip to main content

Add attachments

Comments

3 comments

  • Permanently deleted user
    Hi James,

     

    We are adding attachments to newly added points, but not sure it is the most efficient method.  When a point is added, it is calculating the Edit Date (a time stamp) and the Editor Name attributes (from get current user activity) on the new feature.  I'm then querying the feature service to get the record that has that user name and exact edite date (date/time).  With our workflow, I am comfortable making the assumption that the user is only adding one point at that exact moment in time.  From there, I can get the ID of the returned feature and use that in the Attachment activity.  Again, probably not the most efficient, but it gets the job done for us.  
    0
  • Nico Burgerhart
    You can get the ID of the added point from the Edit Results output parameter of the Add Features parameter. This is a list of results, you can get the objectid with myeditresultsvariable.First.ObjectID.

     

    See also http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.EditResultItem_members.html
    0
  • James Landwehr
    Thanks Stephanie and Nico. If possible, could either of you send the xaml code, or post it? That way I will be able to copy activities and model the correct behavior. 
    0

Please sign in to leave a comment.