September 21, 200520 yr 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
September 21, 200520 yr 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.
September 21, 200520 yr 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.
September 21, 200520 yr 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
October 12, 200520 yr Loved this trick! really helped! (just disappointing that it's necessary...) How did you change the color of the "unselected" tabs? tia.
February 8, 200619 yr 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?
March 24, 200619 yr 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.
March 27, 200619 yr 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