HOnza Posted September 21, 2005 Posted September 21, 2005 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
BrentHedden Posted September 21, 2005 Posted September 21, 2005 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.
Johnny5 Posted September 21, 2005 Posted September 21, 2005 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.
HOnza Posted September 21, 2005 Author Posted September 21, 2005 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
electrobase Posted October 12, 2005 Posted October 12, 2005 Loved this trick! really helped! (just disappointing that it's necessary...) How did you change the color of the "unselected" tabs? tia.
tgilders Posted February 8, 2006 Posted February 8, 2006 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?
Newbies HumblePie Posted March 24, 2006 Newbies Posted March 24, 2006 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.
JerryD Posted March 26, 2006 Posted March 26, 2006 Try here: http://fmforums.com/forum/showtopic.php?tid/173566/
tgilders Posted March 27, 2006 Posted March 27, 2006 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!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now