<?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: Web App Builder print widget with custom parameters in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/web-app-builder-print-widget-with-custom/m-p/1315876#M68413</link>
    <description>&lt;P&gt;Hi&amp;nbsp;gabriellasmarquez,&lt;/P&gt;&lt;P&gt;I don't believe you would be able to send the web map as JSON using the geoprocessing widget, would need to use either the print widget or develop your own widget to get the web map as JSON on the client side.&lt;/P&gt;&lt;P&gt;I'm thinking you might need to use the print widget and then use a custom python script to create the export. What you could do is have a select/search tool for the user to select the map series they need on the map, then create a print using the print widget. The web map JSON that is sent to the python script/GP service will include the map series the user selects, you could then have some logic in the python script to select that map series and export to PDF.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Aug 2023 01:34:55 GMT</pubDate>
    <dc:creator>sxw_eaglegis</dc:creator>
    <dc:date>2023-08-07T01:34:55Z</dc:date>
    <item>
      <title>Web App Builder print widget with custom parameters</title>
      <link>https://community.esri.com/t5/python-questions/web-app-builder-print-widget-with-custom/m-p/1315788#M68412</link>
      <description>&lt;P&gt;Hello, I have a print service that is exporting a web map using a custom layout with a map series enabled. I have a custom parameter that lets users select a page from the series to export. The tool works in ArcGIS Pro, however in Web App builder, the print widget only supports the format and layout template parameters. The print widget will only export the page that is selected by default, but there is no drop down for users to change the default. I'm thinking to use the Geoprocessing widget, but I'm unsure how to have it convert the web map to JSON? I'm assuming this is something I would have to set in the python script? Any ideas are greatly appreciated!&lt;/P&gt;&lt;P&gt;parameters in Pro:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gabriellasmarquez_1-1691209978726.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/77385iCF40A6DA9A6C2466/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gabriellasmarquez_1-1691209978726.png" alt="gabriellasmarquez_1-1691209978726.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;print widget parameters:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gabriellasmarquez_2-1691210034543.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/77386i002D25AAA8246DB6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gabriellasmarquez_2-1691210034543.png" alt="gabriellasmarquez_2-1691210034543.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Geoprocessing lets me choose the Sheet, but not sure how to automatically give it the web map as json.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gabriellasmarquez_0-1691209763759.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/77384i7640BFFAD5758A0A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gabriellasmarquez_0-1691209763759.png" alt="gabriellasmarquez_0-1691209763759.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;currently the print widget provides the json, is there a way I can provide it here?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gabriellasmarquez_3-1691210150590.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/77387i0233BECC9C93F724/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gabriellasmarquez_3-1691210150590.png" alt="gabriellasmarquez_3-1691210150590.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Aug 2023 04:37:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/web-app-builder-print-widget-with-custom/m-p/1315788#M68412</guid>
      <dc:creator>gabriellasmarquez</dc:creator>
      <dc:date>2023-08-05T04:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Web App Builder print widget with custom parameters</title>
      <link>https://community.esri.com/t5/python-questions/web-app-builder-print-widget-with-custom/m-p/1315876#M68413</link>
      <description>&lt;P&gt;Hi&amp;nbsp;gabriellasmarquez,&lt;/P&gt;&lt;P&gt;I don't believe you would be able to send the web map as JSON using the geoprocessing widget, would need to use either the print widget or develop your own widget to get the web map as JSON on the client side.&lt;/P&gt;&lt;P&gt;I'm thinking you might need to use the print widget and then use a custom python script to create the export. What you could do is have a select/search tool for the user to select the map series they need on the map, then create a print using the print widget. The web map JSON that is sent to the python script/GP service will include the map series the user selects, you could then have some logic in the python script to select that map series and export to PDF.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 01:34:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/web-app-builder-print-widget-with-custom/m-p/1315876#M68413</guid>
      <dc:creator>sxw_eaglegis</dc:creator>
      <dc:date>2023-08-07T01:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Web App Builder print widget with custom parameters</title>
      <link>https://community.esri.com/t5/python-questions/web-app-builder-print-widget-with-custom/m-p/1317761#M68414</link>
      <description>&lt;P&gt;Thank you! I'll try that out.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 01:33:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/web-app-builder-print-widget-with-custom/m-p/1317761#M68414</guid>
      <dc:creator>gabriellasmarquez</dc:creator>
      <dc:date>2023-08-11T01:33:26Z</dc:date>
    </item>
  </channel>
</rss>

