<?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: Relationship Query �?? Legacy to AMD in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relationship-query-legacy-to-amd/m-p/328605#M30361</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;please disregard that screenshot and the associated suggestion.&amp;nbsp; i was pointing at an outdated version of your app from several days ago.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Oct 2013 21:35:04 GMT</pubDate>
    <dc:creator>JohnGravois</dc:creator>
    <dc:date>2013-10-24T21:35:04Z</dc:date>
    <item>
      <title>Relationship Query ??? Legacy to AMD</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relationship-query-legacy-to-amd/m-p/328596#M30352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to use a relationship query in my application. About 5 months ago I had never used HTML, CSS or JavaScript, so I am very dependent on the provided samples. The only provided AMD sample has a lot of additional stuff and gets complicated quickly for me, and therefore I have tackled a legacy sample ??? I even get it to work. Translating the script into AMD is my next step, but it turns out to be harder than expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OK, so I have reduced my 600-line code to about 200 lines. Once I get that working I will add the previous stuff again. I am attaching two scripts, the first one (QueryRelatedWORKING) is in legacy mode and it is able to correctly query my table (click on a parcel ??? display a table). If I had a one-to-one translation of that script into AMD I would be more than happy. The second one (QueryRelatedTRANSLATE) is my attempt to translate into AMD. Viewing both codes next to each other is perhaps the easiest way to detect problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I added //OK to lines in the original script that I am pretty sure I translated correctly. If I was unsure, ran into issues, or have questions I left a comment saying so.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My biggest issue (and maybe solution to a lot of it) is that I am not sure where to import things in the beginning statements before you start coding. What I mean is :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;require(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;["esri/map",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"esri/a",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"esri/b",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"esri/c",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;function(Map, a, b, c){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var map = new Map&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var ??? = new a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var ??? = new b&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;etc. etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The way it works, I read, is that you have to mention things in the correct order. Which is fine in a simple application but once it gets complicated that becomes impossible for a beginner, especially when dojo is thrown into that (which I am not familiar with). For example, what happens if I use things twice? And where do I put the dojo stuff? Can I mix dojo, dijit, and dojox? Looking at samples I???d say I need to put the esri stuff first and then the dojo stuff, but ordering within dojo becomes complex quite fast.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, I am a &lt;/SPAN&gt;&lt;STRONG&gt;beginner &lt;/STRONG&gt;&lt;SPAN&gt;so please point out even the most obvious mistakes. Any advice and correction is greatly appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS: I???d be happy to post both scripts in here as well, but if I remember correctly from what I read a while ago one should not post long codes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 23:47:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relationship-query-legacy-to-amd/m-p/328596#M30352</guid>
      <dc:creator>NumaGremling</dc:creator>
      <dc:date>2013-10-17T23:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship Query �?? Legacy to AMD</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relationship-query-legacy-to-amd/m-p/328597#M30353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;the AMD module for Query is actually "esri/tasks/query", not "esri/tasks/Query" as per doc &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jsapi/query-amd.html" rel="nofollow noopener noreferrer" target="_blank"&gt;here&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;a lack of calling dojo.ready() in your AMD version is definitely not a problem, check out &lt;/SPAN&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2013/10/14/the-abcs-of-amd/" rel="nofollow noopener noreferrer" target="_blank"&gt;this blog&lt;/A&gt;&lt;SPAN&gt; for more info on translating between the two patterns..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when using on event style instead of dojo.connect, event names like "onSelectionComplete" become "selection-complete", also, when naming the function which will be called when the event is fired, don't use the '()'.&amp;nbsp; check out &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jshelp/inside_events.html" rel="nofollow noopener noreferrer" target="_blank"&gt;this article&lt;/A&gt;&lt;SPAN&gt; for more info.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ie:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;mainMap.on("onClick", findParcel());
