Special functions
You can use special functions to add details of who printed the report.
To understand the functions, consider the following example:
Person linked to the account:
First name - John
Last name - Williams
Initial(s) - J.
Logged in user's account:
User name - JW@Planon
Description - John Williams
The special functions work as follows:
loggedInPerson()
The loggedInPerson() function returns the value of the name of the linked person as a string. The string is returned in the format -“Firstname”space“Last name”. You can also append parameters related to the person details like First name, Last name or Surname to the function.
*The loggedInPerson() works only if there is a person linked to the logged in account, otherwise, it will not return any value.
Example
Result
loggedInPerson()
John Williams
LoggedInPerson(“LastName“)
Williams
loggedInUser()
The loggedInUser() function returns the value of the user name and the description field of the account as a string. You can also append parameters related to the user account details or person details like Account name to the function.
Example
Result
loggedInUser()
JW@Planon, John Williams
loggedInUser(“Accountname”)
JW@Planon