Hello,
is there any way to get selected layout and format when the user change selection in the dropdown menues ?
Thanks,
Nadia
Hey @nadmoat ,
you can get the templateOptions using the watchUtils.
watchUtils.watch(print.templateOptions,"layout", (event)=>{ console.log(event) });
Hi @nadmoat, thanks for the question. What are you trying to accomplish?
If you open the developer tools of your browser and look at the network traffic, you can see the Format and Layout_Template in the request:
You could also listen for an event when the printing is fired off and discover the Layout and Format that way:
https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#events-summary
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.