Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

iphone, ipad, desktop, Win 10 what is the script in Layout Chooser to determing which Layout to load first?

Featured Replies

 What is the script in Layout Chooser to determing which Layout to load first?

Not sure what you mean by Layout Chooser...

What you need is an OnFirstWindowOpen script that will detect the device and the OS and go to the proper layout.

Look at the Get( Device ) and Get( SystemPlatform ) functions.

  • Author

I am trying to create a FM14 database(very small 30 records only), that will run on iPhone, iPad and Desktop. I am modifying something I found on the Web called "Vehicle Tracker". So far I am successful, short of the initial script that decides which "Menu" to load on which device. I have found in the Script Workspace a Layout called "Layout Chooser" which I edited to load my Desktop menu, cleverly called "Menu". This script appears to determine if it is being loaded by FM Go or a desktop. Haven't tried it yet in FM Go, but works just fine to find and load my Desktop menu. I now need to be able to either edit this script to load an iPad version or find some script that will discern between the three devices and load the appropriate "Menu".

My Layout Chooser file:

can you post a screenshot or PDF printout of that script?

You'll also need to determine how the script gets run.  Is through the OnFirstWindowOpen event?

can you post a screenshot or PDF printout of that script?

You'll also need to determine how the script gets run.  Is through the OnFirstWindowOpen event?

can you post a screenshot or PDF printout of that script?

You'll also need to determine how the script gets run.  Is through the OnFirstWindowOpen event?

  • Author

I thought i could copy and paste to this, but that didn't work, i will try this:open script.GIF

Hi Mike,

40 minutes ago, Mike Kelly said:

I thought i could copy and paste to this, but that didn't work

In FileMaker 14  you can copy the scripts as text. Script_Workspace CopyScript Text.png

4 hours ago, Mike Kelly said:

I thought i could copy and paste to this, but that didn't work, i will try this:open script.GIF

Ok, so build out that script using ELSE IF branches for all the things you want.  As mentioned earlier; use the Get( Device ) and Get( SystemPlatform ) as needed.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.