Appendix D. Reporting Resources

Table of Contents

D.1. Context Variables
D.2. KlarosScript Interface
D.3. Example report template

D.1. Context Variables

Table D.1. Context Variables

NameDescription
dateThe current date.
localeThe current locale set in the web frontend.
activeProjectThe currently selected KlarosProject. If no project is selected this variable contains the null object.
userA KlarosUser object representing the active user.

The context variables can be accessed via SeamPDF by e.g.

  <p:text value="#{date}" />
  

[Note]Note

#{user.name} and #{user.username} contain different values. The first provides the user's real name, while the latter provides the name the user is logged in with.