Select to view content in your preferred language

AttributeTable KML export

2381
7
02-26-2013 01:38 PM
KennyHoran
Regular Contributor
I like the CSV export option in the AttributeTable widget.  Is there any possibility of adding KML too?  If not, is there somewhere I could download the source to agslib-3.1 to develop my own?
Tags (2)
0 Kudos
7 Replies
AnthonyGiles
Honored Contributor
0 Kudos
GISDev1
Deactivated User
I don't think Esri's Flex API is open source, though.

Robert's e-Search widget will show a floating or fixed datagrid which allows your to export to CSV though.
0 Kudos
AnthonyGiles
Honored Contributor
I am not aware of any restriction from you customizing the provided source code, I believe that's why it�??s called the 'sample viewer', to be used as a starting point.

Regards

Anthony
0 Kudos
GISDev1
Deactivated User
I am not aware of any restriction from you customizing the provided source code, I believe that's why it�??s called the 'sample viewer', to be used as a starting point.

Regards

Anthony


Sorry about the misunderstanding, of course changing the source code of the Viewer is no problem. I am referring to the API, which is provided to us as a .swc which is referenced in the Viewer source code all over the place.

When the OP stated, "agslib-3.1", I thought he was referring to the "agslib-3.1-2012-12-12.swc", which is the compiled Flex API.
0 Kudos
AnthonyGiles
Honored Contributor
Yes I see what you mean, i think the changes that Kenny will need to make should be achievable in the attribute table widget.

Regards

Anthony
0 Kudos
KennyHoran
Regular Contributor
I've looked through the AttributeTable widget and have trouble wrapping my head around it.  Could you point me to where the csv export is performed?  I was hoping to model a KML option after it but so far I can't find it.  I wonder if the logic is not contained within the AttributeTable object itself, part of agslib-3.1-2012-12-12.swc.

I was originally going to add it to Robert's fixed datagrid but the AttributeTable fits my needs perfectly.  Now if I can just find a place for a KML export...
0 Kudos
BjornSvensson
Esri Regular Contributor
To add more "things" to the table options menu (or any other adjustment to the AttributeTable), start with the skin for AttributeTableSkin:
http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/skins/AttributeTableSkin.html
0 Kudos