Jump to content
Sign in to follow this  
Donny Limbert

OnLayoutSizeChange & Get (WindowOrientation)

Recommended Posts

I thought I'd post this here since I'm primarily attempting to get this working on an iPhone & FMGO12. I'm trying to run a script during "OnLayoutSizeChange" using the "Get (WindowOrientation)". Basically, if the orientation on the iPhone changes, it should change to the appropriate layout. What am I missing here?

If [Get ( SystemPlatform ) = 3]
	Set Zoom Level [100%]
	Refresh Window []
	If [Get (WindowOrientation) < 0]
		Go to Layout ["iPhone 4 Landscape"]
	Else
		Go to Layout ["iPhone 4 Portrait"]
	End If
Else
	Go to Layout ["Data Entry - MBP"]
End If

Share this post


Link to post
Share on other sites

The OnLayoutSizeChange script trigger and the Get ( WindowOrientation ) function were introduced in FileMaker 13; FileMaker Go 12 does not have these features. Update to FileMaker Go 13.

Share this post


Link to post
Share on other sites

The OnLayoutSizeChange script trigger and the Get ( WindowOrientation ) function were introduced in FileMaker 13; FileMaker Go 12 does not have these features. Update to FileMaker Go 13.

Except if a person has an older device that can't be upgraded to IOS 6. Like me with an iPad 1!

Rick.

Share this post


Link to post
Share on other sites

Boy, an upgrade, I feel pretty dumb about now. That's all it was. I'll never tell how long I've been developing solutions but let's just say my first Mac was a Mac Plus

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.