CreateHyperLinksFunction

Description

Adds hyperlinks to all elements (objects) with the name specified in element. The link target is read from a specified field. The column referenced by this field should contain URLs or Strings.

Example

<expression class="org.jfree.report.function.TextFormatExpression" name="URLCreateExpression">
  <properties>
     <property name="pattern">http://localhost:8080/pentaho/ViewAction?&amp;solution=test&amp;path=reporting&amp;action=open_sales.xaction&amp;customer={0}</property>
     <property name="field[0]">CUSTOMERNAME</property>
  </properties>
</expression>
 
<function class="org.jfree.report.function.CreateHyperLinksFunction" name="AddHRefs">
  <properties>
     <property name="field">URLCreateExpression</property>
     <property name="element">URL-Field</property>
  </properties>
</function>

<items fontname="Arial" fontsize="9" fontstyle="plain" height="12" visible="true" vertical-alignment="middle">
  <rectangle name="background" x="15%" y="0" width="70%" height="100%" color="#DFDFDF" weight="0"/>
  <string-field height="12" width="55%" fieldname="CUSTOMERNAME" x="15%" alignment="left" name="URL-Field" />
  <number-field height="12" width="15%" fieldname="QUANTITYORDERED" x="70%" alignment="right" format="###,###.00" />
</items>