<?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: JS API JoinDataSource - JoinType in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-joindatasource-jointype/m-p/634858#M59296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response. My implementation is similar to the one that you have shared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got it all working except for the issue in using the JoinType which I choose as &lt;SPAN class="pln" style="color: #595959;"&gt;dataSource&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt;joinType &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #dd1144;"&gt;"left-inner-join"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will clarify it with an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #303030;"&gt;Let's say my feature layer ( A ) has 100 records and table (B) has 5 records. So in this case I was assuming to get the joined result to return only 5 features instead I got 100 records. So as I work around I added a definition query to exclude where rightTableJoinKey is null.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #303030;"&gt;To me it appears to be a bug.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #303030;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #303030;"&gt;Mahtab&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jun 2015 15:21:10 GMT</pubDate>
    <dc:creator>MahtabAlam1</dc:creator>
    <dc:date>2015-06-17T15:21:10Z</dc:date>
    <item>
      <title>JS API JoinDataSource - JoinType</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-joindatasource-jointype/m-p/634856#M59294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on a JavaScrip app using &lt;A href="https://developers.arcgis.com/javascript/jsapi/joindatasource.html" title="https://developers.arcgis.com/javascript/jsapi/joindatasource.html"&gt;https://developers.arcgis.com/javascript/jsapi/joindatasource.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The purpose of this app is to show the polygon features from Table A ( it's a map service layer ) that matches records in Table B ( non spatial table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The source for this map service and table are both in a FGDB which is also a dynamic workspace. I am able to join the results and see the features in my map but it is returning all the features in the join from table A. Following is a sample request:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.../MapServer/export?dynamicLayers=[{"id":0,"source":{"type":"dataLayer","dataSource":{"type":"joinTable","leftTableSource":{"type":"mapLayer","mapLayerId":0},"rightTableSource":{"type":"dataLayer","dataSource":{"type":"table","workspaceId":"TestWorkSpace","dataSourceName":"_test_bc512580_3dbf_11e4_813c_005056802617"}},"leftTableKey":"ID","rightTableKey":"ID","joinType":"esriLeftInnerJoin"}},"drawingInfo":{"renderer":{"type":"simple","symbol":{"color":[128,0,128,102],"outline":{"color":[128,0,128,255],"width":1.5,"type":"esriSLS","style":"esriSLSSolid"},"type":"esriSFS","style":"esriSFSNull"}}},"minScale":0,"maxScale":0}]&amp;amp;dpi=96&amp;amp;transparent=true&amp;amp;format=png8&amp;amp;layers=show:0&amp;amp;bbox=-10181538.954185508,4115378.1803393513,-9790181.369365595,4279259.16898269&amp;amp;bboxSR=102100&amp;amp;imageSR=102100&amp;amp;size=1280,536&amp;amp;f=image&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using left-inner-join as JoinType which has been translated to esriLeftInnerJoin. I was assuming that it should return only the matching records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I doing something wrong or is it a bug ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 18:28:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-joindatasource-jointype/m-p/634856#M59294</guid>
      <dc:creator>MahtabAlam1</dc:creator>
      <dc:date>2014-09-19T18:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: JS API JoinDataSource - JoinType</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-joindatasource-jointype/m-p/634857#M59295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahtab,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder have you converted JoinDataSource into a layerDataSource?&lt;/P&gt;&lt;P&gt;And use query function to query the layerDataSource that add a &lt;/P&gt;&lt;H4 class="syntaxdetailheadername" style="margin-top: 0.2em; margin-bottom: 0.4em; font-family: 'Avenir LT W01 65 Medium', Arial, Helvetica, sans-serif; font-weight: 500; font-size: 1.0625em; color: #4d4d4d;"&gt;&amp;lt;&lt;CODE style="font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 0.9375em; background: transparent;"&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/layersource-amd.html" style="color: #00629b;"&gt;LayerSource&lt;/A&gt;​&lt;/CODE&gt;&amp;gt; source to FeatureLayer? Please check this API reference:&lt;/H4&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/featurelayer.html#source" title="https://developers.arcgis.com/javascript/jsapi/featurelayer.html#source"&gt;FeatureLayer | API Reference | ArcGIS API for JavaScript&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can define the query.where as well as query.outFields to set the rule of the return data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, this is a good answer that you should check:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/message/522399"&gt;Re: Using join data source as source for feature layer&lt;/A&gt;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 17:56:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-joindatasource-jointype/m-p/634857#M59295</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2015-06-01T17:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: JS API JoinDataSource - JoinType</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-joindatasource-jointype/m-p/634858#M59296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response. My implementation is similar to the one that you have shared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got it all working except for the issue in using the JoinType which I choose as &lt;SPAN class="pln" style="color: #595959;"&gt;dataSource&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt;joinType &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #dd1144;"&gt;"left-inner-join"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will clarify it with an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #303030;"&gt;Let's say my feature layer ( A ) has 100 records and table (B) has 5 records. So in this case I was assuming to get the joined result to return only 5 features instead I got 100 records. So as I work around I added a definition query to exclude where rightTableJoinKey is null.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #303030;"&gt;To me it appears to be a bug.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #303030;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #303030;"&gt;Mahtab&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 15:21:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-joindatasource-jointype/m-p/634858#M59296</guid>
      <dc:creator>MahtabAlam1</dc:creator>
      <dc:date>2015-06-17T15:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: JS API JoinDataSource - JoinType</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-joindatasource-jointype/m-p/634859#M59297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you find any other solutions ?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2019 13:57:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-joindatasource-jointype/m-p/634859#M59297</guid>
      <dc:creator>SylvainKerdreux2</dc:creator>
      <dc:date>2019-01-22T13:57:27Z</dc:date>
    </item>
  </channel>
</rss>

