<?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 PortalItem (ArcGIS Dashboards) JSON to HTML in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/portalitem-arcgis-dashboards-json-to-html/m-p/1286299#M81065</link>
    <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I have searched a lot within the documentation but could not get an answer or a guid.&lt;/P&gt;&lt;P&gt;I have a Vue.js app which is suppose to take a public ArcGIS Dashboard ID as an input and fetch its data and display the dashboard to the user. I know this can be done easily through embedding the URL of the dashboard in an iframe tag but is there a way to do this programmatically by only taking the ID of the dashboard?&lt;/P&gt;&lt;P&gt;For now I'm using the following code to fetch the data of the dashboard:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;new PortalItem({
   id: "409af567637846e3b5d4182fcd779bea"
 }).load().then(function (item) {
  item.fetchData().then(function(itemData) {
     console.log(itemData);
 })
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That code gets the JSON representation of the dashboard, so is there any way to render the dashboard to the user using that JSON data?&lt;/P&gt;&lt;P&gt;Thanks so much!!&lt;/P&gt;</description>
    <pubDate>Fri, 05 May 2023 18:19:47 GMT</pubDate>
    <dc:creator>MahmudHamid</dc:creator>
    <dc:date>2023-05-05T18:19:47Z</dc:date>
    <item>
      <title>PortalItem (ArcGIS Dashboards) JSON to HTML</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/portalitem-arcgis-dashboards-json-to-html/m-p/1286299#M81065</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I have searched a lot within the documentation but could not get an answer or a guid.&lt;/P&gt;&lt;P&gt;I have a Vue.js app which is suppose to take a public ArcGIS Dashboard ID as an input and fetch its data and display the dashboard to the user. I know this can be done easily through embedding the URL of the dashboard in an iframe tag but is there a way to do this programmatically by only taking the ID of the dashboard?&lt;/P&gt;&lt;P&gt;For now I'm using the following code to fetch the data of the dashboard:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;new PortalItem({
   id: "409af567637846e3b5d4182fcd779bea"
 }).load().then(function (item) {
  item.fetchData().then(function(itemData) {
     console.log(itemData);
 })
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That code gets the JSON representation of the dashboard, so is there any way to render the dashboard to the user using that JSON data?&lt;/P&gt;&lt;P&gt;Thanks so much!!&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 18:19:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/portalitem-arcgis-dashboards-json-to-html/m-p/1286299#M81065</guid>
      <dc:creator>MahmudHamid</dc:creator>
      <dc:date>2023-05-05T18:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: PortalItem (ArcGIS Dashboards) JSON to HTML</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/portalitem-arcgis-dashboards-json-to-html/m-p/1286340#M81067</link>
      <description>&lt;P&gt;All the display stuff is coming from the dashboard &lt;EM&gt;app &lt;/EM&gt;itself. For our portal, that's&lt;/P&gt;&lt;P data-unlink="true"&gt;https://maps.co.kendall.il.us/portal/apps/opsdashboard/index.html#someitemid&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the assets needed to render the dashboard are at that path, and it reads the JSON based on the itemID.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 19:00:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/portalitem-arcgis-dashboards-json-to-html/m-p/1286340#M81067</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-05-05T19:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: PortalItem (ArcGIS Dashboards) JSON to HTML</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/portalitem-arcgis-dashboards-json-to-html/m-p/1286355#M81069</link>
      <description>&lt;P&gt;&lt;STRONG&gt;So you're saying that there is no way to display the dashboard other than calling the dashboard URL? In other words using embedded iframe?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 19:26:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/portalitem-arcgis-dashboards-json-to-html/m-p/1286355#M81069</guid>
      <dc:creator>MahmudHamid</dc:creator>
      <dc:date>2023-05-05T19:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: PortalItem (ArcGIS Dashboards) JSON to HTML</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/portalitem-arcgis-dashboards-json-to-html/m-p/1286360#M81070</link>
      <description>&lt;P&gt;I don't know if there's &lt;EM&gt;no &lt;/EM&gt;way, but an embedded frame would be a lot easier, otherwise you'll have to copy out the HTML, CSS, and JS resources that make the dashboard actually &lt;EM&gt;work&lt;/EM&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 19:36:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/portalitem-arcgis-dashboards-json-to-html/m-p/1286360#M81070</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-05-05T19:36:26Z</dc:date>
    </item>
  </channel>
</rss>

