Edit Widget Questions

3973
42
09-28-2010 10:14 AM
JasonNielsen
Occasional Contributor
Is there a way to change the order of the attribute fields in the edit widget so they are not alphabetical but rather following the order they are in the xml file?

My second question is 2.0 didn't support snapping but it was mentioned that it would be something later on. Can somebody let me know when they think this would be implemented?

Thanks,

Jason
Tags (2)
0 Kudos
42 Replies
BjornSvensson
Esri Regular Contributor
When you create a new feature in a feature service that has attachments, the edit widget doesn't let you add attachments right away. A feature has to be created fist, then edited again if you want to add attachments. Does anyone know what to change to fix this?


Short answer: This is how it works in the ArcGIS API 3.0 for Flex (which is different from 2.x) and the underlying ArcGIS Server (an attachment can't be added until a feature has been created and exist on the server).

Long answer: At 2.x when you clicked to create a feature, the request to create the feature was sent first, then the input boxes for attributes (and attachments) was popped up.

ArcGIS 10.1 added the capability to allowed people to create, but not update, features �?? which (with the 2.x logic) would never work, as you wouldn't be able to set the attributes at all in this particular case.

At 3.0, the created feature is not sent to the server until the attributes have been popped up and user clicked OK.  Since you cannot add attachments to a feature until it exists, this also means that you can�??t add an attachment in the same request.  For future versions, we are considering an API enhancement to once again support the earlier workflow within the Edit widget.
0 Kudos
NajyaBatool
New Contributor III
Hi.  We've also upgraded from 2.5 to 3.0 and I'm struggling to reorder fields in the Edit widget.  Does anyone know if this issue was resolved in 3.1?

Thanks,
Najya
0 Kudos
NajyaBatool
New Contributor III
Hi ESRI FLEX Team,

"For future versions, we are considering an API enhancement to once again support the earlier workflow within the Edit widget."  BJORN

Any further developments on the API?

Thanks,
Najya
0 Kudos