//should be
mainMap.on("click", findParcel);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you did just fine translating dojo.map() to array.map() &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;those were all my changes and the grid was working, hard to be positive its totally done though, because i couldn't hit your own services.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:34:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relationship-query-legacy-to-amd/m-p/328597#M30353</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2021-12-11T15:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship Query �?? Legacy to AMD</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relationship-query-legacy-to-amd/m-p/328598#M30354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you so much for your incredible help. You clarified a lot for me and I have a much better idea how to tackle problems like these now. I have been able to solve a few things that I have been struggling with for weeks based upon your answers! I am still not able to see my relationship table when clicking on the parcel, but anything else works fine now. I hope that I can figure that out soon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just to make sure the code below is the correct approach. The way I understand it is that everything in require and in the function need to be in the &lt;/SPAN&gt;&lt;STRONG&gt;exact &lt;/STRONG&gt;&lt;SPAN&gt;same order. Any ordering after that does not matter (unless it would interfere with the code�??s logic, of course)? For example, I could define and use a variable for Extent before defining a variable for Query, right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[HTML]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; require(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; ["esri/map",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "esri/layers/ImageParameters",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "esri/layers/ArcGISDynamicMapServiceLayer",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "esri/symbols/SimpleMarkerSymbol",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "esri/layers/FeatureLayer",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "esri/InfoTemplate",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "esri/tasks/RelationshipQuery",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "esri/tasks/query",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "esri/geometry/Extent",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/toolbars/draw",&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "dijit/layout/BorderContainer",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "dijit/layout/ContentPane",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "dojox/grid/DataGrid",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "dojo/data/ItemFileReadStore",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/on",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "dojo/_base/Color",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "dojo/_base/array",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "dojo/dom",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "dojo/domReady!"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; ],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; function(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Map,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; ImageParameters,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; ArcGISDynamicMapServiceLayer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; SimpleMarkerSymbol,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; FeatureLayer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; InfoTemplate,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; RelationshipQuery, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Query,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Extent,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Draw,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; BorderContainer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; ContentPane,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; DataGrid,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; ItemFileReadStore,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; on,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Color,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; array,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; dom) {&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/HTML]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Oct 2013 22:07:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relationship-query-legacy-to-amd/m-p/328598#M30354</guid>
      <dc:creator>NumaGremling</dc:creator>
      <dc:date>2013-10-19T22:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship Query �?? Legacy to AMD</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relationship-query-legacy-to-amd/m-p/328599#M30355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you're correct that the order of the modules loaded and argument aliases that refer to those modules need to match exactly.&amp;nbsp; since the callback isn't actually triggered until each and every module has been retrieved successfully, this means that you can declare variables and instantiate objects using the argument aliases afterward in any order you want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;glad to hear the information i posted previously was helpful! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 15:04:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relationship-query-legacy-to-amd/m-p/328599#M30355</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-10-21T15:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship Query �?? Legacy to AMD</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relationship-query-legacy-to-amd/m-p/328600#M30356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Awesome! Knowing that for sure makes looking at sample scripts much easier for me. Thank you so much again for all your great help. More questions soon!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 18:30:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relationship-query-legacy-to-amd/m-p/328600#M30356</guid>
      <dc:creator>NumaGremling</dc:creator>
      <dc:date>2013-10-21T18:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship Query �?? Legacy to AMD</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relationship-query-legacy-to-amd/m-p/328601#M30357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got some help this morning from someone who knows how to debug correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We found out that lines like these in Legacy:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;relatedTopsQuery.objectIds = [features[0].attributes.OBJECTID];&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;become:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;relatedTopsQuery.objectIds = [features.features[0].attributes.OBJECTID];&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;in AMD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now it is definitely calling my relationship correctly. However, I am still struggling with displaying the results in the table. I would assume that the issues are linked to the grid that is defined in line 142 (I have attached an updated script).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, I translated &lt;/SPAN&gt;&lt;STRONG&gt;dojox.grid.DataGrid&lt;/STRONG&gt;&lt;SPAN&gt; to &lt;/SPAN&gt;&lt;STRONG&gt;dojox/grid/DataGrid&lt;/STRONG&gt;&lt;SPAN&gt; but reading up the documentation about how grids work it tells me that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This document covers the dojox/grid/DataGrid. Beginning with Dojo 1.7, you should use dgrid or gridx, next-generation grid components that take full advantage of modern browsers and object stores.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A href="http://dojotoolkit.org/reference-guide/1.9/dojox/grid/DataGrid.html#dojox-grid-datagrid"&gt;See here.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is that perhaps the root of the problem? And how would I change that? I have been searching for a while but Dojo is not the easiest to get into as a beginner.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also just realized that sometimes dojo items are mentioned in the require statement &lt;/SPAN&gt;&lt;STRONG&gt;and &lt;/STRONG&gt;&lt;SPAN&gt;in the function, and sometimes not. What is the difference? For example, after looking at different samples (including the Dojo website) I have commented out BorderContainer, ContentPane, and DataGrid, but looking at my JavaScript API Training now I realize that they are mentioned in both places.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 21:25:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relationship-query-legacy-to-amd/m-p/328601#M30357</guid>
      <dc:creator>NumaGremling</dc:creator>
      <dc:date>2013-10-22T21:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship Query �?? Legacy to AMD</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relationship-query-legacy-to-amd/m-p/328602#M30358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;even though Dojo doc recommends you upgrade, for the time being, it is still safe to use "dojox/grid/DataGrid".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with regard to your second question, there's no harm in writing out a corresponding argument alias for every individual module, but its only really necessary if you plan on leveraging it at least once from within your JavaScript code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;since BorderContainer, Content Pane and other similar modules are typically only referenced from HTML (using their new slashes instead of dots), we can safely omit their argument aliases in our require callback as long as we make sure to load them after all modules that actually need one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to keep things straight i like to include a space betweeen the modules that have an argument alias and those that omit one in the list of loaded modules , which you are already doing in your own TRANSLATE sample. &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
