Hello, I am using the latest compiled eSearch version widget 3.3.1 in a new ArcGIS API 3.3 for Flex site and I am experiencing different results with my searches than when using the previous eSearch version 3.0.4 in an ArcGIS API 3.0 for Flex site. When I search for a polygon or point feature that returns enough points to zoom out to a scale threshold that the feature is not displayed at, the selected features are not showing up on my map. The search results window or the data grid will display the attributes of the features found and you can mouse thru the data and the tooltip window will move around on the map, but not until you zoom in to the scale threshold of the feature you searched on will they be displayed. Is there something that I missed in upgrading my site and widget to the latest version? In version 3.0.4, when you would search for these same features they would be displayed on the map at any scale beyond the scale threshold that was set on the feature and I am looking for that same functionality so users will see the results immediately without having to zoom in to the scale dependency of that feature. Thanks, and any help would be appreciated.
Marie, Yes you should always use your own geometry service as esris gets a lot of traffic. Changing the spatialreference will depend on what spatialreference your basemaps are in. If you are using esris basemaps then NO. If you are using all of your own basemaps and they are in WKID 3418 then yes.
<layer> <token/> <definitionexpression/> <enableexport>true</enableexport> <name>Sanitary Main</name> <url>http://GIS01.lebanon.local:6080/arcgis/rest/services/OperationalLayers/Utilities/MapServer/3</url> <expressions> <expression alias="Facility ID" textsearchlabel="Search Specific Main:" isvaluerequired="false"> <values> <value prompt="Example: 1032" isvaluerequired="false">FACILITYID = [value]</value> </values> </expression> <expression alias="Attributes" textsearchlabel="Search Mains:" isvaluerequired="false"> <values> <value prompt="Type:" isvaluerequired="false" uniquevalsfromfield="TYPE" autosubmit="false" operator="AND">TYPE = '[value]'</value> <value prompt="Diameter:" isvaluerequired="false" uniquevalsfromfield="DIAMETER" autosubmit="false" operator="AND">DIAMETER = [value]</value> <value prompt="Material:" isvaluerequired="false" uniquevalsfromfield="MATERIAL" autosubmit="false" operator="AND">MATERIAL = '[value]'</value> </values> </expression> </expressions> <graphicalsearchlabel>Use one of the graphical search tools to select Main</graphicalsearchlabel> <spatialsearchlayer>true</spatialsearchlayer> <titlefield>Sanitary Main</titlefield> <fields all="false"> <field name="FACILITYID" gridfield="true"/> <field name="TYPE" gridfield="true"/> <field name="DIAMETER" gridfield="true"/> <field name="MATERIAL" gridfield="true"/> <field name="YEARBUILT" gridfield="true"/> <field name="EDITDATE" gridfield="true"/> <field name="INSPECTIONDATE" gridfield="true"/> </fields> <links/> <zoomscale usegeometry="true" zoompercent="2"/> <autoopendatagrid>false</autoopendatagrid> <queryattachments>false</queryattachments> <relates> <relate id="0" label="Asbuilts" enableprintgrid="false"> <fields all="false"> <field name="ASBUILTID" gridfieldonly="true"/> <field name="FILEPATH" alias="View Asbuilt" gridfieldonly="true" hyperlinkgridfield="true" hyperlinkaliastext="View Asbuilt" linkprefix="http://GIS01/Asbuilts/" linksuffix=".pdf"/> </fields> <zoomscale usegeometry="true" zoompercent="1.6" /> </relate> <relate id="1" label="TV Projects" enableprintgrid="false"> <fields all="false"> <field name="TVPROJECT" gridfieldonly="true" hyperlinkgridfield="true" hyperlinkaliastext="View TV Project" linkprefix="http://GIS01/TVProjects/"/> </fields> <zoomscale usegeometry="true" zoompercent="1.6" /> </relate> </relates> <symbology> <simplelinesymbol color="0xff0000" alpha="0.8" width="2"/> </symbology> </layer>
Casey, I was able to debug using the data you provided and narrow it down to the two main issues I told you about in my last post. The zoom scale I provided in red and removing the polygon symbology tags or better yet changing them to the proper polyline symbology: <symbology> <simplelinesymbol color="0x00ff00" alpha="0.8" width="2" /> </symbology>Fixed the issues for me. Can you try publishing the same data you sent me and configure it and see if you can get the same positive results I am getting? That way we can narrow things down more.
<symbology> <simplelinesymbol color="0x00ff00" alpha="0.8" width="2" /> </symbology>
<field name="INSPECTIONDATE" gridfield="true" dateformat="MM/DD/YYYY" useutc="true" />
Casey, I am unable to test using the data you sent earlier as the second relate is not there. Can you sent all the data for the new test case?
<relates> <relate id="0" label="Asbuilts" enableprintgrid="false"> <fields all="false"> <field name="ASBUILTID" gridfieldonly="true"/> <field name="FILEPATH" alias="View Asbuilt" gridfieldonly="true" hyperlinkgridfield="true" hyperlinkaliastext="View Asbuilt" linkprefix="http://GIS01/Asbuilts/" linksuffix=".pdf"/> </fields> <zoomscale usegeometry="true" zoompercent="1.6" /> </relate> <relate id="1" label="TV Projects" enableprintgrid="false"> <fields all="false"> <field name="FILEPATH" gridfieldonly="true"/> <field name="TVPROJECT" gridfieldonly="true" hyperlinkgridfield="true" hyperlinkaliastext="View TV Project" linkprefix="http://GIS01/TVProjects/"/> </fields> <zoomscale usegeometry="true" zoompercent="1.6" /> </relate> </relates>
Casey, I do seem to have some sort of issue where you can not only specify on field in the relate if it is a hyperlink field. This is what worked for me: <relates> <relate id="0" label="Asbuilts" enableprintgrid="false"> <fields all="false"> <field name="ASBUILTID" gridfieldonly="true"/> <field name="FILEPATH" alias="View Asbuilt" gridfieldonly="true" hyperlinkgridfield="true" hyperlinkaliastext="View Asbuilt" linkprefix="http://GIS01/Asbuilts/" linksuffix=".pdf"/> </fields> <zoomscale usegeometry="true" zoompercent="1.6" /> </relate> <relate id="1" label="TV Projects" enableprintgrid="false"> <fields all="false"> <field name="FILEPATH" gridfieldonly="true"/> <field name="TVPROJECT" gridfieldonly="true" hyperlinkgridfield="true" hyperlinkaliastext="View TV Project" linkprefix="http://GIS01/TVProjects/"/> </fields> <zoomscale usegeometry="true" zoompercent="1.6" /> </relate> </relates>Seems how you second relate is not a file but just a directory, do you have directory browsing enabled on your IIS virtual directory?
Casey, In my test environment using your data it works fine... When you say it errors what exactly do you mean (screenshots help)? Is there a particular Facility ID that is erroring? I have been using 143 and 1032 for testing.
Marie, If you notice post #68 That issue is fixed in version 3.3.2.
<expression alias="Valve ID" textsearchlabel="Search Valves by ID"> <values> <value prompt="Example: 40361 (use % for wildcard)">wStreetValve.ValveID like '[value]'</value> </values> </expression>
Casey, Did you upgrade to 3.3.1 or 3.3.2?
Shawn, I tested Version 2.9.0.1 - 6-8-2012 using a joined map service and it worked fine.
<fields all="true"/>
<fields all="false"> <field name="wStreetValve.SubtypeCode" alias="Type" gridfield="true" /> <field name="wStreetValve.ValveID" alias="ValveID" gridfield="true"/> <field name="wStreetValve.CMMSOrg" alias="Operating District" gridfield="true"/> <field name="wStreetValve.WaterType" alias="Water Type" gridfield="true"/> <field name="wStreetValve.Diameter" alias="Diameter" gridfield="true"/> <field name="wStreetValve.NormalPosition" alias="Normal Position" gridfield="true"/> <field name="IA_SVLV_Dimensions.Dimension_1" alias="Dimension 1" gridfield="true"/> <field name="IA_SVLV_Dimensions.Dimension_2" alias="Dimension 2" gridfield="true"/> <field name="IA_SVLV_Dimensions.Dimension_3" alias="Dimension 3" gridfield="true"/> </fields>
Shawn, The fact that it works with field all="true" tells me that you have an issue in your field names when you specify them. Flex is a case sensitive language. I would suggest triple checking you field names and case and eliminate fields one by one to diagnose the issue. Another thing is you can use a tool like fiddler to check the http traffic and see the response from ArcGIS Server.
<floatorfixed>float</floatorfixed><!-- possible values are fixed and float -->
<zoomscale usegeometry="true" zoompercent="1.6" />
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.