<?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 Dynamic Workspaces with SQL Server problem in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-workspaces-with-sql-server-problem/m-p/743550#M68779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to follow this tutorial:&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/products/mapping/mapping/smart-mapping-with-dynamic-workspaces/"&gt;https://www.esri.com/arcgis-blog/products/mapping/mapping/smart-mapping-with-dynamic-workspaces/&lt;/A&gt;&amp;nbsp;to join dynamically a table from an SDE to a layer on map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've registered the workspace, giving to the user registered in the sde connection full privileges for the database, and enabled the dynamic layers on the MapService, but when i try to execute the JoinDataSource the layer disappear from the map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried to make the query directly from rest:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://ags2-gis.jakala.com/arcgis/rest/services/97AB3528CA9D4188B2AC29A94ACC737B/VegePoligoni2_Territorio_sede/MapServer/export"&gt;https://&amp;lt;&amp;lt;server-url&amp;gt;&amp;gt;/arcgis/rest/services/&amp;lt;&amp;lt;layer-name&amp;gt;&amp;gt;/MapServer/export?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the following parameter for dynamic layers:&amp;nbsp;&lt;/P&gt;&lt;P&gt;[{"id":13,"name":"Province","source":{"type":"dataLayer","dataSource":{"type":"joinTable","leftTableSource":{"type":"mapLayer","mapLayerId":13},"rightTableSource":{"type":"dataLayer","dataSource":{"type":"table","workspaceId":"TEST","dataSourceName":"DYNAMIC_TEST"}},"leftTableKey":"CPROV_18","rightTableKey":"CPROV","joinType":"esriLeftOuterJoin"}},"minScale":0,"maxScale":0}]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the result is an empty image.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried differend combinations for the right dataSourceName (ex:&amp;nbsp;&lt;SPAN&gt;DYNAMIC_TEST, SDE_TEST.sde.DYNAMIC_TEST) as well for the rightTableKey, but the result is always an empty image.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The javascript code is the following:&lt;BR /&gt;&lt;BR /&gt;var joinDataSource = new JoinDataSource({&lt;BR /&gt; joinType: "left-outer-join",&lt;BR /&gt; leftTableSource: new LayerMapSource({&lt;BR /&gt; type: "mapLayer",&lt;BR /&gt; mapLayerId: 13&lt;BR /&gt; }),&lt;BR /&gt; leftTableKey: "CPROV_18",&lt;BR /&gt; rightTableKey: "CPROV",&lt;BR /&gt; rightTableSource: new LayerDataSource({&lt;BR /&gt; dataSource: new TableDataSource({&lt;BR /&gt; type: "table",&lt;BR /&gt; workspaceId: "TEST",&lt;BR /&gt; dataSourceName: "DYNAMIC_TEST"&lt;BR /&gt; })&lt;BR /&gt; })&lt;BR /&gt; });&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Attached there is the result of the export&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there someone who knows what the problem can be?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jul 2019 08:03:55 GMT</pubDate>
    <dc:creator>JakalaSPA</dc:creator>
    <dc:date>2019-07-03T08:03:55Z</dc:date>
    <item>
      <title>Dynamic Workspaces with SQL Server problem</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-workspaces-with-sql-server-problem/m-p/743550#M68779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to follow this tutorial:&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/products/mapping/mapping/smart-mapping-with-dynamic-workspaces/"&gt;https://www.esri.com/arcgis-blog/products/mapping/mapping/smart-mapping-with-dynamic-workspaces/&lt;/A&gt;&amp;nbsp;to join dynamically a table from an SDE to a layer on map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've registered the workspace, giving to the user registered in the sde connection full privileges for the database, and enabled the dynamic layers on the MapService, but when i try to execute the JoinDataSource the layer disappear from the map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried to make the query directly from rest:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://ags2-gis.jakala.com/arcgis/rest/services/97AB3528CA9D4188B2AC29A94ACC737B/VegePoligoni2_Territorio_sede/MapServer/export"&gt;https://&amp;lt;&amp;lt;server-url&amp;gt;&amp;gt;/arcgis/rest/services/&amp;lt;&amp;lt;layer-name&amp;gt;&amp;gt;/MapServer/export?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the following parameter for dynamic layers:&amp;nbsp;&lt;/P&gt;&lt;P&gt;[{"id":13,"name":"Province","source":{"type":"dataLayer","dataSource":{"type":"joinTable","leftTableSource":{"type":"mapLayer","mapLayerId":13},"rightTableSource":{"type":"dataLayer","dataSource":{"type":"table","workspaceId":"TEST","dataSourceName":"DYNAMIC_TEST"}},"leftTableKey":"CPROV_18","rightTableKey":"CPROV","joinType":"esriLeftOuterJoin"}},"minScale":0,"maxScale":0}]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the result is an empty image.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried differend combinations for the right dataSourceName (ex:&amp;nbsp;&lt;SPAN&gt;DYNAMIC_TEST, SDE_TEST.sde.DYNAMIC_TEST) as well for the rightTableKey, but the result is always an empty image.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The javascript code is the following:&lt;BR /&gt;&lt;BR /&gt;var joinDataSource = new JoinDataSource({&lt;BR /&gt; joinType: "left-outer-join",&lt;BR /&gt; leftTableSource: new LayerMapSource({&lt;BR /&gt; type: "mapLayer",&lt;BR /&gt; mapLayerId: 13&lt;BR /&gt; }),&lt;BR /&gt; leftTableKey: "CPROV_18",&lt;BR /&gt; rightTableKey: "CPROV",&lt;BR /&gt; rightTableSource: new LayerDataSource({&lt;BR /&gt; dataSource: new TableDataSource({&lt;BR /&gt; type: "table",&lt;BR /&gt; workspaceId: "TEST",&lt;BR /&gt; dataSourceName: "DYNAMIC_TEST"&lt;BR /&gt; })&lt;BR /&gt; })&lt;BR /&gt; });&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Attached there is the result of the export&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there someone who knows what the problem can be?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2019 08:03:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-workspaces-with-sql-server-problem/m-p/743550#M68779</guid>
      <dc:creator>JakalaSPA</dc:creator>
      <dc:date>2019-07-03T08:03:55Z</dc:date>
    </item>
  </channel>
</rss>