require([
&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri.Map",
&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/layers/ArcGISDynamicMapServiceLayer",

&amp;nbsp;&amp;nbsp;&amp;nbsp; "dijit/layout/BorderContainer"&amp;nbsp; //no argument alias required
],...&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:34:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relationship-query-legacy-to-amd/m-p/328602#M30358</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2021-12-11T15:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship Query �?? Legacy to AMD</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relationship-query-legacy-to-amd/m-p/328603#M30359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you so much again, that makes a lot of sense, and I'm slowly understanding how Dojo works. I added a tab container programmatically last night and I see now why it mattered that I mentioned the elements initially.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My friend was helping me debug my script and we found out that it stops running right after this statement:&lt;/SPAN&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; //Create data store and bind to grid.
&amp;nbsp;&amp;nbsp;&amp;nbsp; var grid;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; store = new ItemFileReadStore({ data:data });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; grid.setStore(store);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; grid.setQuery({ OBJECTID: '*' });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } 
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The entire script is still the same as it was in the last attachment I uploaded. Do you see anything wrong around there? The syntax is still confusing to me so it is hard to troubleshoot.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:34:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relationship-query-legacy-to-amd/m-p/328603#M30359</guid>
      <dc:creator>NumaGremling</dc:creator>
      <dc:date>2021-12-11T15:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship Query �?? Legacy to AMD</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relationship-query-legacy-to-amd/m-p/328604#M30360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;which exact statement?&amp;nbsp; there are four there :).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i can't really debug from here without access to your services, but when i load your TRANSLATE sample and look at the script tag in the browser developer tools i'm not seeing the 'ItemFileReadStore' argument alias thats in your actual code.&amp;nbsp; (see attached screenshot).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i have a hunch this is because of the three commented out argument aliases directly above it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if that doesn't fix the problem you'll have to step through the working code, interrogating variables along the way and checking the console, to find out exactly where its blowing up.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 21:25:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relationship-query-legacy-to-amd/m-p/328604#M30360</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-10-24T21:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship Query �?? Legacy to AMD</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relationship-query-legacy-to-amd/m-p/328605#M30361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;please disregard that screenshot and the associated suggestion.&amp;nbsp; i was pointing at an outdated version of your app from several days ago.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 21:35:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relationship-query-legacy-to-amd/m-p/328605#M30361</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-10-24T21:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship Query �?? Legacy to AMD</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relationship-query-legacy-to-amd/m-p/328606#M30362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;which exact statement?&amp;nbsp; there are four there :).&lt;BR /&gt;&lt;BR /&gt;i can't really debug from here without access to your services&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You are right, hehe; should have clarified that! Apparently it just stops running right after the last bracket.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am a student at the University of Redlands and we do not have the ability to make services public, but I will check with someone tomorrow; that would make things so much easier.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the time being I will attach the latest script, just to make sure we are looking at the same one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One thing I was wondering, is if the word grid might be causing issues.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;lt;table data-dojo-type="dojox/grid/DataGrid" jsid="grid" id="grid" data-dojo-props="rowsPerPage:'5', rowSelector:'20px'" style="height:300px; width:300px;"&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;jsid, and id are both &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;grid&lt;/SPAN&gt;&lt;SPAN&gt;? I had to look up what jsid means &lt;/SPAN&gt;&lt;A href="http://dojotoolkit.org/reference-guide/1.7/dijit/byId.html#id7"&gt;means&lt;/A&gt;&lt;SPAN&gt;, and it looks like I might have to change that to data-dojo-id anyways.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 23:25:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relationship-query-legacy-to-amd/m-p/328606#M30362</guid>
      <dc:creator>NumaGremling</dc:creator>
      <dc:date>2013-10-24T23:25:34Z</dc:date>
    </item>
  </channel>
</rss>

