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.

Get(PortalTableName)?

Featured Replies

Anyone know of way to get the table name of a portal the user is working in without being in a field in that portal?

For example, let's say I have a button in the portal and I want to be able to tell what the table name is for that portal when a user clicks on the button.

Why do I want this?....I want it so that I can write some generic code for use in all portals without having to hard code the portal table name into the script parameter.

Hi Matt:

FM8.5 has some new functions for Objects that may hold promise, but your profile reflects FM8. Short of that, If script parameters and field entry are both off the table then, no, I don't know of any way to achieve it. Maybe someone else will post a bright idea.

Your goal of unified scripting is admirable, though. If you're willing to put up with script parameters, you can get there!

  • Author

Woohoo!!!! I don't know why I didn't think of that. I have been using the Objects functions for tab control and some other things.

Thanks for getting my mind back on track!

Also, thanks for pointing out my profile error. I have fixed it now.

Lastly, I have no problem with script parameters at all. In fact, I can't live without them. The goal of this exercise is to reuse a button in multiple locations without having to change the script parameter everytime to reflect it's current context.

Thanks again!!

Thanks for getting my mind back on track!

You're quite welcome, Matt! I haven't worked in FM8.5 yet, so I could only reference Object functions in passing.

Glad we gotcha goin'! :beer:

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.