<?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 Change display field/expression for the layer in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-display-field-expression-for-the-layer/m-p/1334505#M10502</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am creating an in-memory database and then creating a layer and inserting data into it. Then that layer is being added to the active map.&amp;nbsp; Now I also need to change the display expression for that in-memory layer. For some layers it is a simple expression with combination of multiple field data but for some layers there is a custom logic which will generate a custom display field for the layers.&lt;/P&gt;&lt;P&gt;How can we change the display expression for the layers in this case?&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12882"&gt;@Wolf&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133"&gt;@GKmieliauskas&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/145101"&gt;@CharlesMacleod&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Oct 2023 13:21:08 GMT</pubDate>
    <dc:creator>GISNewbieDev</dc:creator>
    <dc:date>2023-10-03T13:21:08Z</dc:date>
    <item>
      <title>Change display field/expression for the layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-display-field-expression-for-the-layer/m-p/1334505#M10502</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am creating an in-memory database and then creating a layer and inserting data into it. Then that layer is being added to the active map.&amp;nbsp; Now I also need to change the display expression for that in-memory layer. For some layers it is a simple expression with combination of multiple field data but for some layers there is a custom logic which will generate a custom display field for the layers.&lt;/P&gt;&lt;P&gt;How can we change the display expression for the layers in this case?&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12882"&gt;@Wolf&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133"&gt;@GKmieliauskas&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/145101"&gt;@CharlesMacleod&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 13:21:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-display-field-expression-for-the-layer/m-p/1334505#M10502</guid>
      <dc:creator>GISNewbieDev</dc:creator>
      <dc:date>2023-10-03T13:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Change display field/expression for the layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-display-field-expression-for-the-layer/m-p/1335106#M10509</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Look at the ArcPro SDK community&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Map-Authoring/QueryBuilderControl" target="_self"&gt;QueryBuilderControl sample.&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;          // update mapMember definition query
          QueuedTask.Run(() =&amp;gt;
          {
            if (fLayer != null)
              fLayer.SetDefinitionQuery(newExpression);
          });&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 04 Oct 2023 18:48:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-display-field-expression-for-the-layer/m-p/1335106#M10509</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2023-10-04T18:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Change display field/expression for the layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-display-field-expression-for-the-layer/m-p/1337120#M10533</link>
      <description>&lt;P&gt;Instead of creating the data on the fly for your memory GDB feature classes, you could have additional fields that hold the result of your custom logic.&amp;nbsp; This way you can code your custom logic in .Net and use the custom field for display or filtering.&amp;nbsp; &amp;nbsp;Otherwise, you have to use different definition queries (and Map layers) for each 'custom logic' variant (as mentioned above by&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133"&gt;@GKmieliauskas&lt;/a&gt;&amp;nbsp;)&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 21:15:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-display-field-expression-for-the-layer/m-p/1337120#M10533</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2023-10-11T21:15:45Z</dc:date>
    </item>
  </channel>
</rss>

