<?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 Run a widget without config.xml in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/run-a-widget-without-config-xml/m-p/390261#M11202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I am trying to implement the "Print Widget" in this application right here:&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://www.arcgis.com/home/item.html?id=442c350d47644325a99ad04a85733117" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #287433;" target="_blank"&gt;http://www.arcgis.com/home/item.html?id=442c350d47644325a99ad04a85733117&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;The problem is this application does not have a config.xml neither a 'widgetcontainer' so I don't know how to call it in the application.&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I've tried to call it by:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14234846438792859 jive_text_macro" jivemacro_uid="_14234846438792859"&gt;&lt;OL class="dp-c" start="1" style="font-family: inherit; font-style: inherit; font-weight: inherit;"&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;SiteContainer.dispatchEvent(&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt; AppEvent(AppEvent.WIDGET_MENU_CLICKED,&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit;"&gt;false&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit;"&gt;false&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;, PrintWidget));&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;but it doesn't work because I can't recognize the PrintWidget.xml.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Did someone ever try to do something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Vanessa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Feb 2015 12:24:26 GMT</pubDate>
    <dc:creator>VanessaPinto1</dc:creator>
    <dc:date>2015-02-09T12:24:26Z</dc:date>
    <item>
      <title>Run a widget without config.xml</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/run-a-widget-without-config-xml/m-p/390261#M11202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I am trying to implement the "Print Widget" in this application right here:&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://www.arcgis.com/home/item.html?id=442c350d47644325a99ad04a85733117" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #287433;" target="_blank"&gt;http://www.arcgis.com/home/item.html?id=442c350d47644325a99ad04a85733117&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;The problem is this application does not have a config.xml neither a 'widgetcontainer' so I don't know how to call it in the application.&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I've tried to call it by:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14234846438792859 jive_text_macro" jivemacro_uid="_14234846438792859"&gt;&lt;OL class="dp-c" start="1" style="font-family: inherit; font-style: inherit; font-weight: inherit;"&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;SiteContainer.dispatchEvent(&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt; AppEvent(AppEvent.WIDGET_MENU_CLICKED,&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit;"&gt;false&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit;"&gt;false&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;, PrintWidget));&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;but it doesn't work because I can't recognize the PrintWidget.xml.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Did someone ever try to do something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Vanessa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 12:24:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/run-a-widget-without-config-xml/m-p/390261#M11202</guid>
      <dc:creator>VanessaPinto1</dc:creator>
      <dc:date>2015-02-09T12:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Run a widget without config.xml</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/run-a-widget-without-config-xml/m-p/390262#M11203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vanessa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; What version of Flex Viewer are you using? Looking at your code that is for an older version of the viewer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what your code should look like in 3.x:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var id:Number = ViewerContainer.getInstance().widgetManager.getWidgetId("PrintWidget");
AppEvent.dispatch(AppEvent.WIDGET_RUN, id);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:53:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/run-a-widget-without-config-xml/m-p/390262#M11203</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T17:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Run a widget without config.xml</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/run-a-widget-without-config-xml/m-p/390263#M11204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for answering so quickly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this way too and It didn't work. &lt;BR /&gt;The problem is the application was not running with the Flex API.&lt;BR /&gt;I have a html/flex application and I want to implement a Flex API widget in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you think is it possible to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 13:28:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/run-a-widget-without-config-xml/m-p/390263#M11204</guid>
      <dc:creator>VanessaPinto1</dc:creator>
      <dc:date>2015-02-09T13:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Run a widget without config.xml</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/run-a-widget-without-config-xml/m-p/390264#M11205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vanessa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The code you are trying to use both to launch the widget and the widget itself are dependent on the ArcGIS Viewer for Flex code base.&amp;nbsp; The only way to do this is to be an experienced programmer and attempt to decouple the portions of the print widget that is dependent on the Viewer and then use the popup manager to display the UI or something.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 13:53:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/run-a-widget-without-config-xml/m-p/390264#M11205</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-02-09T13:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Run a widget without config.xml</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/run-a-widget-without-config-xml/m-p/390265#M11206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I implemented the Print widget in the application just like you said... "&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;decouple the portions of the print widget that is dependent on the Viewer and then use the popup manager to display the UI or something."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;and now It's working!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thank you for your help! &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 14:15:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/run-a-widget-without-config-xml/m-p/390265#M11206</guid>
      <dc:creator>VanessaPinto1</dc:creator>
      <dc:date>2015-02-12T14:15:44Z</dc:date>
    </item>
  </channel>
</rss>

