Greg58 Posted September 4, 2021 Posted September 4, 2021 I am not sure if this is possible and I cannot find information on it. I have several records and I want to flip between form view and list view which I can do. Is it possible to have two buttons (form and list) and place them on top of each other? When I press 'list' it will show list view but the form button. Then when I press the form button it will display the form view and the 'list' button. Thanks.
comment Posted September 4, 2021 Posted September 4, 2021 Do you really want to use the same layout for both form and list view?
comment Posted September 4, 2021 Posted September 4, 2021 (edited) I can't think of any practical use for this - but if you want, you could keep this very simple by using only one button defined to do a single step: View As [ Cycle ] (I am assuming that Table view is disabled in Layout Setup.) However, such button could only have a static label - e.g. 'Toggle View". For a dynamic label, you would need to use a button bar, where the labels can be calculated. So you could have a button bar with a single segment and calculate the label as something like = "View as " & Choose ( Get ( LayoutViewState ) ; "List" ; "Form" ) Now, if you wanted the button to show an icon in addition to or instead of the label, you would need to use a button bar with 2 segments, and hide each segment conditionally using the same Get() function*. Or just show both side-by-side to simulate Filemaker's native display in the Status Toolbar. --- (*) This also answers your original question "as asked": yes, you can have two separate buttons and hide each conditionally. Edited September 4, 2021 by comment
Greg58 Posted September 5, 2021 Author Posted September 5, 2021 Thanks again. I will take your hint and now have 2 layouts (list and form). I am not sure what I was thinking (or perhaps over thinking) 🤪
Recommended Posts
This topic is 1248 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