Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

I have modified a FMP template that has buttons that take the user to the Form View, List View, and Table View. I have added other tables to the template and, therefore, have other layouts. Is there a way to script these buttons so that they will show the form, list, or table depending on the layout? Or, do I have to have a seperate script for each layout? I presume it may have something to do with the Get (Script Parameter) function, but I am new to this function, so any advice is most welcome.

Thanks.

dan

Posted

depending on how you have your layout designed it may not be aesthetically acceptable to use the simply layout views to toggle between the default views. In this light many developers choose to create separate layouts tailored to each view, so that they can control and rely on static elements and and placement on each layout dependent on the view.

Then using scripting just going to the layout you choose and not bother with changing view states.

However there is a Get ( LayoutViewState ) that determines current state.

  • 0 (zero) if the database file is in View as Form view
  • 1 if the database file is in View as List view
  • 2 if the database file is in View as Table view

This topic is 6375 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
×
×
  • Create New...

Important Information

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