where the parameters of the function GetContainerAttribute () are field and attribute, I want to get the filename (only) of a photo in each container as the script loops from container to container. I was hoping I could use Get(activefieldname) to populate a variable and then use that variable in the GetContainerAttribute function, but it does not appear that FMP will accept a string variable as a parameter. Any suggestions or ideas on how I might accomplish this? THanks.
Only certain script steps and functions use the actual name as text to reference a field. This function is not one of them.
This might work:
set field [ table::globalContainerField ; getField ( $field ) ]
then use the getContainerAttribute function on the global container field.
$field needs to be text in the format: tableOccurrence::field