That's potentially pretty tricky stuff.
Picture a button on the portal row that would capture that item's key ID, then create a new related record and set that ID into a "lineParentID" field. Then you'd want a visual indicator in the portal of the "nested" records.
Google: FileMaker hierarchical portal
to see some examples.
Many thanks. Followed your advice and it worked.
Best wishes from Sydney Australia.