Jump to content

Layout filters?


NeoCryptic
 Share

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

Recommended Posts

i have a database with both software and non-software assets in it. i was told to keep it in the same table within the same database but with two different layouts. as it is now, there are the two layouts which i have a button to switch between when i get to something that looks like software to see it in the right form.

i was wondering...is there a way to set up a filter or something so that if someone was going through all the assets...if it got to a software asset, it would display it in the software form, and if it got to a non-software asset, it would display it in that form?

i am new to filemaker...i have done a little scripting in it so far, but i can't really see where to go with this.

thanks.

Link to comment
Share on other sites

If you script the navigation, i.e. make your own "forward" and "back" buttons, the script is pretty straightforward. You can use a single script with a separate script parameter for each button:

// First go to the next or previous record

If [ Get ( ScriptParameter ) = "forward" ]

. Go to record [next]

Else

. Go to record [previous]

End If

// Now look at the category field and change layout

If [ asset = "software" ]

. Go to layout [ software ]

Else

. Go to layout [ non-software ]

End If

Link to comment
Share on other sites

This topic is 5639 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
 Share

×
×
  • Create New...

Important Information

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