Newbies fbap9620 Posted March 21, 2007 Newbies Posted March 21, 2007 I have a tab control with tab A and B in a layout. When I click tab A in record one, it shows tab A in record one. When I click tab B in record two, it shows tab B in record two. Then when i go to record one, it shows tab B also. How can I show tab A in record one and tab B in record two without click again? Thanks.
mr_vodka Posted March 21, 2007 Posted March 21, 2007 What are you trying to achieve by doing this? This is not really a good way to use tabs.
Newbies fbap9620 Posted March 21, 2007 Author Newbies Posted March 21, 2007 I used it in sales order. I have many products, which have different property. Although price/quanity property is same, others are different. So I use tab to show these different property.
mr_vodka Posted March 21, 2007 Posted March 21, 2007 Can you post a file or explain with greater detail. It seems as though your approach with this interaface may be off. You can script which tab to go to when you run a script by using the go to Object[] script step but I do not think this is what you are asking for.
durian Posted April 3, 2007 Posted April 3, 2007 This actually sounds like a topic I'm pursuing as well. I see that this topic is pretty old, but I'll post anyway. I have numerous Contacts, which can be one of Educators, Government or Media (a general Category). For each Contact I have a number of checkboxes... for instance - "Principal", "Teacher", "School Board", "Legislator", "Legislative Staff", "Reporter", etc. Obviously some of the checkboxes apply to Educators and not to Government or Media Contacts. I plan to put the checkboxes in a tab panel and am trying to find a way to display only the checkboxes appropriate to their particular general category. I see that I can have multiple tabs and control which tab is at front using the Object controls, but better would be to show ONLY the approriate tab (or somehow display only the proper checkboxes in ONE tab) so as to cut down on screen clutter. Any suggestions or ideas? Thanks, Nelson
mr_vodka Posted April 3, 2007 Posted April 3, 2007 Hi Nelson, What you are looking for is not so much a tab panel issue but rather what we call a conditional value list. You do not need multiple panels to do this. You basically want your checkboxes to change when you change your contact type. Do a search for +conditional +value +list with the plus signs and there should be lots of posts and samples. If you cant find any come back and let me know. Hope this helps.
fabriceN Posted April 8, 2007 Posted April 8, 2007 (edited) Hi, I do this with the recently announced LayoutProperties. For example, I can show tab A (where fields are accessible) when an invoice is not locked, and tab B (where fields are not accessible) when it's locked. Since you're using FileMaker 8.5, you can name tabs and perform a script on record change that goes to tab A or B depending on a criterion. Edited April 8, 2007 by Guest
David Jondreau Posted April 9, 2007 Posted April 9, 2007 I think the way to avoid this is to script the navigation. Instead of allowing a user to simply click next, eliminate the status area and create next/previous arrows. Write this script and link it to those buttons with the appropriate script parameter. Adjust your menus accordingly. If[0] Else If[Get(ScriptParemeter = "Next"] Go To Record Next Else If[Get(ScriptParemeter = "Previous"] Go To Record Previous End If Go to Field [fieldOnTabA] It'll be a bit of work to recreate the features of the status area, but it's a good thing to do for your db.
Recommended Posts
This topic is 6797 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