Items are showing here in Price List, but ${record...
# advancedpdf
b
Items are showing here in Price List, but ${record.lines} is returning null.
Copy code
${record.customer.firstname} - Customer TESTING - ${customer.firstname} - ${record.trandate}   
  <#if record.lines?has_content>
    TESTING2
	</#if>
TESTING2 is not shown. I tested with copying the Standard Price List PDF template to my pdf template and it doesn't work neither. Seems like configuration or Form's error than PDF itself I guess
n
Are you sure the list is "lines" on the record? What are you expecting "lines" to contain?
To understand which template this is created from, is the standard template id "STDTMPLPRICELIST"? It's unfamiliar to me.
b
yes I copied it from "STDTMPLPRICELIST"
Also here it says it has lines
n
That would suggest, as it's a sublist, you need to define it as a list type the same as you would pricelevels. <#list record.pricelevels as lines><#list lines as line> However if you look further down it mentions the Customer record. Have you tried ${customer.firstname} ?
and then I noted you had tried that
b
Yes I tried both. As I said I copied template from Standard template and update my pdf template and it shows nothing
n
Copy code
${record.customer.firstname} - Customer TESTING - ${customer.firstname}
Sorry missed that last entry
That's perculiar. The customer is not a company is it? Only if it was, it wouldn't have firstname / lastname
Sorry, although I didn't have the answer, I thought I might be able to help you pick through this. Hopefully one of the adv pdf gurus will come online soon and be able to help more.
b
No problem. I really appreciate your help
Thank you for your time
That customer I tried is a company and it has company name not firstname/lastname I think
n
yeah that might explain it 🙂 You could check for a value in companyname and if it's empty try firstname / lastname
b
when I output ${record.trandate} it shows today date
just record.lines is empty same for record.pricelevels
n
have you actually treated the lines / pricelevels as a list, I'm not convinced you can just check for content if that's what you're doing
b
I tried both
even the standard template I copied from Standard Price List doesn't work
n
If you use the standard template does that work then?
(not a copy)
b
yes
If I select form as standard it works
But if I copy that template to my template and change form to mine, it does not work
n
If you customise the standard template without change and select as the template to use, does it work? Trying to understand if you have introduced an issue or it's just NS being, well, NS...
b
I just tried and it does not work
it shows no line at all
n
So that sounds like an NS issue and not an issue with what you're trying to achieve, you may need to speak to support.
b
Thank you for your confirmation
Account owner should contact them, right? Or can I reach out them?
n
I do not know your relationship with the account / netsuite to know that answer I'm afraid. As a partner that uses NetSuite I can call on behalf of our customers sometimes and sometimes I have to go the route of using our own support contract.
In either case you need to be one of the 3(?) people listed as a person that can talk to NetSuite Support. Also I suggest you call them and don't just raise a ticket, it's a pain navigating the menu system but they tend to respond quicker if you log it by phone. (just an observation over the last 11 years)
b
Thank you. I really appreciate your help