Brian Dunning's FileMaker Custom Functions

doOnOrientationChange ( fmScript )

Triggers a designated FileMaker Script upon device orientation change

  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:
doOnOrientationChange ( myFileMakerScriptName )
  Sample output:
Fires a script with parameters "landscape" or "portrait"

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

Place this function as the calculation in a WebViewer and declare a FileMaker script to run on orientation change on an iPad or iPhone. This function will work on card windows which will not fire onLayoutSizeChange triggers in FileMaker GO.

The function will launch the script with a single word parameter [ "landscape" | "portrait" ] indicating which orientation the device has turned to.

 

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: