Difference between revisions of "Add a Print Template"

From LongJump Support Wiki
imported>Aeric
imported>Aeric
m (Text replace - 'Designer > Data >' to 'Designer >')
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
A Print Template can be added to any object, except for the built-in [[Documents]] and [[Users]] objects.
A Print Template can be added to any object, except for the built-in [[Documents]] and [[Users]] objects. It can use a [[Page]] stored in the platform, or it can be created using an external HTML, Word, or PowerPoint file. This section outlines the process.


To add a Print Template to a {{typenolink|}}:
'''To add a Print Template to an Object:'''
#Click '''Designer > Data > Objects > {object} > Print Templates'''
#Click '''Designer > Objects > {object} > Print Templates'''
#Click the '''[New Template]''' button
#Click the '''[New Template]''' button.<br>The ''New Template'' page appears.
#If the template does not already exist, create it:
#:
#:* Create a JSP/HTML [[Page]] in the platform
#Use the [[Template Variable Tool]] to get the names of variables you can use in the template:
#:* Turn off the ''Include Headers'' option for that page (explanation below)
#:: -or-
#:* Create an HTML page on your local system
#:: -or-
#:* Create a Word document on your local system, saved in <tt>.docx</tt> format.
#:: -or-
#:* Create an Excel spreadsheet document on your local system, saved in <tt>.pptx</tt> format.
#:: '''Note:'''
#:: The <tt>.docx</tt> and <tt>.pptx</tt> files are stored in an XML format the platform can parse and work with. The <tt>.doc</tt> and <tt>.ppt</tt> formats are binary formats that won't work.
#In the ''New Template'' page, use the [[Template Variable Tool]] to get the names of variables you can use in the template:
#:[[File:TemplateVariableTool.jpg]]
#:[[File:TemplateVariableTool.jpg]]
#:''Note:'' Template variables work only in HTML pages. They do not work in JSP pages.<br>(In those pages, use standard JSP programming techniques to access platform information.)
#:'''Note:'''<br>Template variables can be used in HTML, Word, and PowerPoint files. (In [[Pages]] stored in the platform, you use standard JSP programming techniques to access platform information, rather than template variables.)
#Provide the information in the Template Information section
#:
# If it does not already exist, create the template:
#* [[Create a JSP Page Print Template]]
#* [[Create an HTML Print Template]]
#* [[Create an MS Word Print Template]]
#* [[Create a PowerPoint Print Template]]
#:
#Provide the information in the Template Information section:
#:;Template Title:The template name
#:;Template Title:The template name
#:;Description:Describe the purpose of the template or other information about it.
#:;Description:Describe the purpose of the template or other information about it.
#:;Ready to Use:The default setting for the template is Yes.
#:;Ready to Use:The default setting for the template is Yes.
#:;Type:Choose from:
#:;Type:
#::;HTML Template File:This is an HTML file that provides the template structure. Click the '''[Browse]''' button to locate the HTML file
#::'''HTML -''' To upload an HTML, Word, or PowerPoint file stored on your local system.
#::;Page:JSP Page;
#:::* The '''[Browse]''' button appears.
#:::*A list of platform [[Pages]] is displayed.
#:::* Click it to locate the file to upload.
#::::(The list does not include pages that have the ''Include Headers'' option. Those headers contain platform-specific Javascript that interfere with template processing.)
#::'''Page -''' To use a JSP/HTML [[Page]] stored in the platform.
#:::*Choose one of the JSP files stored in the platform.  
#:::* A list of platform [[Pages]] is displayed.
#:::: (The list does not include pages that have the ''Include Headers'' option.)
#:::* Choose one of the listed pages.  
#:
#Click '''[Save]'''
#Click '''[Save]'''

Latest revision as of 23:14, 22 June 2012

A Print Template can be added to any object, except for the built-in Documents and Users objects. It can use a Page stored in the platform, or it can be created using an external HTML, Word, or PowerPoint file. This section outlines the process.

To add a Print Template to an Object:

  1. Click Designer > Objects > {object} > Print Templates
  2. Click the [New Template] button.
    The New Template page appears.
  3. Use the Template Variable Tool to get the names of variables you can use in the template:
    TemplateVariableTool.jpg
    Note:
    Template variables can be used in HTML, Word, and PowerPoint files. (In Pages stored in the platform, you use standard JSP programming techniques to access platform information, rather than template variables.)
  4. If it does not already exist, create the template:
  5. Provide the information in the Template Information section:
    Template Title
    The template name
    Description
    Describe the purpose of the template or other information about it.
    Ready to Use
    The default setting for the template is Yes.
    Type
    HTML - To upload an HTML, Word, or PowerPoint file stored on your local system.
    • The [Browse] button appears.
    • Click it to locate the file to upload.
    Page - To use a JSP/HTML Page stored in the platform.
    • A list of platform Pages is displayed.
    (The list does not include pages that have the Include Headers option.)
    • Choose one of the listed pages.
  6. Click [Save]