Select to view content in your preferred language

Custom Attribute Inspector

2369
2
11-10-2011 07:01 AM
TroySchmidt
Emerging Contributor
I am wanting to implement a custom attribute inspector.  I like the functionality of it handling the coded domains, subtypes, etc.  The problem I have is the feature(s) I am editing have 100 or so fields associated with them.  These fields are grouped together in chunks of 10-20.  What I want is to be able to program a custom attribute inspector to have drop down groups that expand and contract to show each grouping of fields. 

I have seen on here programatically grabbing the attribute inspector and loading field inspectors into it.  That would work okay, but only for customizing a few fields.  I am more wanting to have some control over the layout.  So i thought about the skin, but not real sure on using the skin how to replace the "form" with my own fieldinspectors.  I tried doing just that but received some errors so I know it has to be something more elegant like defining the fieldinspectors in declaration and then on intialize of the skin programatically adding to the layout then. 

I am just wondering has anyone else customized the attribute inspector skin and added their own field inspectors \ layout?
Tags (2)
0 Kudos
2 Replies
HessCorporation
Emerging Contributor
I had similar issues with the layout of the attribute inspector and ended up designing my own version from scratch using a default form and combo boxes, getting the domains into dropdowns is pretty simple (the flex viewer has a sample widget with everything you need, i stole the code from that) and then you have complete control over the layout. It's admittedly a lot more work but in my opinion the results were far better as i could have the layout 100% as i intended.

That also means you have to have a custom edit function as well, but that was surprisingly easy since it's just passing a graphic into the feature layer.

I really like the out of the box tools for attribute editing but when you need something a little different i prefer to design my own.
0 Kudos
TroySchmidt
Emerging Contributor
That is what I was thinking.  Do you remember which widget it was that showed the combo box coding?  I know logically the steps, but if there is code I could copy and paste no sense in reinventing the whole wheel.
0 Kudos