tmHeadingsAssn function

Assignment function for the 'headings' attribute