<?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: Joining Database with Map Layer in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/joining-database-with-map-layer/m-p/480528#M2425</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;... It occurred to me that there's probably another more programmatic way to achieve this too although your table may well need to be registered with the geodatabase for this to work. You could investigate using the DynamicLayer capability of map services. This capability, added to ArcGIS Server at 10.1 and the RuntimeLocalServer at 1.0 allow the client API to make per request modifications to the entire contents of a map service - by that I mean change the rendering of layers, redefine the order of layers, define entirely new layers from registered workspaces and assign rendering. For info on the REST spec for this see: &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/rest/apiref/index.html?dataSource.html#join" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/en/help/rest/apiref/index.html?dataSource.html#join&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a developer working with the RuntimeLocalServer, when you define a new LocalMapService you can set the properties to enable the dynamic layers capability and to register workspaces with the RuntimeLocalServer. You then work with the LayerDrawingOptions property (to define rendering) and the DynamicLayerInfos property (to define datasources) on the ArcGISLocalDynamicMapServiceLayer. One of the datasource types is a JoinDataSource to correspond with the REST spec for the join table data source.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;URLs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~LayerDrawingOptions.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~LayerDrawingOptions.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~DynamicLayerInfos.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~DynamicLayerInfos.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.JoinDataSource.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.JoinDataSource.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's incomplete - but here's some sample code for setting up the two table datasources and the join:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
LayerSource leftTableLayerSource = new LayerDataSource
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; DataSource = new TableDataSource 
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataSourceName = leftTable,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WorkspaceID = workspaceInfoId, 
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
};
LayerSource rightTableLayerSource = new LayerDataSource
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; DataSource = new TableDataSource
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataSourceName = rightTable,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WorkspaceID = workspaceInfoId,
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
};
dataSource = new JoinDataSource 
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; JoinType = JoinType.LeftInnerJoin,
&amp;nbsp;&amp;nbsp;&amp;nbsp; LeftTableSource = leftTableLayerSource,
&amp;nbsp;&amp;nbsp;&amp;nbsp; LeftTableKey = leftTableKey,
&amp;nbsp;&amp;nbsp;&amp;nbsp; RightTableSource = rightTableLayerSource,
&amp;nbsp;&amp;nbsp;&amp;nbsp; RightTableKey = rightTableKey
};
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 21:12:20 GMT</pubDate>
    <dc:creator>MichaelBranscomb</dc:creator>
    <dc:date>2021-12-11T21:12:20Z</dc:date>
    <item>
      <title>Joining Database with Map Layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/joining-database-with-map-layer/m-p/480521#M2418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a database table (MSSQL) that contains additional information about my layer's features. I want to be able to show this information as part of the layer's map tip. The layer contains an ID attribute that links each feature to a record in the table. Can someone direct me towards achieving this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS. I assume map tips are the only way to display information in the map about features, since I haven't found any info about traditional labeling anywhere. I would prefer labeling within the features, so if anyone has any information about that, I'd appreciate it as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 14:53:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/joining-database-with-map-layer/m-p/480521#M2418</guid>
      <dc:creator>GeorgeFaraj</dc:creator>
      <dc:date>2013-01-07T14:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Database with Map Layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/joining-database-with-map-layer/m-p/480522#M2419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To label graphics/features you can use the TextSymbol. If your data is point geometry this is straightforward, but if your data comprises lines or polygons you might want to use the GeometryService task with either an online or local geometry server and execute the LabelPoints operation - &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.GeometryService~LabelPointsAsync(IList%7BGraphic%7D).html"&gt;http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.GeometryService~LabelPointsAsync(IList%7BGraphic%7D).html&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's an example of using the TextSymbol in the WPF Sample Application and in the online SL SDK: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AddGraphics"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AddGraphics&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 08:14:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/joining-database-with-map-layer/m-p/480522#M2419</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2013-01-08T08:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Database with Map Layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/joining-database-with-map-layer/m-p/480523#M2420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I will look into that for labeling, thanks. Any clues about the joining?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 14:10:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/joining-database-with-map-layer/m-p/480523#M2420</guid>
      <dc:creator>GeorgeFaraj</dc:creator>
      <dc:date>2013-01-08T14:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Database with Map Layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/joining-database-with-map-layer/m-p/480524#M2421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could consider wrapping your table and the geometries in a class that exposes IEnumerable&amp;lt;Graphic&amp;gt; and then use that to set the GraphicsSource property of a GraphicsLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are a couple of SL samples online which demonstrate this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#UsingGraphicsSource"&gt;http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#UsingGraphicsSource&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#UsingPointDataSource"&gt;http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#UsingPointDataSource&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 14:20:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/joining-database-with-map-layer/m-p/480524#M2421</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2013-01-08T14:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Database with Map Layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/joining-database-with-map-layer/m-p/480525#M2422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried the LabelPoints for labeling, and I have some questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) My feature layer is set to OnDemand mode because it's quite large, how can I make the labels show up for features on demand?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) The labeling placement seems to be very simple. Is there any way to make label placement smart like in ArcMap / ArcObjects (horizontal, straight, or straight then horizontal)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Is there any way to have the labels show only when they fit inside the polygon? It looks really ugly when I zoom out and hundreds of labels overlap each other and are not even legible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;George&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 20:39:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/joining-database-with-map-layer/m-p/480525#M2422</guid>
      <dc:creator>GeorgeFaraj</dc:creator>
      <dc:date>2013-01-10T20:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Database with Map Layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/joining-database-with-map-layer/m-p/480526#M2423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 14:29:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/joining-database-with-map-layer/m-p/480526#M2423</guid>
      <dc:creator>GeorgeFaraj</dc:creator>
      <dc:date>2013-01-14T14:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Database with Map Layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/joining-database-with-map-layer/m-p/480527#M2424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Improved labelling at the API level for Graphics/FeatureLayers is currently under investigation for a future release. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the mean time, the only way to get advanced control over labelling would be to have the labels of the features rendered as a dynamic map service by the RuntimeLocalServer - i.e. the labelling is defined in ArcMap then shared as a Map Package. There is a more to set up, but the additional effort is mostly in the configuration rather than the code. This could be achieved by adding the feature class containing the spatial features to a map document and adding the table from the database to the map document then performing the join between the two and labelling based on one of the fields from the joined table. You could choose no symbology for the layer in ArcMap and just enable labelling if you're rendering the features from the feature layer within your actual application. When packaging, you'll need to use the GP tool, "Package Map" and make sure that the option to "Support the ArcGIS Runtime" is checked and the option to "Include Enterprise geodatabase data..." is unchecked. The effect of this is that the Map Package would contain a File GDB with your spatial features whilst the joined table would remain in the database. Admittedly it gets more complicated if you are going to be editing the features as well. In this case, you can create an ArcGISLocalFeatureLayer on to that File GDB to perform edits. If your edits are elsewhere then you may need to sync them with this labeling database, or vary the above setup to cater for your scenario.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another variation on this is to use a dynamic map service (server / local) for rendering all the features and labelling and then add the same content as a selection-only feature layer for editing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope that's given you some more options, please don't hesitate to get in touch if you need any more information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 15:17:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/joining-database-with-map-layer/m-p/480527#M2424</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2013-01-14T15:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Database with Map Layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/joining-database-with-map-layer/m-p/480528#M2425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;... It occurred to me that there's probably another more programmatic way to achieve this too although your table may well need to be registered with the geodatabase for this to work. You could investigate using the DynamicLayer capability of map services. This capability, added to ArcGIS Server at 10.1 and the RuntimeLocalServer at 1.0 allow the client API to make per request modifications to the entire contents of a map service - by that I mean change the rendering of layers, redefine the order of layers, define entirely new layers from registered workspaces and assign rendering. For info on the REST spec for this see: &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/rest/apiref/index.html?dataSource.html#join" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/en/help/rest/apiref/index.html?dataSource.html#join&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a developer working with the RuntimeLocalServer, when you define a new LocalMapService you can set the properties to enable the dynamic layers capability and to register workspaces with the RuntimeLocalServer. You then work with the LayerDrawingOptions property (to define rendering) and the DynamicLayerInfos property (to define datasources) on the ArcGISLocalDynamicMapServiceLayer. One of the datasource types is a JoinDataSource to correspond with the REST spec for the join table data source.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;URLs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~LayerDrawingOptions.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~LayerDrawingOptions.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~DynamicLayerInfos.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~DynamicLayerInfos.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.JoinDataSource.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.JoinDataSource.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's incomplete - but here's some sample code for setting up the two table datasources and the join:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
