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

A new collection (expanding in future) of tricks & examples for FM8's tab control has been published at 24U Software's web site.

Demonstrated techniquest include:

  • Dynamically calculated tab names
  • Go to Tab by script (with dynymically calculated target tab number)
  • Get ( ActiveTabNumber )
  • Unlimited nesting of tab controls to save even more space

Please enjoy the free example(s) and feel free to e-mail me with any questions or suggestions.

HOnza

ScriptedTabControl.zip

NestedTabs.zip

I saw a demo of this technique at DevCon, and I must say - I'm impressed! This example, although kinda extreme, shows what is possible with this tab control.

Is there anybody who can explain the scripted tabs to me a little better? I dont understand how the filed tabname in the table tabNames, which is only a single nonrepeating field can become a repeating field when shown thru a portal. The relationship uses a X operator. I dont get this example.

  • Author

Johnny5,

the main trick is in the GetNthRecord function in combination with Get(CurrentRepetitionNumber).

The X operator in the relationship simply brings all records from the related table unfiltered. The GetNthRecord then chooses only one specified record based on its parameter. And the Get(CurrentRepetitionNumber) function is used to provide different parameter for the GetNthRecord function in each repetition.

So the following calculation effectively maps related records to repetitions:

GetNthRecord(Extend(relationship::field); Get(CurrentRepetitionNumber))

I suggest you look at the John Mark Osborne's article on GetNthRecord.

HOnza

  • 3 weeks later...

Loved this trick! really helped! (just disappointing that it's necessary...)

How did you change the color of the "unselected" tabs?

tia.

  • 3 months later...

I like this implementation, however; I'm struggling to find a solution to the fact that tab names disappear in Find Mode. (due to the nature that they're calculated values)

Has anyone else tried to find an elegant answer to this problem?

  • 1 month later...
  • Newbies

The only way to keep values in find mode is to set globals , either manually or through a script step. Global calculations and locally stored fileds will all disappear.

Hope, but doubt, this helps.

Try here:

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

I found the post you recommend after writing in this thread. I did implement this solution and it is now running perfectly in my database. Thank you!

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.