<?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 FileGDB with Plugin Data Source in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/joining-filegdb-with-plugin-data-source/m-p/1612191#M12887</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/213506"&gt;@KrisCulin&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Using the &lt;A title="SimplePointPluginTest" href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Plugin/SimplePointPluginTest" target="_blank" rel="noopener"&gt;SimplePointPluginTest&lt;/A&gt; sample (and associated&amp;nbsp;SimplePointPlugin solution), I was able to successfully join a File Geodatabase to the Plugin data source both as a source and as a target without using any code, just the Pro UI.&lt;/P&gt;</description>
    <pubDate>Tue, 06 May 2025 20:32:32 GMT</pubDate>
    <dc:creator>SelimDissem</dc:creator>
    <dc:date>2025-05-06T20:32:32Z</dc:date>
    <item>
      <title>Joining FileGDB with Plugin Data Source</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/joining-filegdb-with-plugin-data-source/m-p/1607801#M12844</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;One of the features for our configuration with ArcGIS Pro is the ability to create joins between our FileGDB (where our FeatureClasses are located) to our custom plugin data source.&amp;nbsp; This allows our users to setup symbology, for example.&lt;/P&gt;&lt;P&gt;One of our users is also trying to setup labeling.&amp;nbsp; In the Label Properties for a feature layer, you can set a SQL statement to filter the IDs, so it only shows labels for the returned IDs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the SQL statement is returning all IDs and therefore all features on the feature layer are labeled.&lt;/P&gt;&lt;P&gt;I can setup a join, through the UI, between a FileGDB and a Shapefile.&amp;nbsp; Or a Shapefile and FileGDB.&amp;nbsp; But setting up a join between a FileGDB and a plugin data source, without using code, doesn't appear possible.&amp;nbsp; I haven't found a way to add in a plugin data source.&lt;/P&gt;&lt;P&gt;Here is the code I am using to create the join.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;        public static CIMRelQueryTableDataConnection CreateTableJoinDataConnection(string gdbFilePath, string featureDataSet, string sourceTableName, string destinationTable)
        {

            var identifier = GISApplicationManager.GetInstance().PluginDatasourceName;
            var dbase = Directory.GetCurrentDirectory();


            CIMRelQueryTableDataConnection retVal = new CIMRelQueryTableDataConnection
            {
                PrimaryKey = FeatureFieldNames.ElementId,
                ForeignKey = FeatureFieldNames.ElementId,
                Cardinality = esriRelCardinality.esriRelCardinalityOneToOne,
                Name = "GPAddJoin",
                JoinType = esriJoinType.esriLeftInnerJoin,
                JoinForward = false,
                SourceTable = GetTableDataConnection(gdbFilePath, sourceTableName, featureDataSet)
            };


            CIMStandardDataConnection destination = new CIMStandardDataConnection
            {
                WorkspaceConnectionString = $"IDENTIFIER={identifier};DATABASE={dbase}",
                WorkspaceFactory = WorkspaceFactory.Custom,
                CustomWorkspaceFactoryCLSID = "{6AB30075-A4A7-4CEE-A188-20DBB70E74BE}",
                Dataset = destinationTable,
                DatasetType = esriDatasetType.esriDTTable
            };

            retVal.DestinationTable = destination;
            return retVal;
        }

        public static CIMFeatureDatasetDataConnection GetTableDataConnection(string gdbFilePath, string sourceTableName, string featureDataSet)
        {
            return new CIMFeatureDatasetDataConnection
            {
                FeatureDataset = featureDataSet,
                WorkspaceConnectionString = $"DATABASE={gdbFilePath}",
                WorkspaceFactory = WorkspaceFactory.FileGDB,
                Dataset = sourceTableName,
                DatasetType = esriDatasetType.esriDTFeatureClass
            };
        }&lt;/LI-CODE&gt;&lt;P&gt;Am I doing something wrong setting up the join?&amp;nbsp; As far as I can tell, and from looking at samples/documentation, the properties are correct.&lt;/P&gt;&lt;P&gt;I am pretty sure the issue is at this level, not where it is being called.&lt;/P&gt;&lt;P&gt;TIA.&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2025 19:27:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/joining-filegdb-with-plugin-data-source/m-p/1607801#M12844</guid>
      <dc:creator>KrisCulin</dc:creator>
      <dc:date>2025-04-21T19:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Joining FileGDB with Plugin Data Source</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/joining-filegdb-with-plugin-data-source/m-p/1612191#M12887</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/213506"&gt;@KrisCulin&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Using the &lt;A title="SimplePointPluginTest" href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Plugin/SimplePointPluginTest" target="_blank" rel="noopener"&gt;SimplePointPluginTest&lt;/A&gt; sample (and associated&amp;nbsp;SimplePointPlugin solution), I was able to successfully join a File Geodatabase to the Plugin data source both as a source and as a target without using any code, just the Pro UI.&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 20:32:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/joining-filegdb-with-plugin-data-source/m-p/1612191#M12887</guid>
      <dc:creator>SelimDissem</dc:creator>
      <dc:date>2025-05-06T20:32:32Z</dc:date>
    </item>
  </channel>
</rss>

