PDF template for a custom record having several child record

<?xml version="1.0"?><!DOCTYPE pdf PUBLIC "-//big.faceless.org//report" "report-1.1.dtd">
<pdf>
<head>
	<link name="NotoSans" type="font" subtype="truetype" src="${nsfont.NotoSans_Regular}" src-bold="${nsfont.NotoSans_Bold}" src-italic="${nsfont.NotoSans_Italic}" src-bolditalic="${nsfont.NotoSans_BoldItalic}" bytes="2" />
	<#if .locale == "zh_CN">
		<link name="NotoSansCJKsc" type="font" subtype="opentype" src="${nsfont.NotoSansCJKsc_Regular}" src-bold="${nsfont.NotoSansCJKsc_Bold}" bytes="2" />
	<#elseif .locale == "zh_TW">
		<link name="NotoSansCJKtc" type="font" subtype="opentype" src="${nsfont.NotoSansCJKtc_Regular}" src-bold="${nsfont.NotoSansCJKtc_Bold}" bytes="2" />
	<#elseif .locale == "ja_JP">
		<link name="NotoSansCJKjp" type="font" subtype="opentype" src="${nsfont.NotoSansCJKjp_Regular}" src-bold="${nsfont.NotoSansCJKjp_Bold}" bytes="2" />
	<#elseif .locale == "ko_KR">
		<link name="NotoSansCJKkr" type="font" subtype="opentype" src="${nsfont.NotoSansCJKkr_Regular}" src-bold="${nsfont.NotoSansCJKkr_Bold}" bytes="2" />
	<#elseif .locale == "th_TH">
		<link name="NotoSansThai" type="font" subtype="opentype" src="${nsfont.NotoSansThai_Regular}" src-bold="${nsfont.NotoSansThai_Bold}" bytes="2" />
	</#if>
    <style type="text/css">body{
		font-family: Arial, Helvetica, sans-serif;
      }
      table th,td{
 font-weight: bold;
      }
