Problem to add fields in Custom Item Label PDF/HTML Template

Hello all,
I’m using a Custom Item Label PDF/HTML Template.
I brought it to the look we need.
However, I was unable to include some fields in it.
For example, I need the template to have a field with the product number. There is a field in HTML ${label.id}, but this field shows the internal number of the item record.
The factory product number of the item is in the field “itemid”. It is shown well in NS Item form in the field ITEM NAME/NUMBER, and NS shows id for this field as “itemid”.
But when I try to add to HTML ${label.itemid}, it is not displayed on printing label.
I tried to switch from HTML mode to visual mode and add a field through the wizard. I click plus and a window with list opens where I can select fields to add. However, the field “itemid” are not in this list.
What does this mean? That I can only add fields that are shown in wizard window? But there are only a few of them there.
For example, I need field “inventorynumber”, in my DB this field contain serial number and I’d like to print it on a label.
This field are not in wizard list so I can not add it in visual editor.
And if I try to add ${label.inventorynumber} in HTML, this field are not shown in printing label.
So, I see that both “itemid” and “inventorynumber” are not in wizard list , maybe it is the reason why I can not add them to my label?
And when I write these field ID in HTML, nothing is shown in label.
So, how can I add these fields?

HTML:


<?xml version=”1.0″?><!DOCTYPE pdf PUBLIC “-//big.faceless.org//report” “report-1.1.dtd”>
<pdf>
<head>
<style>
table {
width: 282pt;
height: 140pt;
page-break-inside: avoid;
}

td p {
font: Helvetica;
font-size: 12pt;
padding: 2pt;
text-align: left;
vertical-align: middle;
}
</style>
</head>

<body padding=”2pt” size=”4in x 2in”>
<#list records as label>
<table border=”0″>

<tr>
<td rowspan=”2″ border=”1″ width=’110pt’ vertical-align=”top”>
<img src=”${companyInformation.logoUrl}” style=”float: left; margin: 1px; width: 25%; height: 25%” /> </td>
<td width=”172pt” border=”1″>${label.name}</td>
</tr>

<tr>
<td border=”1″>${label.id}</td>
</tr>

<tr>
<td colspan=”2″ border=”1″> SN: ${label.serialnumber} </td>
</tr>

<tr>
<td colspan=”2″ border=”1″ style=”text-align: center; vertical-align: top; padding-bottom:5pt”>
<barcode codetype=”code128″ showtext=”false” value=”${label.skuUpcBarcode?html}”/>
</td>
</tr>
</table>
</#list>
</body>
</pdf>

 


So you see that I need to change ${label.id} to ${label.itemid} and ${label.serialnumber} to ${label.inventorynumber} but this does not work.

 

Rookie Asked on October 18, 2023 in Items.
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Become a Sponsor   Become a Sponsor