I pass the week number as a script parameter and then try to use getlayoutattributeobject to determine its contents. However I am getting a null string as my result. My next screenshot shows how I have labelled my fields. All help appreciated.Thanks
Use getField instead of getlayoutobjectattribute.
But a series of fields named week 1, week 2, etc are usually best replaced by a set of related records with one related record for each "week".
Thanks (as ever) Phil. Getfield did the trick.
BTW, getlayoutobjectattribute requires that you give each of those fields an object name via the inspector.