Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

A few predefined functions are also available. The purpose of these will be obvious as stated below:

 

Variable
Usage
Description
formatDate${formatDate(entity.start)}Prints a project date as per the format specified in the viewer's preferences.
formatDate${Date.format(entity.startCalendar, "MM-MMMM")}Prints the Month of project's start date. 11-November
formatDateTime${formatDateTime(entity.start)}Prints project date and time as per viewer's preferences.
formatCurrency${formatCurrency(entity.budget)}Prints a currency field prefixed with the currency symbol as specified in the company profile.
formatNumber${formatNumber(entity.bcws)}Prints a number as per the viewer's locale. Especially useful when printing floating pointing number.
hoursToHHMM${hoursToHHMM(entity.estimatedHours)}Prints hours in the form HH:MM. For example, ${hoursToHHMM(3.5)} will print 3:30
ceil${ceil(5.3)}Returns the nearest integer larger than the input. For example ${ceil(5.3)} will return 6
floor${floor(4.8)}Returns the nearest integer smaller than the input. For example ${floor(4.8)} will return 4
abs${abs(-3.2)}Returns the absolute value of a number
round${round(3.6)}Returns the rounded value of input
Date.now()${Date.now()}Prints today's date.
entity.created${entity.created}Prints the created date of the entity. For e.g, the date when a project was created.
  • No labels