RE: Any solution for this Error?
var xmlTemplateFile = file.load(‘Templates/PDF Templates/template.xml’);
var renderer = render.create();
renderer.templateContent = xmlTemplateFile.getContents();
var recI = record.load({
type: ‘customrecord_emp_data_pr_process’,
id: 1609
});
var paySlip = renderer.addRecord({
templateName: ‘record’,
record: recI
});
var paySlipPdf = renderer.renderAsPdf();
<#if companyInformation.logoUrl?length != 0>
Error part is ?length != 0
if I am not including this part of code works perfectbut company logo not shown. I read your article but can’t understand or solution not find.
@battk
companyInformation.logoUrl is a url that probably contains an &, which must be escaped. Use one of the freemarker escape mechanisms to do so