DataTable To FeatureSet - No ListView Details
When I create a FeatureSet from a DataTable, I can see all the attributes in the ResultsTable view, but in ListView I can only get the first attribute. When I click on the ListView item, the map centers and zooms to the feature highlight, but the details do not display. Since this feature is not from a map service in my site, but created from a DataTable result combined with a geometry to create a FeatureSet, how do I get the behavior of ShowFeatureDetails in the ListView when there is no map service configuration to reference?
0
-
There was configuration in the Map Services for the viewer to evaluate. The answer is to add an empty featureclass to your map service with the attributes you desire. Configure this layer in your Map Services list in Manager. Then, when you do a ShowFeatureDetail, or click on an item in a ResultsList or ResultsTable, the viewer can display the results as you have configured them.
The LA County sample viewer does this in the Census Tract workflow. When the user defines a capture geometry, the resulting "features" use the configuration of an empty featureclass included in the viewer configuration, but not displayed in the Layer List. SelectFeatures workflow activities and Chart actions use the configuration of this empty featureclass as well.0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar