<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Query from mutliple Field in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-from-mutliple-field/m-p/462742#M11916</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you return query results to a GraphicsLayer, you can use this GraphicsLayer to set FeatureDataGrid.GraphicsLayer property. Very similar to this sample except you will be using the GraphicsLayer that contain your query results. &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitFeatureDataGrid"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitFeatureDataGrid&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your DataGrid contain GraphicCollection as its ItemsSource, you can use SelectionChanged event to get the selected row (which is a graphic) and call Map.ZoomTo(graphic.Geometry).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Mar 2011 14:04:10 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2011-03-07T14:04:10Z</dc:date>
    <item>
      <title>Query from mutliple Field</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-from-mutliple-field/m-p/462737#M11911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I Want to query the DATA in different feilds of a layer &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;exmaple &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;feild1; Address = 'F.B.Area' or &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;feild2; Block =&amp;nbsp;&amp;nbsp; 'BLOCK 4' or &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Feild3; Name = 'Waqar'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This Query Structure is in Arcgis server application for Query the Data &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i need code for Query the data using different operation "and', "or" from different feild &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 05:37:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-from-mutliple-field/m-p/462737#M11911</guid>
      <dc:creator>MuhammadWaqar_ul_islam</dc:creator>
      <dc:date>2011-03-03T05:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Query from mutliple Field</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-from-mutliple-field/m-p/462738#M11912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can update the Where property &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.Query~Where.html"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.Query~Where.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It can be any number for condition like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;query.Where = "SUB_REGION = 'Pacific' or STATE_ABBR like 'A%' and POP2007 &amp;lt; 1000000"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can try the query above on this service:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/5"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/5&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 18:04:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-from-mutliple-field/m-p/462738#M11912</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-03-03T18:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Query from mutliple Field</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-from-mutliple-field/m-p/462739#M11913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks jenefer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thats Work &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One more thing to ask &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a textbox for input value and i want to used it in the query below but no result occurs&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;query.Where = "FEILD1 like '%Textbox1.Text%' and FEILD2='TOWN BORDER STATION'"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i have done Serval Method like that&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;no result appers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;query.Wo reshere = string.Format("Field1 = 'Textbox1.Text' and Field2 'Textbox2.Text'");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; q.Where = "FEILD1 = '" &amp;amp; Textbox1.Text.Trim() &amp;amp; "' AND&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; FEILD2 = '" &amp;amp; Textbox2.Text.Trim() &amp;amp; "'"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it gives error on &amp;amp; operator &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i m working on C# &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How textbox values will be used in the query.where&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 09:45:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-from-mutliple-field/m-p/462739#M11913</guid>
      <dc:creator>MuhammadWaqar_ul_islam</dc:creator>
      <dc:date>2011-03-04T09:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Query from mutliple Field</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-from-mutliple-field/m-p/462740#M11914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use string.Format() &lt;/SPAN&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/system.string.format(v=VS.95).aspx"&gt;http://msdn.microsoft.com/en-us/library/system.string.format(v=VS.95).aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;query.Where = string.Format("FEILD1 like '%{0}%' and FEILD2='TOWN BORDER STATION'", Textbox1.Text.Trim());&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 16:15:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-from-mutliple-field/m-p/462740#M11914</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-03-04T16:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Query from mutliple Field</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-from-mutliple-field/m-p/462741#M11915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks jenniferdnery&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;its working &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another thing to ask &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i have selected record from query that appers in DATAGRID &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i want to used FeatureDataGRID instead of DATAGRID (is this&amp;nbsp; possible)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if not &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then how selected&amp;nbsp; DATGRID value&amp;nbsp; zoom to feature (on click event)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;required code C# &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Waqar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 03:39:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-from-mutliple-field/m-p/462741#M11915</guid>
      <dc:creator>MuhammadWaqar_ul_islam</dc:creator>
      <dc:date>2011-03-07T03:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Query from mutliple Field</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-from-mutliple-field/m-p/462742#M11916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you return query results to a GraphicsLayer, you can use this GraphicsLayer to set FeatureDataGrid.GraphicsLayer property. Very similar to this sample except you will be using the GraphicsLayer that contain your query results. &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitFeatureDataGrid"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitFeatureDataGrid&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your DataGrid contain GraphicCollection as its ItemsSource, you can use SelectionChanged event to get the selected row (which is a graphic) and call Map.ZoomTo(graphic.Geometry).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 14:04:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-from-mutliple-field/m-p/462742#M11916</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-03-07T14:04:10Z</dc:date>
    </item>
  </channel>
</rss>

