Edit Widget Questions

3978
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
RachelS
Occasional Contributor III
Thanks Philipp,
That's shame, I hope it goes into the code gallery soon, as it's a very useful widget.
The Edit Widget unfortunately doesn't respect the changes made to the field Order in the mxd, although it honours field aliases. I don't know why the default order is alphabetical, since the way you would have the fields ordered in the mxd, is the way they should show in the flex.
Rachel
0 Kudos
heatherGrybas
New Contributor
Hi Rachel,

I had the same problem as you. I have several datasets that can be edited with the edit widget and they all have a number of fields that have to be filled in. The best work around I could find (since I know nothing about programing) was to number each field in the order you want using the field aliases. So for example when your alias might look like "1. [Name]" then go on to two ( " 2. [Name]") and so on in the order you want the fields to appear. The edit widget should list them according to number. It really wasn't the way I wanted my field names to look in the editor but at least they were in the right order.

good luck!

-Heather
0 Kudos
RachelS
Occasional Contributor III
Thanks for this Heather, this is a good work around in the mean time.
On the plus side I've discovered that flex honours hidden fields without needing to add code unlike webadf.

I have one other query I don't see on the forum all my text boxes are quite large. Is there any way of adjusting their size as it seems defaulted to the one size regardless of how many characters the field is in the mxd.

Thanks

Rachel
0 Kudos
ToddLaQuay
New Contributor III
I am also not a programmer and numbering the aliases only works if you have fields 1 to 9, when you add that 10th field in, it gets placed between 1 and 2 (ex 1, 10, 2, 3)  I have about 60 editable fields and order is important to the non GIS users to follow their forms and fill in.  Does anyone have a suggestion for this issue?

UPDATE:  I found in other DB forums where they said to pad with 0's giving equal number of characters and that solved the issue. (ex 01,02,...09,10,11)
0 Kudos
FrankRoberts
Occasional Contributor III
When the widget loads, it automatically turns on all the layers, independent of what you may have switched on or off.  That seems to be the default behavior even in the sample provided at ESRI (I guess).   However, with mine after the edit widget layer loads up and turns on all the layers, I can�??t turn them off in the edit widget.  I�??m looking at the config file for the edit widget and am not seeing anything that would allow me to enable or disable this function.

Anyone know how to allow me to turn layers off?
0 Kudos
FrankRoberts
Occasional Contributor III
Sorry but hopefully this helps someone.  the answer to my above question is that the behavior I saw was from having the addfeature tag ( found in the editwidget.xml) set to false.  When you do this it must not allow or accept clicking on the widget.  So then you can't turn it off.
0 Kudos
NeoGeo
by
Occasional Contributor III
Thanks to everyone that contributed!!  I finally figured out my problem.  For people who need a compiled version, here is a compiled swf (version 2.5).  I included a small HowTo and and examle xml file as well as the mxml that was uploaded previously.

Thanks again everyone!!
0 Kudos
PamTurner
New Contributor III
Is there a comparable fix to reorder/turn fields off in the 3.0 flex viewer. I thought the default Field Inspector option would do it but I can't find any documentation to set it up and have tried all the usual search locations. Any guidance would be appreiciated. I'm trying to move from 2.5 to 3. Thanks in advance.
0 Kudos
JosVroegop
New Contributor II
I modified the standard 3.0 edit widget with code examples from Harold Bostic's post. Im not a flex programmer but it seems to work like it should. Maybe it's usefull to someone so here's a compiled and sourcecode version of my frankenstein.
0 Kudos
JosVroegop
New Contributor II
Code in previous post has some weird behavior. 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?
0 Kudos