<?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 to close fixed window (splash screen) from a custom widget in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-close-fixed-window-splash-screen-from-a/m-p/1129843#M3439</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/36532"&gt;@DaveFullerton&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;the splash screen is actually a page.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Dec 2021 12:43:47 GMT</pubDate>
    <dc:creator>LuisAntonioRodriguezGonzalez</dc:creator>
    <dc:date>2021-12-31T12:43:47Z</dc:date>
    <item>
      <title>How to close fixed window (splash screen) from a custom widget</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-close-fixed-window-splash-screen-from-a/m-p/1093555#M2705</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've developed a Experience Builder Widget, that has a "Iniciar sesión" button. I've added this&amp;nbsp;Widget in a&amp;nbsp;fixed window (splash screen) and when I click in the "Iniciar sesión"&amp;nbsp; button, I want to close the window.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="SplashScreen.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/21996iBEA1AB00DDF0C9F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="SplashScreen.png" alt="SplashScreen.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 12:51:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-close-fixed-window-splash-screen-from-a/m-p/1093555#M2705</guid>
      <dc:creator>LuisAntonioRodriguezGonzalez</dc:creator>
      <dc:date>2021-08-30T12:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to close fixed window (splash screen) from a custom widget</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-close-fixed-window-splash-screen-from-a/m-p/1093560#M2706</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If your main page is called Page 1, just do the following:&lt;/P&gt;&lt;P&gt;1. Click on the button in the edit mode&lt;/P&gt;&lt;P&gt;2. Select "Set link" in the right column&lt;/P&gt;&lt;P&gt;3. Set link to Page, Page 1, App window, like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Capture.JPG" style="width: 517px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/21998iABEFDC82678C1F18/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 13:00:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-close-fixed-window-splash-screen-from-a/m-p/1093560#M2706</guid>
      <dc:creator>Boyang_Wang</dc:creator>
      <dc:date>2021-08-30T13:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to close fixed window (splash screen) from a custom widget</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-close-fixed-window-splash-screen-from-a/m-p/1093566#M2707</link>
      <description>&lt;P&gt;Thanks, but this solution is not suitable for me, because I,ve developed a custom buttom in my&amp;nbsp;&lt;SPAN&gt;custom widget.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The&amp;nbsp;custom buttom has to do some actions before close the&amp;nbsp;splash screen.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 13:19:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-close-fixed-window-splash-screen-from-a/m-p/1093566#M2707</guid>
      <dc:creator>LuisAntonioRodriguezGonzalez</dc:creator>
      <dc:date>2021-08-30T13:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to close fixed window (splash screen) from a custom widget</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-close-fixed-window-splash-screen-from-a/m-p/1095398#M2729</link>
      <description>&lt;P&gt;If this fixed window is actually a&amp;nbsp;&lt;STRONG&gt;page&lt;/STRONG&gt;, see the code/button I posted here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-open-a-specific-page-with-a-button/m-p/1095329/thread-id/2726#M2728" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-open-a-specific-page-with-a-button/m-p/1095329/thread-id/2726#M2728&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You wouldn't actually "close" anything. You just have the button call the other page.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 18:28:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-close-fixed-window-splash-screen-from-a/m-p/1095398#M2729</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-09-03T18:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to close fixed window (splash screen) from a custom widget</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-close-fixed-window-splash-screen-from-a/m-p/1099267#M2775</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code based on the&amp;nbsp;&lt;STRONG&gt;KevinHibma&lt;/STRONG&gt;&amp;nbsp;answer:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;export default function Widget(props: AllWidgetProps&amp;lt;IMConfig&amp;gt; &amp;amp; ExtraProps) {
  let linkCloseRef: HTMLButtonElement;

	. . .

  const getLinkComponent = () =&amp;gt; {
    let linkTo: LinkTo;
    linkTo = {
        linkType: LinkType.Page,
        value: "current_page" 
    } as LinkResult;
    let queryObject = props.queryObject;

    return (
      &amp;lt;Link ref={ref =&amp;gt; (linkCloseRef = ref)} to={linkTo} target="_self" queryObject={queryObject}
        className="linkClose"
      &amp;gt;
      &amp;lt;/Link&amp;gt;
    );
  }

  const onIniciarSesion = e =&amp;gt; {
    const usuario = getUsuario();
    const password = getPassword();

    if (usuario === null || usuario === '' || password === null || password === '') {
      setMensajes(`${getI18nMessage('introducirUsuarioPassword')}`);
    }
    else {
      const url = `${props.config.wsl}/Login.ashx`;
      esriRequest(url, {
          query: {
            u: usuario,
            p: password
          },
          responseType: "json"
      }).then(response =&amp;gt; {
        let geoJson = response.data;
        if (response.data.cr === 1) {
          if (response.data.np === 1) {
                . . .
          }
          else {
                . . .
          }

          linkCloseRef.click();
        }
        else {
          setMensajes(`${getI18nMessage('errorUsuarioPassword')}`);
        }
      }).catch((error) =&amp;gt; {
          console.error(error);
      });
    }  
  }

  const LinkComponent = getLinkComponent();

  return (
      &amp;lt;div className="jimu-widget-acceso-filtrado"&amp;gt;
        {LinkComponent}

        &amp;lt;div className="overlay"&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;div className="envelope buried"&amp;gt;
        &amp;lt;div className="contenedor"&amp;gt;
          &amp;lt;table className="acceso-filtrado-table" cellSpacing={5}&amp;gt;
          &amp;lt;tbody&amp;gt;
				. . .
            &amp;lt;td colSpan={2}&amp;gt;
              &amp;lt;div className="acceso-filtrado-btn" onClick={onIniciarSesion}&amp;gt;
                &amp;lt;FormattedMessage id="iniciarSesion" defaultMessage={defaultI18nMessages.iniciarSesion}&amp;gt;&amp;lt;/FormattedMessage&amp;gt;
              &amp;lt;/div&amp;gt;
            &amp;lt;/td&amp;gt;
            &amp;lt;/tr&amp;gt;
          &amp;lt;/tbody&amp;gt;
          &amp;lt;/table&amp;gt;
          
        &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
      &amp;lt;/div&amp;gt;
  );
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 06:03:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-close-fixed-window-splash-screen-from-a/m-p/1099267#M2775</guid>
      <dc:creator>LuisAntonioRodriguezGonzalez</dc:creator>
      <dc:date>2021-09-17T06:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to close fixed window (splash screen) from a custom widget</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-close-fixed-window-splash-screen-from-a/m-p/1129654#M3422</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/476297"&gt;@LuisAntonioRodriguezGonzalez&lt;/a&gt;&amp;nbsp;are you using your custom widget in a fixed window that is set as the splash screen?&amp;nbsp; Or is it as&amp;nbsp;@Anonymous User&amp;nbsp;was referring to that the splash screen is actually a page?&amp;nbsp; I am having trouble getting my custom widget to close the fixed window but only when it is set as the splash screen.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2021 15:58:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-close-fixed-window-splash-screen-from-a/m-p/1129654#M3422</guid>
      <dc:creator>DaveFullerton</dc:creator>
      <dc:date>2021-12-30T15:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to close fixed window (splash screen) from a custom widget</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-close-fixed-window-splash-screen-from-a/m-p/1129843#M3439</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/36532"&gt;@DaveFullerton&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;the splash screen is actually a page.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Dec 2021 12:43:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-close-fixed-window-splash-screen-from-a/m-p/1129843#M3439</guid>
      <dc:creator>LuisAntonioRodriguezGonzalez</dc:creator>
      <dc:date>2021-12-31T12:43:47Z</dc:date>
    </item>
  </channel>
</rss>

