Solved! Go to Solution.
<widget label="Identify" left="330" top="80" preload="open" icon="assets/images/i_info.png" config="widgets/Identify/IdentifyWidget.xml" url="widgets/Identify/IdentifyWidget.swf"/>
The name element specifies the EXACT name of the layer as it is displayed in the REST servicesAlso the fields:
directory.
The fields parent element contains all the individual field child elements that will be used for this
particular layer. Everything for the field element is specified as an attribute of the element. The name
attribute is the EXACT ALIAS (as it is displayed in the REST services directory) of the field and is a
REQUIRED attribute.
The labels\names\layers look like they match. Am I matching up the correct parts?
CONFIG.XML
<layer label="Armory Locations" type="dynamic" visible="true" alpha="10.0"
url="http://ngnya0-gis-02/NYArcGIS/rest/services/Armory_Locations/MapServer"/>
IDENTIFYWIDGET.XML
</labels>
<useproxy><!-- Enter the label of the MapService from the main config.xml -->
<!--<proxymapservice label="Imagery" />
<proxymapservice label="Armory Locations" />-->
</useproxy>
REST SERVICE:
Layer: DMNA_Fac2011_DESCRIP (ID: 0)
Display Field: Descrip
Type: Feature Layer
Geometry Type: esriGeometryPoint
Description:
Definition Expression: "label_site" = 'SITE' OR "label_site" = 'TNG'
Copyright Text:
Min. Scale: 0
Max. Scale: 0
Default Visibility: True
Extent:
XMin: 144442.606310887
YMin: 4495714.38354477
XMax: 698655.175929449
YMax: 4950087.10403643
Spatial Reference: 26918
������
Fields:
â?¢ OBJECTID (Type: esriFieldTypeOID, Alias: OBJECTID)
â?¢ Shape (Type: esriFieldTypeGeometry, Alias: Shape)
â?¢ SiteNumber (Type: esriFieldTypeString, Alias: SiteNumber, Length: 6 )
â?¢ INSTNAME (Type: esriFieldTypeString, Alias: INSTNAME, Length: 34 )
â?¢ INSTNAME2 (Type: esriFieldTypeString, Alias: INSTNAME2, Length: 40 )
Type ID Field: N/A
Supported Interfaces: REST
IDENTIFYWIDGET.XML
<layers onlythese="false">
<layer>
<name>DMNA_Fac2011_DESCRIP</name>
<fields>
<field name="INSTNAME2" alias="INSTNAME2" />
popuponly="true" />
</fields>
<layers onlythese="false">
<layer>
<name>DMNA_Fac2011_DESCRIP</name>
<fields>
<field name="INSTNAME2" alias="INSTNAME2" popuponly="true" />
</fields>
No the mxml is what gets compiled to a swf (if you are using the un-compiled source code). All you should have to do is add the contents of the "compiled_FV3.0" folder from the download zip, which is the "Identify" folder and put copy that under the widgets folder in your compiled Flex Viewer directory. Or if you are using App Builder than you go to App Builder:
The xml gets compiled into the swf, right?
<layers onlythese="false">
<!--<layer>
<name>DMNA_Fac2011_DESCRIP</name>
<fields>
<field name="INSTNAME2" alias="site name" />
<field name="SiteNumber" alias="site number" popuponly="true" />
</fields>
<links>
<link includeinresults="false" field="" alias="" tooltip="">
<linkprefix></linkprefix>
<linksuffix></linksuffix>
<iconfield></iconfield>
<iconprefix></iconprefix>
<iconsuffix></iconsuffix>
</link>
</links>
<zoomscale>15000</zoomscale>
<forcescale>true</forcescale>
</layer>-->
tags that it puts there, it shows you code much nicer and is a lot easier to interpret. This is how Robert got it to appear in its own "Code:" block above.