Hi,
I'm working in ArcGIS Enterprise 11.3.
I want to print survey reports but I'm having trouble getting the printing to work.
The print icon in the form view does give me a very basic report but it's good enough for now.
I would like to know if its possible to construct the URL to execute this print function from a popup.
Thanks
Hanlie
Solved! Go to Solution.
I don't think this is possible as you describe. That print function only shows once a feature has been selected. However, you can add parameters to the URL to open with specific features already selected i.e. adding "&objectIds=38" to the url. Not an expert in website and url parameters, but it appears a print function has to be initiated from a loaded page and cannot be initiated external to the page. The only way I saw this was possible was writing a code to initiate the print from within an iframe, so load the page in an iframe and a script to print that page from there, however that was printing the full webpage and would not address the print function you reference.
That said you may be able to achieve a something similar using webhooks and the Survey123 reporting functions.
https://doc.arcgis.com/en/survey123/browser/analyze-results/webhooks.htm
https://doc.arcgis.com/en/survey123/browser/analyze-results/featurereporttemplates.htm
I don't think this is possible as you describe. That print function only shows once a feature has been selected. However, you can add parameters to the URL to open with specific features already selected i.e. adding "&objectIds=38" to the url. Not an expert in website and url parameters, but it appears a print function has to be initiated from a loaded page and cannot be initiated external to the page. The only way I saw this was possible was writing a code to initiate the print from within an iframe, so load the page in an iframe and a script to print that page from there, however that was printing the full webpage and would not address the print function you reference.
That said you may be able to achieve a something similar using webhooks and the Survey123 reporting functions.
https://doc.arcgis.com/en/survey123/browser/analyze-results/webhooks.htm
https://doc.arcgis.com/en/survey123/browser/analyze-results/featurereporttemplates.htm
@Neal_t_k thanks for the reply.
The web hooks I did not think about and it seems the actions available for Survey123 includes printing a report but using a template, not the function I highlighted in the screenshot above.
I thought that, while I wait for IT to sort out the enabling of the standard S123 reporting, this could be a workaround. But for now I have just linked to the S123 data page and the users will have to select the survey themselves and use the form print function.