</style>
</head>
<body padding="0.5in 0.5in 0.5in 0.5in" size="Letter-LANDSCAPE">
    <table border="1" style="width: 892px;"><tr>
	<td colspan="6" rowspan="2" style="width: 472px; height: 55px; background-color: rgb(255, 204, 0);  padding-top: 22px; border-top: 1px solid black; border-left: 1px solid black; border-bottom: 1px solid black; border-right-color: rgb(255, 204, 0); font-size: 14px; padding-left:3px;"><i><b>Graph Tech Customer Profile &amp; Management Plan&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</b></i></td>
	<td style="width: 200px; height: 9px; font-size: 8px; background-color: rgb(255, 204, 0);    border-left-color:rgb(255, 204, 0); border-top: 1px solid black; border-right: 1px solid black; border-bottom-color:rgb(255, 204, 0); border-top-width: 1px; border-top-style: solid; border-right-width: 1px; border-right-style: solid;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Opportunity Value:</td>
	<td colspan="2" style="width: 272px; height: 19px; background-color: rgb(255, 204, 0); font-size: 8px; border: 1px solid black;">
	<p>${record.custrecord_jj_opportunityval_gtil19}</p>
	</td>
	</tr>
	<tr>
	<td style="width: 200px; height: 23px; font-size: 8px; background-color: rgb(255, 204, 0); padding-top: 13px; border-right: 1px solid black; border-bottom: 1px solid black; border-top-color: rgb(255, 204, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Probability:</td>
	<td colspan="2" style="width: 272px; height: 23px; background-color: rgb(255, 204, 0); font-size: 8px; border: 1px solid black;">
	<p>${record.custrecord_jj_probability_gtil19}</p>
	</td>
	</tr>
	<tr>
	<td colspan="2" style="width: 227px; background-color: rgb(255, 204, 0); font-size: 8px; border: 1px solid black;">Date:</td>
	<td style="width: 106px; background-color: rgb(255, 204, 0); font-size: 8px; border: 1px solid black;">
	<p>&nbsp;${record.custrecord_jj_date_gtil19}</p>
	</td>
	<td colspan="6" rowspan="2" style="width: 548px; height: 34px; background-color: rgb(255, 204, 0); font-size: 9px; padding-top: 21px; border: 1px solid black; text-allign:center;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;COMPETITION<!-- <span style="content:\27F7;">⟷</span>-->
	<p>&nbsp;</p>

	<p>&nbsp;</p>
	</td>
	</tr>
	<tr>
	<td colspan="2" style="width: 227px; height: 15px; background-color: rgb(255, 204, 0); font-size: 8px; border: 1px solid black;">Salesperson:</td>
	<td style="width: 106px; height: 15px; background-color: rgb(255, 204, 0); font-size: 8px; border: 1px solid black;">
	<p>&nbsp;${record.custrecord_jj_salesperson_gtil19}</p>
	</td>
	</tr>
	<tr>
	<td colspan="2" rowspan="3" style="width: 227px; height: 74px; font-size: 8px; background-color: rgb(255, 204, 0); border: 1px solid black;">Customer/Prospect:</td>
	<td colspan="1" rowspan="3" style="width: 106px; height: 74px; font-size: 8px; background-color: rgb(255, 204, 0); border: 1px solid black;">
	<p>&nbsp;${record.custrecord_jj_customer_gtil19}</p>
	</td>
	<td colspan="4" rowspan="1" style="width: 273px; height: 28px; font-size: 8px; background-color: rgb(255, 204, 0); border: 1px solid black;">Competition Type:</td>
	<td colspan="2" rowspan="1" style="width: 272px; height: 28px; font-size: 8px; background-color: rgb(255, 204, 0); border: 1px solid black;">${record.custrecord_jj_competitiontypesub_gtil19}</td>
	</tr>
	<tr>
	<td colspan="4" rowspan="1" style="width: 273px; font-size: 8px; background-color: rgb(255, 204, 0); border: 1px solid black;">Specify Competitor(s):</td>
	<td colspan="2" rowspan="1" style="width: 272px; font-size: 8px; background-color: rgb(255, 204, 0); border: 1px solid black;">${record.custrecord_jj_specifycompetitor_gtil19}</td>
	</tr>
	<tr>
	<td colspan="4" rowspan="1" style="width: 273px; height: 1px; font-size: 8px; background-color: rgb(255, 204, 0); border: 1px solid black;">
	<p style="text-align:left;">My Position vs. Competition:</p>
	</td>
	<td colspan="2" rowspan="1" style="width: 272px; height: 1px; font-size: 8px; background-color: rgb(255, 204, 0); border: 1px solid black;">
	<p><span id="cke_bm_7269S" style="display: none;">&nbsp;</span>${record.custrecord_jj_myposition_gtil19}</p>
	</td>
	</tr>
	<tr>
	<td colspan="2" rowspan="2" style="width: 227px; height: 14px; font-size: 8px; background-color: rgb(255, 204, 0); border: 1px solid black;">Opportunity Details</td>
	<td colspan="1" rowspan="2" style="width: 106px; height: 14px; font-size: 8px; background-color: rgb(255, 204, 0); border: 1px solid black;">
	<p>${record.custrecord_jj_oppurtunitydtls_gtil19}</p>
	</td>
	<td colspan="4" rowspan="1" style="width: 273px; font-size: 8px; background-color: rgb(255, 204, 0); border: 1px solid black;">&nbsp;</td>
	<td colspan="2" rowspan="1" style="width: 272px; font-size: 8px; background-color: rgb(255, 204, 0); border: 1px solid black;">&nbsp;</td>
	</tr>
	<tr>
	<td colspan="4" rowspan="1" style="width: 273px; height: 1px; font-size: 8px; background-color: rgb(255, 204, 0); border: 1px solid black;">&nbsp;</td>
	<td colspan="2" rowspan="1" style="width: 272px; height: 1px; font-size: 8px; background-color: rgb(255, 204, 0); border: 1px solid black;">&nbsp;</td>
	</tr>
	<#if record.recmachcustrecord4?has_content><#list record.recmachcustrecord4 as recmachcustrecord4><#if recmachcustrecord4_index == 0>
	<tr>
	<td style="width:5px; height: 17px; font-size: 10px; padding-top: 13px; border: 1px solid black; background-color: rgb(255, 204, 0); ">Sl No</td>
	<td colspan="6" rowspan="1" style="width: 111px; height: 17px; font-size: 10px; padding-top: 13px; border: 1px solid black; background-color: rgb(255, 204, 0); ">IDEAL CUSTOMER CRITERIA</td>
	<td colspan="2" style="width: 272px; height: 17px; font-size: 10px; padding-top: 13px; border: 1px solid black; background-color: rgb(255, 204, 0);">Match to criteria(-5 to +5)</td>
	</tr>
	</#if>
	<tr>
	<td style="width: 5px; height: 17px; font-size: 12px; padding-top: 13px; border: 1px solid black; background-color: rgb(255, 204, 0); ">${recmachcustrecord4?counter}</td>
	<td colspan="6" style="width: 111px; height: 17px; font-size: 12px; padding-top: 13px; border: 1px solid black; background-color: rgb(255, 204, 0); ">${recmachcustrecord4.custrecord5}</td>
	<td colspan="2" style="width: 272px; height: 17px; font-size: 12px; padding-top: 13px; border: 1px solid black; background-color: rgb(255, 204, 0);">${recmachcustrecord4.custrecord6}</td>
	</tr>
	</#list></#if><!--<tr>
	<td style="width: 225px; height: 24px; font-size: 12px; padding-top: 13px; border: 1px solid black;background-color: rgb(255, 204, 0); ">2.</td>
	<td colspan="6" rowspan="1" style="width: 111px; height: 24px; font-size: 12px; padding-top: 13px; border: 1px solid black; background-color: rgb(255, 204, 0); ">&nbsp;</td>
	<td colspan="2" style="width: 398px; height: 24px; font-size: 12px; padding-top: 13px; border: 1px solid black; background-color: rgb(255, 204, 0); ">&nbsp;</td>
	</tr>
	<tr>
	<td style="width: 225px; height: 24px; font-size: 12px; padding-top: 13px; border: 1px solid black; background-color: rgb(255, 204, 0); ">3.</td>
	<td colspan="6" rowspan="1" style="width: 111px; height: 24px; font-size: 12px; padding-top: 13px; border: 1px solid black; background-color: rgb(255, 204, 0); ">&nbsp;</td>
	<td colspan="2" style="width: 398px; height: 24px; font-size: 12px; padding-top: 13px; border: 1px solid black; background-color: rgb(255, 204, 0); ">&nbsp;</td>
	</tr>
	<tr>
	<td style="width: 225px; height: 24px; font-size: 12px; padding-top: 13px; border: 1px solid black; background-color: rgb(255, 204, 0); ">4.</td>
	<td colspan="6" rowspan="1" style="width: 111px; height: 24px; font-size: 12px; padding-top: 13px; border: 1px solid black; background-color: rgb(255, 204, 0); ">&nbsp;</td>
	<td colspan="2" style="width: 398px; height: 24px; font-size: 12px; padding-top: 13px; border: 1px solid black; background-color: rgb(255, 204, 0); ">&nbsp;</td>
	</tr>
	<tr>
	<td style="width: 225px; height: 24px; font-size: 12px; padding-top: 13px; border: 1px solid black; background-color: rgb(255, 204, 0); ">5.</td>
	<td colspan="6" rowspan="1" style="width: 111px; height: 24px; font-size: 12px; padding-top: 13px; border: 1px solid black; background-color: rgb(255, 204, 0); ">&nbsp;</td>
	<td colspan="2" style="width: 398px; height: 24px; font-size: 12px; padding-top: 13px; border: 1px solid black; background-color: rgb(255, 204, 0); ">&nbsp;</td>
	</tr>
