setSubAttrInList function

Set subattributes within a list by reference