Child table filter

hi

how to filter child table on parent document life cycle? (server script)

thanks