--><#if record.recmachcustrecord_jj_parent?has_content><#list record.recmachcustrecord_jj_parent as recmachcustrecord_jj_parent><#if recmachcustrecord_jj_parent_index == 0>
	<tr>
	<td colspan="2" style="width: 227px; height: 24px; font-size: 10px; padding-top: 13px; border: 1px solid black;">
	<p>BUYING INFLUENCE INVOLVED</p>
	<!--<p style="font-size: 7px;">Name, Title, Location</p>--></td>
	<td style="width: 106px; height: 24px; font-size: 10px; padding-top: 13px; border: 1px solid black;">ROLE</td>
	<td colspan="4" rowspan="1" style="width: 273px; height: 24px; font-size: 10px; padding-top: 13px; border: 1px solid black;">DEGREE OF INFLUENCE</td>
	<td colspan="2" rowspan="1" style="width: 272px; height: 24px; font-size: 10px; padding-top: 13px; border: 1px solid black;">BUYER'S MODE</td>
	</tr>
	</#if>
	<tr>
	<td colspan="2" style="width: 227px; border: 1px solid black; font-size: 8px;">${recmachcustrecord_jj_parent.custrecord_jj_buyinginfluencechil_gtil19}</td>
	<td style="width: 106px; border: 1px solid black; font-size: 8px;">${recmachcustrecord_jj_parent.custrecord_jj_role_gtil19}</td>
	<td colspan="4" rowspan="1" style="width: 273px; border: 1px solid black; font-size: 8px;">${recmachcustrecord_jj_parent.custrecord_jj_buyinginfluencechd_gtil19}</td>
	<td colspan="2" rowspan="1" style="width: 272px; border: 1px solid black; font-size: 8px;">${recmachcustrecord_jj_parent.custrecord_jj_buyermode_gtil19}</td>
	</tr>
	</#list></#if></table>

