Top Banner

of 14

Advanced Rt f Templates

Apr 14, 2018

Download

Documents

nareshch23
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 7/30/2019 Advanced Rt f Templates

    1/14

  • 7/30/2019 Advanced Rt f Templates

    2/14

    Advanced RTF

    Template TechniquesXML Publisher

  • 7/30/2019 Advanced Rt f Templates

    3/14

    Advanced Features

    Template Properties Parameters

    Updateable Variables

    Page Break Alias

    Running Totals

    If Then Else

    Conditional Formatting

    @section, @cell Page Total

    Carried Forward/Brought Forward

  • 7/30/2019 Advanced Rt f Templates

    4/14

    Template Properties

    Embed any XML Publisher properties to RTFtemplate

    Either hard code or reference values in theXML data

    Use custom document properties dialog

    Examples

    Font embedding, Security settings

    Usage

    Prefix XML Publisher property with xdo-Name: xdo-pdf-open-password Value: welcome

  • 7/30/2019 Advanced Rt f Templates

    5/14

    Template Parameters

    Pass parameter values into the template atruntime

    Not yet supported by concurrent manager

    When calling TemplateHelper/FOProcessoradd properties prefixed with xslt.

    Declare the parameter in the template

    Reference value in Template using $ prefixe.g. $InvThresh

  • 7/30/2019 Advanced Rt f Templates

    6/14

    Updateable Variables

    Ability to set and get variable values Usage

    Declaring /Setting a variable value

    Retrieving a variable value

    Use variables in calculations :

  • 7/30/2019 Advanced Rt f Templates

    7/14

    Running Totals

    Make use of the updateable variables tocreate and track the running total inside a for-each loop

    Use the set and get methods to create andupdate the necessary variables

  • 7/30/2019 Advanced Rt f Templates

    8/14

    If Then Else

    Can be used in place of a choose: statement Can nest if-then-else expressions to multiple

    levelsIF InvoiceAmount = 0 THEN

    InvoiceAmount

    ELSE

    No Value

    END IF

  • 7/30/2019 Advanced Rt f Templates

    9/14

    Conditional Formatting

    Conditionally highlight data Fonts, Background

    Highlight

    Cells, Rows Use xsl attributes to set the formatting

  • 7/30/2019 Advanced Rt f Templates

    10/14

    Page Totals

    Ability to add page totals to layout Either in header/footer or in body of template

    Declare the page total first

    Show the page total value, specifying thenumber format to be used

  • 7/30/2019 Advanced Rt f Templates

    11/14

    Carried Forward/Brought Forward

    Ability to add carried forward/brought forwardvalues to the top and bottom of a page

    Conditionally show on first and last pages

  • 7/30/2019 Advanced Rt f Templates

    12/14

    Section Breaks

    Allows you to maintain header informationacross pages and invoke a page break on agroup element

    Very useful for parent/detail reports e.g.Invoices, Pos, etc

  • 7/30/2019 Advanced Rt f Templates

    13/14

    Q U E S T I O N SA N S W E R S

  • 7/30/2019 Advanced Rt f Templates

    14/14