<?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 Writing data to a new tab from a custom widget in Experience Builder Custom Widgets</title>
    <link>https://community.esri.com/t5/experience-builder-custom-widgets/writing-data-to-a-new-tab-from-a-custom-widget/m-p/1264618#M61</link>
    <description>&lt;P&gt;Hi, I have a widget that generates data that I'd like the user to view in another tab (just like the Report widget in WebAppBuilder was doing). The data are: text, table and picture. Right now, I am using the following paradigm:&lt;/P&gt;&lt;P&gt;- Create a new tab by simply using window.open on a button click.&lt;/P&gt;&lt;P&gt;- Then create HTMLDivElement in the document of the new tab for each of the data type and configure the attributes of these elements.&lt;/P&gt;&lt;P&gt;- Finally append these elements to the document of the new tab.&lt;/P&gt;&lt;P&gt;It seems to work (see the test widget enclosed), but I am not sure it is the "right React" way to proceed. Before I have tried to implement createPortal from react-dom, but I could not make it work, that is why I reverted to this basic way.&lt;/P&gt;&lt;P&gt;Any insights would be great. Thanks.&lt;/P&gt;&lt;P&gt;Catherine&lt;/P&gt;</description>
    <pubDate>Mon, 06 Mar 2023 17:37:41 GMT</pubDate>
    <dc:creator>clc</dc:creator>
    <dc:date>2023-03-06T17:37:41Z</dc:date>
    <item>
      <title>Writing data to a new tab from a custom widget</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/writing-data-to-a-new-tab-from-a-custom-widget/m-p/1264618#M61</link>
      <description>&lt;P&gt;Hi, I have a widget that generates data that I'd like the user to view in another tab (just like the Report widget in WebAppBuilder was doing). The data are: text, table and picture. Right now, I am using the following paradigm:&lt;/P&gt;&lt;P&gt;- Create a new tab by simply using window.open on a button click.&lt;/P&gt;&lt;P&gt;- Then create HTMLDivElement in the document of the new tab for each of the data type and configure the attributes of these elements.&lt;/P&gt;&lt;P&gt;- Finally append these elements to the document of the new tab.&lt;/P&gt;&lt;P&gt;It seems to work (see the test widget enclosed), but I am not sure it is the "right React" way to proceed. Before I have tried to implement createPortal from react-dom, but I could not make it work, that is why I reverted to this basic way.&lt;/P&gt;&lt;P&gt;Any insights would be great. Thanks.&lt;/P&gt;&lt;P&gt;Catherine&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 17:37:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/writing-data-to-a-new-tab-from-a-custom-widget/m-p/1264618#M61</guid>
      <dc:creator>clc</dc:creator>
      <dc:date>2023-03-06T17:37:41Z</dc:date>
    </item>
  </channel>
</rss>