LayerSource leftTableLayerSource = new LayerDataSource
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; DataSource = new TableDataSource 
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataSourceName = leftTable,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WorkspaceID = workspaceInfoId, 
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
};
LayerSource rightTableLayerSource = new LayerDataSource
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; DataSource = new TableDataSource
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataSourceName = rightTable,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WorkspaceID = workspaceInfoId,
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
};
dataSource = new JoinDataSource 
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; JoinType = JoinType.LeftInnerJoin,
&amp;nbsp;&amp;nbsp;&amp;nbsp; LeftTableSource = leftTableLayerSource,
&amp;nbsp;&amp;nbsp;&amp;nbsp; LeftTableKey = leftTableKey,
&amp;nbsp;&amp;nbsp;&amp;nbsp; RightTableSource = rightTableLayerSource,
&amp;nbsp;&amp;nbsp;&amp;nbsp; RightTableKey = rightTableKey
};
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:12:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/joining-database-with-map-layer/m-p/480528#M2425</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2021-12-11T21:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Database with Map Layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/joining-database-with-map-layer/m-p/480529#M2426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The way we want to support labeling in our app is on-the-fly, meaning that the user can define what fields are displayed and other options, so I don't think the approach of having the labels be defined in ArcMap will work for us. We don't want the user switching between our app and ArcMap, since that will be a pain for them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By the way, I tried handling the Updated event on the layer, to label features on demand, but when I do a Query inside that event, I'm still only getting the first 1000. The features that are newly visible are not returned, and thus labels are not placed on them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, I've been looking for a sample of using JoinDataSource and haven't been able to find one. Do you have one?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;George&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: I posted this before I saw your second response. I will look at that further, thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 16:03:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/joining-database-with-map-layer/m-p/480529#M2426</guid>
      <dc:creator>GeorgeFaraj</dc:creator>
      <dc:date>2013-01-14T16:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Database with Map Layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/joining-database-with-map-layer/m-p/480530#M2427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Mike,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could I do the Join on a Feature Layer, or only the dynamic layers have this capability? I actually need this for labeling features, so how would this work?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 19:27:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/joining-database-with-map-layer/m-p/480530#M2427</guid>
      <dc:creator>GeorgeFaraj</dc:creator>
      <dc:date>2013-01-14T19:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Database with Map Layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/joining-database-with-map-layer/m-p/480531#M2428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The DynamicLayer capability is only supported on the MapServer, but in order to introduce more advanced labelling behaviour, you will need the MapServer to be rendering at least the labels, if not the entire layer (e.g. if used in conjunction with a selection only feature layer). There's only one property to enable labelling when working with the LayerDrawingOptions class (&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.LayerDrawingOptions~ShowLabels.html"&gt;http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.LayerDrawingOptions~ShowLabels.html&lt;/A&gt;&lt;SPAN&gt;), but these labels should exhibit better rendering behavior than just using TextSymbols via the API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As i said - we're aware of the limited labelling capabilities for graphics in the map and are working on improving this functionality for a future release.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 07:47:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/joining-database-with-map-layer/m-p/480531#M2428</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2013-01-15T07:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Database with Map Layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/joining-database-with-map-layer/m-p/480532#M2429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Mike,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are thinking of using LabelPoints/TextSymbols and make them look better manually, because setting up the labels in ArcMap is not a viable option for us right now. That said, is there a way to set a JoinDataSource on a FeatureLayer, so that I can use the extra fields from the database in the TextSymbol?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, how would I register a workspace for my database?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 12:27:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/joining-database-with-map-layer/m-p/480532#M2429</guid>
      <dc:creator>GeorgeFaraj</dc:creator>
      <dc:date>2013-01-15T12:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Database with Map Layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/joining-database-with-map-layer/m-p/480533#M2430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;We are thinking of using LabelPoints/TextSymbols and make them look better manually, because setting up the labels in ArcMap is not a viable option for us right now. That said, is there a way to set a JoinDataSource on a FeatureLayer, so that I can use the extra fields from the database in the TextSymbol?&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The DynamicLayers capability is unfortunately not available on the FeatureServer and therefore on the FeatureLayer class, it's only available on the MapServer and the ArcGIS[Local]DynamicMapServiceLayer class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;Also, how would I register a workspace for my database?&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You register workspaces with the LocalMapService prior to starting it - however looking at the documentation again the database needs to be a geodatabase. There is a sample on ArcGIS.com (&lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=953a530ada30477d95cc69e788268bc9"&gt;http://www.arcgis.com/home/item.html?id=953a530ada30477d95cc69e788268bc9&lt;/A&gt;&lt;SPAN&gt;) which demonstrates using the DynamicLayers capability for adding folder workspaces (shapefile/raster) and redefining the layers within a local map service, although it does not demonstrate table joins. This sample is included with the SDK Sample Application in the next release (10.1.1).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 13:37:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/joining-database-with-map-layer/m-p/480533#M2430</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2013-01-15T13:37:19Z</dc:date>
    </item>
  </channel>
</rss>

