Brian Dunning's FileMaker Custom Functions

containerAttributesAsJSON ( container ; attributeName )

Returns container attributes as JSON array with added filetype if file has file extension

  Be the first to rate this function Log in to vote

Jonni™   Jonni™ - Show more from this author

Share on Facebook Share on Twitter

  Sample input:
containerAttributesAsJSON ( "myTable::myContainerField" ; "all" )
  Sample output:
{
"External Files" : "0",
"External Size" : "0",
"File Size" : "81226",
"Filename" : "myFile.pdf",
"Height" : "1024",
"Internal Size" : "81281",
"MD5" : "D4DDDF27D10F8326E0829814D6456FBC",
"Storage Type" : "Embedded",
"Width" : "752",
"filetype" : "pdf"
}

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Wraps the response of GetContainerAttribute in a JSON array.
Adds a filetype object if the file has an extension in the filename separated by a period.

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: