<?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: How can I get the maps from a group. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-maps-from-a-group/m-p/48304#M4237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Piet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try PortalGroup class,&amp;nbsp;with&amp;nbsp;method queryItems&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/portalgroup-amd.html#queryitems" title="https://developers.arcgis.com/javascript/3/jsapi/portalgroup-amd.html#queryitems"&gt;PortalGroup | API Reference | ArcGIS API for JavaScript 3.31&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is reference for query parameters, type should be 'map'.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/users-groups-and-items/search-reference.htm" title="https://developers.arcgis.com/rest/users-groups-and-items/search-reference.htm"&gt;Search reference—ArcGIS REST API: Users, groups, and content | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Feb 2020 00:27:20 GMT</pubDate>
    <dc:creator>LeoLiu1</dc:creator>
    <dc:date>2020-02-18T00:27:20Z</dc:date>
    <item>
      <title>How can I get the maps from a group.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-maps-from-a-group/m-p/48303#M4236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a working example that gets the Content&amp;nbsp;in "My Content" on the online ArcGIS portal.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fjavascript%2Flatest%2Fsample-code%2Fidentity-oauth-basic%2Flive%2Findex.html"&gt;Access ArcGIS Online items using OAuthentication - 4.13&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am trying to change this example to get the Contents of a Group in "My Groups".&lt;/P&gt;&lt;P&gt;Is there a code example available, or can you give me a clear explanation how to achieve this?&lt;/P&gt;&lt;P&gt;I'm new to ArcGIS so not experienced at all.&lt;/P&gt;&lt;P&gt;Highly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Feb 2020 11:08:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-maps-from-a-group/m-p/48303#M4236</guid>
      <dc:creator>PHerk</dc:creator>
      <dc:date>2020-02-16T11:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the maps from a group.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-maps-from-a-group/m-p/48304#M4237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Piet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try PortalGroup class,&amp;nbsp;with&amp;nbsp;method queryItems&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/portalgroup-amd.html#queryitems" title="https://developers.arcgis.com/javascript/3/jsapi/portalgroup-amd.html#queryitems"&gt;PortalGroup | API Reference | ArcGIS API for JavaScript 3.31&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is reference for query parameters, type should be 'map'.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/users-groups-and-items/search-reference.htm" title="https://developers.arcgis.com/rest/users-groups-and-items/search-reference.htm"&gt;Search reference—ArcGIS REST API: Users, groups, and content | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 00:27:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-maps-from-a-group/m-p/48304#M4237</guid>
      <dc:creator>LeoLiu1</dc:creator>
      <dc:date>2020-02-18T00:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the maps from a group.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-maps-from-a-group/m-p/48305#M4238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, it worked out.&lt;/P&gt;&lt;P&gt;Appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 07:34:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-maps-from-a-group/m-p/48305#M4238</guid>
      <dc:creator>PHerk</dc:creator>
      <dc:date>2020-02-18T07:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the maps from a group.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-maps-from-a-group/m-p/48306#M4239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am struggling with the query parameters.&lt;/P&gt;&lt;P style="padding: 0px;"&gt;This works:&lt;/P&gt;&lt;P style="padding: 0px;"&gt;var queryParams = new PortalQueryParams({&lt;BR /&gt;query: 'group:' + selectedID,&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;This works:&lt;/P&gt;&lt;P&gt;var queryParams = new PortalQueryParams({&lt;BR /&gt;query: '&lt;SPAN&gt;type:Map&lt;/SPAN&gt;,&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives no result:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var queryParams = new PortalQueryParams({&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;query: 'group:' + selectedID + 'AND type:Map',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;seems you&amp;nbsp;can't add 2 items in the search query.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any idea how I can have the 2 items in 1 query?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 21:00:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-maps-from-a-group/m-p/48306#M4239</guid>
      <dc:creator>PHerk</dc:creator>
      <dc:date>2020-02-18T21:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the maps from a group.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-maps-from-a-group/m-p/48307#M4240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Piet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it because you need a space before AND operator in your query string?&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; queryParams &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;PortalQueryParams&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
   query&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'group:'&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; selectedID &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;' AND type:Map'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:51:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-maps-from-a-group/m-p/48307#M4240</guid>
      <dc:creator>LeoLiu1</dc:creator>
      <dc:date>2021-12-10T21:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the maps from a group.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-maps-from-a-group/m-p/48308#M4241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, simple mistake. I am not used&amp;nbsp;working with ":" in queries&amp;nbsp;and was focussing on that. Thank you very much for your help. I have the correct maps from the group.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 07:26:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-maps-from-a-group/m-p/48308#M4241</guid>
      <dc:creator>PHerk</dc:creator>
      <dc:date>2020-02-19T07:26:32Z</dc:date>
    </item>
  </channel>
</rss>

