<?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 MapLayer.DisplayExpression [Help] in ArcGIS for Windows Mobile Questions</title>
    <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/maplayer-displayexpression-help/m-p/114556#M542</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I am trying to use MapLayer.DisplayExpression and it doesn't seem to be working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
ERSI.ArcGIS.Mobile.WPF Map. mMap = MobileApplication.Current.Map;
MapLayer mapLayer1 = mMap.Layers["Dose Rates"];

string currentEvent = "Event7";
QueryFilter pQueryFilter = new QueryFilter();
pQueryFilter.WhereClause = "EVENT_NAME = " + "'" + currentEvent + "'"
mapLayer1.DisplayExpression = pQueryFilter.WhereClause;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kindly advise on how to implement this properly. The code does not work, I still see all the points on the map, when I should only see 2 points.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Akhil P.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Apr 2011 18:53:47 GMT</pubDate>
    <dc:creator>AkhilParujanwala</dc:creator>
    <dc:date>2011-04-18T18:53:47Z</dc:date>
    <item>
      <title>MapLayer.DisplayExpression [Help]</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/maplayer-displayexpression-help/m-p/114556#M542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I am trying to use MapLayer.DisplayExpression and it doesn't seem to be working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
ERSI.ArcGIS.Mobile.WPF Map. mMap = MobileApplication.Current.Map;
MapLayer mapLayer1 = mMap.Layers["Dose Rates"];

string currentEvent = "Event7";
QueryFilter pQueryFilter = new QueryFilter();
pQueryFilter.WhereClause = "EVENT_NAME = " + "'" + currentEvent + "'"
mapLayer1.DisplayExpression = pQueryFilter.WhereClause;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kindly advise on how to implement this properly. The code does not work, I still see all the points on the map, when I should only see 2 points.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Akhil P.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 18:53:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/maplayer-displayexpression-help/m-p/114556#M542</guid>
      <dc:creator>AkhilParujanwala</dc:creator>
      <dc:date>2011-04-18T18:53:47Z</dc:date>
    </item>
  </channel>
</rss>

