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.

switching layouts/tables in AS

Featured Replies

I'm building a 3-table file in fp7 and using Applescript to populate it from properties in Quark. I got the quark part and the filemaker part working.

I have layout "text component" open

and this works:

tell "Filemaker Pro"

tell document "nci07.fp7"

tell layout "text component"

set thisRecord to create new record tell thisRecord

set cell "key" to arbFile

end tell

end tell

but when I add this:

tell layout "text component"

set thisRecord to create new record tell thisRecord

set cell "pgCt" to funfun

end tell

end tell

end tell

end tell

It fails to find the cell.

Obviously, I'm not addressing the right table/layout. I've searched the forums and tried different variations but it only works with one or the other when I manually switch layouts. One set of this will fail. I've tried switching the layouts in the script but they're failing too.

I've tried figuring the properties to get clues there. I've used this:

tell application "FileMaker Pro"

name of cell 1 of layout 1

end tell

to figure out how FM is addressing the layouts/tables. But while I have 3 layouts, only layouts 2-3 are seen. Layout 1 is not.

What would you do, and keeping three tables? thanx, sam

  • Author

After failing to find solutions that worked in the forums, here's what I found. To switch layouts in AS:

tell application "FileMaker Pro"

tell document "nci07.fp7"

tell window 1

tell layout "component"

go to it

set thisRecord to create new record

tell thisRecord

set cell "key" to arbFile

end tell --thisrecord:component

end tell -- table component

end tell --window 1

end tell --doc 1

end tell --app fmpro

Probably has some bad form in it, but it's getting me over my hump, thanx, sam

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.