In order to bind the results of a child table assembly to a corresponding child table field in a database publish, you can use this binding code (JEXL Expression):
$t = $user.psoListTools.asList("",0);
foreach($child in $rx.asmhelper.assembleChildren($sys.assemblyItem,$sys.item,"CHILD_TABLE_NAME","TEMPLATE_NAME")) {
$t.add($rx.doc.extractBody($child));
}
$t
It’s slightly more complicated than probably originally intended by percussion because “assembleChildren” returns a List of assembly work items instead of content. Outputting these values without calling extractBody on each and every one yields crazy internal data being output to your database.