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.

Help me understand "Get ( ActiveLayoutObjectName )"

Featured Replies

I've done some searching and some testing but I can't seem to get Get ( ActiveLayoutObjectName ) to do anything for me.

My latest test is a very simple script.

Show Custom Dialog [ Message: Get ( ActiveLayoutObjectName ); Buttons: “OK”, “Cancel” ] 

The script is run by clicking on a button that is on a tab panel that has an object name set. All I need is to know what tab panel is active.

A tab panel becomes active only when you tab into it. You should use the GetLayoutObjectAttribute() function instead - see:

http://fmforums.com/forum/showtopic.php?tid/200703/

  • Author

I'm sure I'm missing something because its monday but I might be trying to get something thats not possible. I've even begun looking at Custom Functions but those don't seem to be what i need either.

So I have a set of tab tab1, tab2, tab3 etc.. with matching Object Name. On each tab is an Edit button. When the edit button is clicked I'd like to open a new window and go to an edit layout that matches the corresponding tab name.

What I pictured in my head was Show Related records in layout using a Calc where the Layout Name by calculation was "Get ( ActiveLayoutObjectName )"

But I see that wont work.

Unless I'm missing something I have to either specify a script parameter for each button or built in to the script something like

If [ GetLayoutObjectAttribute ( "tab1" ; "isFontTabPanel" ) ]

Do something

Else If [ GetLayoutObjectAttribute ( "tab2" ; "isFontTabPanel" ) ]

Do something else

End If

I love this many tab to single button thing to work because I picture having to had more tabs to the tab panel in the future and coping one button to do the edits would be idle.

I'm sure I'm missing something

No, I don't think so. Unfortunately, there is no function that will return the name of the current front tab directly - though you could use a custom function for this, e.g.

http://www.briandunning.com/cf/692

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.