Zoom to selected feature directly from the attribute table by clicking on a row. I do not want to go through the enhanced search widget.
On the far left of each row there is a gray box in front of the first field (the gray row box always remains visible, even if the fields scroll when you go to the right end of the row). If you double click one of those boxes you will be zoomed to the feature matching the row you double clicked on if the table view is for a Feature Class or a Shapefile.
If you right click inside that box a context menu will appear. If the Table View is for a Feature Class or Shapefile, at the top of the Context Menu list is Zoom To, which will zoom you to the row you right clicked on when you left click that option.
If there are selected rows, in the center of the Context Menu there will be an option to Zoom To Selected Features (or something to that effect). If you click on that option you will be zoomed to the records you have selected.
If you are in Show Selected Rows Only mode in the table and have highlighted some of your selected rows, toward the bottom you will have the option to Zoom to Highlighted Features. When you left click that option you will be zoomed to the highlighted features.
There are also several keyboard shortcuts for interacting with the map from the table, like Ctrl+Shift+= to zoom to selected features.
Thank you Richard, but I was looking for an answer for the 'attribute table widget' which is a part of the Flex Viewer.
Sorry. I keep forgetting that this is not the old forums and that in my activity view I am seeing every Place in GeoNet. The Place of these posts should be much more prominently displayed in that list so that I won't give Desktop answers to Flex users. Not being a Flex user I will leave your question for others to answer.
Annie,
No there is not without extending the AttributeTable component and without having access to the AttributeTable source code this will prove to be VERY difficult. It is possible you could attach a grid click event in the AttributeTableSkin.mxml to the dataGrid but it could override something in the AttributeTable component of the Flex API.
Thank you for your reply Robert,
at this point I do not
want to dive into the Attribute Table Skin .mxml, but in order to make a
feature look a little more prominent/conspicuous on the map is there a way
to change the color of the selected feature on the map from a dull yellow
to a bright blue or something?
On Fri, Oct 24, 2014 at 10:13 AM, Robert Scheitlin, GISP <geonet@esri.com>
Annie,
There is nothing configurable for changing the selection color (meaning no XML tag you can change or add for this). But if you are working with the viewers source code then I can point you in the right direction.
Yes, I am familiar with the viewer's source code and if you could guide me
in that direction I sure would appreciate.
On Fri, Oct 24, 2014 at 10:57 AM, Robert Scheitlin, GISP <geonet@esri.com>
Annie,
In the /FlexViewer3.6/src/com/esri/viewer/managers/LayerCreator.as find the createFeatureLayer function and add this line after the featureLayer has been var'd
featureLayer.selectionColor = 0x00bff3;