Discussions
SuiteWorld is the largest annual gathering of the NetSuite community! It will be held in Las Vegas on October 6-9, 2025. Our customers and partners look forward to SuiteWorld every year as a place to hear the latest from NetSuite, get hands-on learning, and connect with each other. Register now!
Join our Ask An Expert Live session featuring Angela Bayliss , Senior Principal Consultant at Jade Global, on June 26, 2025, 2–3 PM ET. With 21 years of experience, Angela will answer all your questions. Learn from one of the best! RSVP now.
LENGTH OF A LIST
Hi guys,
In a previous question someone help me with this code
<#list transHash["${payment.internalid}"] as transaction>${transaction.tranid}</#list>
And it brings me all the number bills in a payments but i need to have a especific lenght of 30 characters to that information. Someone knows how can i do it?
This is the code
<#if entityBankNo == "012">PTC</#if><#if entityBankNo != "012">PSC</#if>${setPadding(noCuenta,"left","0",18)}${setPadding(cuentaEmpresa,"left","0",18)}MXP${setPadding(formatAmount(tranAmount,"##.00"),"left","0",16)}<#if entityBankNo != "012">${setPadding(entity.companyname,"left"," ",30)}</#if><#if entityBankNo != "012">${setLength(TipoPago,2)}</#if><#if entityBankNo != "012">${setPadding(entityBankNo,"left","0",3)}</#if><#list transHash["${payment.internalid}"] as transaction>${transaction.tranid}</#list>