I am getting below error while accessing billingsh...
# suitescript
t
I am getting below error while accessing billingshedule in advanced pdf For "#list" list source: Expected a sequence or collection, but this has evaluated to a hash+string (wrapper: com.netledger.templates.model.StringModel <#if record.billingschedule?has_content> <table style="width: 100%; margin-top: 10px;"><#list record.billingschedule as billingschedule><#if billingschedule_index==0> <thead> <tr> <th align="center" colspan="3" style="padding: 10px 6px;">${billingschedule.billdate@label}</th> <th align="right" colspan="4" style="padding: 10px 6px;">${billingschedule.billamount@label}</th> </tr> </thead> </#if><tr> <td align="right" colspan="4">${billingschedule.billdate}</td> <td align="right" colspan="4">${billingschedule.billamount}</td> </tr> </#list><!-- end items --></table>
b
i believe your error is saying that record;.billingschedule is not a list
billing schedules is either a body level field
or a field on the item sublist
record.billingschedule would be a single body level billing schedule which shouldn't be accessed like a sublist
t
message has been deleted
I neeed to fetch this
b
im not sure that sublist is available
its certainly not under the billingschedule id
t
message has been deleted
see its available in XML
b
doesnt mean its available for template
and certainly not under the same id as the body level billingschedule
your error is saying that billingschedule is not a list
which suggests that its the body level billingschedule
if its available, it wouldn't be under the same id as the body level billingschedule field
if you try creating a template using the ui, you won't find that billing schedule list