<?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: Print Problems using a proxy in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/print-problems-using-a-proxy/m-p/626407#M18618</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works if I set &lt;/P&gt;&lt;P&gt;a= new Map();&lt;/P&gt;&lt;P&gt;a= hostBaseWidget.map;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;a.layers[0].url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:6080/arcgis/rest/services/test_1/MapServer" rel="nofollow" target="_blank"&gt;http://localhost:6080/arcgis/rest/services/test_1/MapServer&lt;/A&gt;&lt;SPAN&gt;"; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My only problem is that I'm still working on hostBaseWidget.map even I created a new Map() object......so...I change the reference with the main map that is in the viewer....&lt;/P&gt;&lt;P&gt;I can't duplicate that object and work on the second one created..&lt;/P&gt;&lt;P&gt;Someone can help me?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Naty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Sep 2014 09:20:44 GMT</pubDate>
    <dc:creator>NatashaManzuiga</dc:creator>
    <dc:date>2014-09-18T09:20:44Z</dc:date>
    <item>
      <title>Print Problems using a proxy</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/print-problems-using-a-proxy/m-p/626406#M18617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, my print widget works fine until I change the full path to relative path in the config.xml.&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; &amp;lt;layer type="dynamic" label="Test" imageformat="jpg" url="&lt;SPAN style="color: #e23d39;"&gt;&lt;STRONG&gt;&lt;A class="jive-link-external-small" href="http://localhost:6080/arcgis/rest" rel="nofollow" target="_blank"&gt;http://localhost:6080/arcgis/rest&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;/services/test_1/Mapserver" visible="true"/&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt; works fine!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I use:&lt;BR /&gt;&amp;lt;layer type="dynamic" label="Test" imageformat="jpg" url="&lt;SPAN style="color: #e23d39;"&gt;&lt;STRONG&gt;../arcgis/rest&lt;/STRONG&gt;&lt;/SPAN&gt;/services/test_1/Mapserver" visible="true"/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a servlet proxy in weblogic that if you ask "..&lt;SPAN style="color: #e23d39;"&gt;&lt;STRONG&gt;/arcgis/rest&lt;/STRONG&gt;&lt;/SPAN&gt;/services/test_1/Mapserver" response the servlet at the address &lt;SPAN style="color: #e23d39;"&gt;&lt;STRONG&gt;&lt;A class="jive-link-external-small" href="http://localhost:7001/arcgis/rest" rel="nofollow" target="_blank"&gt;http://localhost:7001/arcgis/rest&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;/services/test_1/Mapserver and it works...I see the map on flex viewer!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it doesnt work on print task!! So I'm trying to change the path using the following line code before subimtJob:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;printParameters.map.layers[0].url = "&lt;SPAN style="color: #e23d39;"&gt;&lt;A class="jive-link-external-small" href="http://localhost:6080/arcgis/rest" rel="nofollow" target="_blank"&gt;http://localhost:6080/arcgis/rest&lt;/A&gt;&lt;/SPAN&gt;/services/test_1/Mapserver";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;printTask.submitJob(printParameters);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it still doesnt work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Someone knows if there is any workaround?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Naty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 09:30:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/print-problems-using-a-proxy/m-p/626406#M18617</guid>
      <dc:creator>NatashaManzuiga</dc:creator>
      <dc:date>2014-09-16T09:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Print Problems using a proxy</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/print-problems-using-a-proxy/m-p/626407#M18618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works if I set &lt;/P&gt;&lt;P&gt;a= new Map();&lt;/P&gt;&lt;P&gt;a= hostBaseWidget.map;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;a.layers[0].url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:6080/arcgis/rest/services/test_1/MapServer" rel="nofollow" target="_blank"&gt;http://localhost:6080/arcgis/rest/services/test_1/MapServer&lt;/A&gt;&lt;SPAN&gt;"; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My only problem is that I'm still working on hostBaseWidget.map even I created a new Map() object......so...I change the reference with the main map that is in the viewer....&lt;/P&gt;&lt;P&gt;I can't duplicate that object and work on the second one created..&lt;/P&gt;&lt;P&gt;Someone can help me?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Naty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 09:20:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/print-problems-using-a-proxy/m-p/626407#M18618</guid>
      <dc:creator>NatashaManzuiga</dc:creator>
      <dc:date>2014-09-18T09:20:44Z</dc:date>
    </item>
  </channel>
</rss>

