Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6827 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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.

Posted

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.

Posted

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...
  • 3 months later...
Posted

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
Posted

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.

Posted

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!

This topic is 6827 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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