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.

Featured Replies

Is it possible to set a trigger on the tabs that sets one global field/one variable?

For example: I have seven tabs: Monday, Tuesday....Sunday.

Clicking each tab would set a variable: Mon, Tue... and so on accordingly.

But I can't assign script parameter to each tab - it sees it as one script with one parameter.

I can name each tab as object, but how do I extract object name and use it for changing data in the field/variable?

I hope it's clear...

Hi Monarch

You can use the Get ( TriggerTargetPanel) function to give you the index number and object name of the panel that you are switching to, and you use the OnPanelChange trigger to run a script to make use of that.

I've done a simple test file for you to take a look at if that helps?

 

TEST.fmp12

2 hours ago, Monarch said:

I have seven tabs: Monday, Tuesday....Sunday.

Are you sure you need to have seven different tabs? I would suspect seven buttons (possibly arranged to look like tabs) would be sufficient.

  • Author
16 hours ago, rwoods said:

Hi Monarch

You can use the Get ( TriggerTargetPanel) function to give you the index number and object name of the panel that you are switching to, and you use the OnPanelChange trigger to run a script to make use of that.

I've done a simple test file for you to take a look at if that helps?

 

TEST.fmp12

Thank you rwoods!

As always - it's simple... These "get" functions can really get me.

Thanks again!

14 hours ago, comment said:

Are you sure you need to have seven different tabs? I would suspect seven buttons (possibly arranged to look like tabs) would be sufficient.

Thank you comment.

Yeah, I am considering the same thing - buttons vs. tabs...

Not sure what would be more efficient:

a. multi tabs with same portals in each tab, but different filtering.

or

b. buttons, as you said, with one portal, but more complex dynamic filtering.

But here my concern is - if I have thousands records in the portal to filter, would it slow it down filtering if I use buttons?

If you have thousands of records, then you probably don't want to use portal filtering at all. In any case, this is a separate issue. My point was that you probably don't want (and don't need) to replicate every object shown in the tab control 7 times. And have to carry out every design change 7 times.

  • Author
On 2/11/2017 at 3:02 AM, comment said:

If you have thousands of records, then you probably don't want to use portal filtering at all.

Well, then how do I do it, if not filtering, thru relationship?

And yeah, you are right about 7 tabs. It didn't feel right, so I am going to do it with seven buttons.

9 hours ago, Monarch said:

Well, then how do I do it, if not filtering, thru relationship?

I can only guess (since you never explained what exactly your filtering does), but in general you would have the buttons set a global field instead of a variable, and instead of filtering the portals, you would filter the underlying relationship by adding the global field as a matchfield.

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.