Select to view content in your preferred language

Custom Print layouts

82
1
2 weeks ago
vijaybadugu
Frequent Contributor

I uploaded (.pagx) the custom print layouts on to the enterprise portal (11.5) and was able to create an item in the portal. I just wanted to use the same template in my JS Code. How could you use these custom print layouts in JS Script ? Will this be worked ?

0 Kudos
1 Reply
JoelBennett
MVP Regular Contributor

I've not done this with Portal, but I have with ArcGIS Server, and I suppose the differences would be marginal.  Once published to either, I suspect that the piece on the client side would be pretty much the same as well:

  1. Create a PrintTemplate object set with the name of your layout in the layout property.
  2. Create a PrintParameters object with the template property set to the object created in step 1.
  3. Use the print module to execute a request using the object created in step 2.
0 Kudos