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!
parameters in Pro:
print widget parameters:
Geoprocessing lets me choose the Sheet, but not sure how to automatically give it the web map as json.
currently the print widget provides the json, is there a way I can provide it here?
Solved! Go to Solution.
Hi gabriellasmarquez,
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.
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.
Hi gabriellasmarquez,
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.
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.
Thank you! I'll try that out.