Skip 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.

Get ( ActiveLayoutObjectName )

Featured Replies

I need to use the Get ( ActiveLayoutObjectName ) function for some window positioning scripts.  However, I can't seem to find a way to actually get the active layout object name.  ^_^

 

The example from Filemaker's own website states:  "There is a named button on the current layout called cancelButton. When the focus is on the button, Get(ActiveLayoutObjectName) returns cancelButton."

 

Perhaps I'm unclear on the concept of "focus".  I have a Button on my layout called "test".  I have named the button/object "test" using the Position Tab in the Inspector.  I made a simple script using only the Show Custom Dialog step which returns Get ( ActiveLayoutObjectName ).  Clicking on the button returns null (blank) for the Custom Dialog.  Similarly, Data Viewer (showing Get ( ActiveLayoutObjectName )) shows nothing when clicking the button.  What do I need to do in order to "focus" on a button?

 

Thank you for your help.

2 minutes ago, davidnickerson said:

What do I need to do in order to "focus" on a button?

Tab into it.

If you want the script to know how it was called, use the script parameter.

If I'm correct you'd need to have a script that goes to the button to make it active. If you click the button it won't be active. So you might need a hidden object whose name you can get underneath your button.

See my attached example file.

Hope this helps.

Agi

test.fmp12

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.