<?xml version="1.0" ?> <configuration label="Louisville Parcels and Police"> <layers> <layer> <name>accidents</name> <url>http://localhost:6080/arcgis/rest/services/SIGMALOGITEC/servicetest/MapServer/0</url> <expression>accident = [value]</expression> <textsearchlabel>Search by Parcel ID [ Example: 181001490000 or 1810%]</textsearchlabel> <titlefield>accident</titlefield> <linkfield></linkfield> <fields all="false"> <field name="accident" alias="accident"/> </fields> </layer> <layer> <name>arrandissement</name> <url>http://localhost:6080/arcgis/rest/services/SIGMALOGITEC/servicetest/MapServer/1</url> <expression>objectid = [value]</expression> <textsearchlabel>Search by Parcel ID [ Example: 181001490000 or 1810%]</textsearchlabel> <titlefield>objectid</titlefield> <linkfield></linkfield> <fields all="false"> <field name="objectid"/> </fields> </layer> </layers> <zoomscale>10000</zoomscale> </configuration>
Your accidents field is numerical so your SQL should not have single quotes. This is all basic GIS stuff.
life Esri, You need to verify your field names and the SQL of your where clause.
<?xml version="1.0" ?> <configuration label="Louisville Parcels and Police"> <layers> <layer> <name>accidents</name> <url>http://localhost:6080/arcgis/rest/services/SIGMALOGITEC/servicetest/MapServer/0</url> <expression>accident like '[value]'</expression> <textsearchlabel>Search by Parcel ID [ Example: 181001490000 or 1810%]</textsearchlabel> <titlefield>accident</titlefield> <linkfield></linkfield> <fields all="false"> <field name="accident" alias="accident"/> </fields> </layer> <layer> <name>arrandissement</name> <url>http://localhost:6080/arcgis/rest/services/SIGMALOGITEC/servicetest/MapServer/1</url> <expression>objectid like '[value]'</expression> <textsearchlabel>Search by Parcel ID [ Example: 181001490000 or 1810%]</textsearchlabel> <titlefield>objectid</titlefield> <linkfield></linkfield> <fields all="false"> <field name="objectid"/> </fields> </layer> </layers> <zoomscale>10000</zoomscale> </configuration> <!-- See Search widget tag reference at http://links.esri.com/searchwidget -->
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.