Print Using Record Template

Print Using Record Template

Hi,

  I can use the record template using the Report Properties->Print & PDF options.

  However, I want to create a button to print my custom template on the same report. I want to maintain 2 different report format, one for the Detail View, and one custom using the button embeded in the list view.

  I tried to using the open URL functions by entering something like the following but it says URL not found. 

openUrl("https://creatorapp.zoho.com/myusers/myapps/record-print/my_custom_template/" + input.ID,"popup window");

 I would like to know the correct way to call the custom template using the open url method, or is it possible to maintain 2 format for one report?

Best regards,