Class SheetNameFunction

  • All Implemented Interfaces:
    Serializable, Cloneable, EventListener, PageEventListener, ReportListener, Expression, Function, LayoutProcessorFunction, StructureFunction

    public class SheetNameFunction
    extends AbstractElementFormatFunction
    implements StructureFunction
    Deprecated.
    This way of defining a sheetname for elements is deprecated. Sheetnames should be declared or computed directly on the bands by specifiing a sheetname using the "computed-sheetname" style-property.
    This function is used to generate sheet names into table exports. Sheet names are generated on page breaks and have different representations depending the export type.
    To use this functionnality report configuration must set the property DECALRED_SHEETNAME_FUNCTION_KEY to point to an existing function or property accessible within the report.

    As for example using simple report definition:

     <report>
       <configuration>
         <!-- where sheetNameExpression is pointing to a valid function declared in this report -->
         <property name="org.pentaho.reporting.engine.classic.core.targets.table.TableWriter
         .SheetNameFunction">sheetNameExpression</property>
       </configuration>
       ...
     </report>
     
    Author:
    Cedric Pronzato
    See Also:
    Serialized Form