<table style="width: 349px; border: 1px solid black; float:left; padding-top:-18px; border-collapse:collapse "><tr>
	<td style="width: 343px; border: 1px solid black; font-size: 10px;">
	<p>CURRENT POSITION AND PARTS BEING SUPPLIED</p>
	</td>
	</tr>
	<#if record.recmachcustrecord_jj_parentid?has_content><#list record.recmachcustrecord_jj_parentid as recmachcustrecord_jj_parentid><#if recmachcustrecord_jj_parentid_index == 0>
	<tr>
	<td style="width: 343px;  border: 1px solid black; font-size: 8px;">STRENGTHS</td>
	</tr>
	</#if>
	<tr>
	<td style="width: 343px;  border: 1px solid black; font-size: 8px;">${recmachcustrecord_jj_parentid.custrecord_jj_strengths_gtil19}</td>
	</tr>
	</#list></#if><!--<tr>
	<td style="width: 343px;  border: 1px solid black; font-size: 8px;">&nbsp;</td>
	</tr>
	<tr>
	<td style="width: 343px;  border: 1px solid black; font-size: 8px;">&nbsp;</td>
	</tr>
	<tr>
	<td style="width: 343px;  border: 1px solid black; font-size: 8px;">&nbsp;</td>
	</tr>
	<tr>
	<td style="width: 343px;  border: 1px solid black;">&nbsp;</td>
	</tr>--></table>

<table style="width: 542px; border: 1px solid black; float: left; padding-top: -18px; "><tr>
	<td colspan="3" style="border: 1px solid black; border-left:none; width: 237px; font-size: 10px;">ACTIVITIES AND ACTIONS(TARGET AREA, PARTS ETC. POTENTIAL VALUE OF TARGET BUISNESS)</td>
	</tr>
	<#if record.recmachcustrecord_jj_parents?has_content><#list record.recmachcustrecord_jj_parents as recmachcustrecord_jj_parents><#if recmachcustrecord_jj_parents_index == 0>
	<tr>
	<td style="border-top: 1px solid rgb(0, 0, 0); border-bottom: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); border-left: hidden rgb(0, 0, 0); width: 237px; font-size: 8px;">WHAT</td>
	<td style="width: 110.6px; border: 1px solid black; font-size: 8px;">WHEN</td>
	<td style="width: 181px; border: 1px solid black; font-size: 8px;">WHO</td>
	</tr>
	</#if>
	<tr>
	<td style="border: 1px solid black; width: 237px; font-size: 8px; border-top: 1px solid black; border-bottom: 1px solid black; border-right: 1px solid black; border-left:hidden; ">${recmachcustrecord_jj_parents.custrecord_jj_what_gtil19}</td>
	<td style="width: 110.6px; border: 1px solid black; font-size: 8px;">${recmachcustrecord_jj_parents.custrecord_jj_when_gtil19}</td>
	<td style="width: 181px; border: 1px solid black; font-size: 8px;">${recmachcustrecord_jj_parents.custrecord_jj_who_gtil20}</td>
	</tr>
	<!--<tr>
	<td style="border: 1px solid black; width: 237px;">&nbsp;</td>
	<td style="width: 110.6px; border: 1px solid black;">&nbsp;</td>
	<td style="width: 181px; border: 1px solid black;">&nbsp;</td>
	</tr>
	<tr>
	<td style="border: 1px solid black; width: 237px;">&nbsp;</td>
	<td style="width: 110.6px; border: 1px solid black;">&nbsp;</td>
	<td style="width: 181px; border: 1px solid black;">&nbsp;</td>
	</tr>
	<tr>
	<td style="border: 1px solid black; width: 237px;">&nbsp;</td>
	<td style="width: 110.6px; border: 1px solid black;">&nbsp;</td>
	<td style="width: 181px; border: 1px solid black;">&nbsp;</td>
	</tr>
	<tr>
	<td style="border: 1px solid black; width: 237px;">&nbsp;</td>
	<td style="width: 110.6px; border: 1px solid black;">&nbsp;</td>
	<td style="width: 181px; border: 1px solid black;">&nbsp;</td>
	</tr>--></#list></#if></table>

<p>&nbsp;</p>
</body>
</pdf>

Leave a comment

Your email address will not be published. Required fields are marked *