Rule/Guidelines
|
Example
|
---|---|
To apply format styles such as italics, bold, and so on, you must set up a font family explicitly. Otherwise the default font Unicode MS will be applied when PDF is generated. Unicode MS does not support formatting.
|
<p>Current date is {{$F.TODAY
()}}</p>
|
To apply locale formatting for numbers, you mustuse the function LNUMBER.
|
{{$F.LNUMBER($D.Work_Order.SVMXC__Latitude__c)}}
{{$F.LNUMBER($D.Work_Order.SVMXC__Latitude__c)}}
|
To apply a number field's scale (number of decimaldigits), you must use the function SNUMBER.
|
{{$F.SNUMBER($D.Service_Quote.SVMXC__Discount__c)}}
|
To show a form UI, use a table with the requirednumber of rows and columns
|
|
Avoid using HTML constructs to provide styles. Use CSS styles instead.
|
HTML style:<b>{{$D.WO.Id}}</b> CSS style:<div svmx-data=’{{$D.WO.Id}}’ style=’fontweight: bold’/>
|
To include custom styles or media queries (typically for header and footer), include a single HTMLstyle tag at the beginning and define all the relevant attributes.
|
<style type="text/css"> @page{ size:A4 landscape; @top-left { color: rgb(255,0,0); content:'
{{$D.Work_Order.Name}}'; font-size:18px;font-color:
red;font-weight:bold;text-align:left; } } .table {
color: #fff; } </style>
|