Anyone familiar on how to list down a child record...
# advancedpdf
n
Anyone familiar on how to list down a child record in a custom record? I tried this:
Copy code
<#if record.rechmachcustrecord_test?has_content><#list record.rechmachcustrecord_test as line>
TEST
</#list></#if>
n
Presuming you have the data as a list I think you should be able to access each record using the line.myfieldname syntax as you would an item line item record.
n
I have data, which is visible in UI. But when I try to use ? size, the result is -1
n
what do you mean "when i try to use ? size" can you show your code?
<#if record.rechmachcustrecord_test?has_content> <#list record.rechmachcustrecord_test as line> ${line.size} </#list> </#if> Is pretty much what you're looking at.
n
Copy code
<#if record.recmachcustrecord_abc?has_content>
	<p> Has Content = T </p>
	// Output: Has Content = T
	<p> ${record.recmachcustrecord_abc?size} </p>
	// Output: -1
</#if>
<#list record.recmachcustrecord_abc as abc>
	<p> ${abc.fieldname} </p>
	// wont populate because the size of the list is -1
</#list>