June 12, 200718 yr 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
June 12, 200718 yr 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
June 12, 200718 yr Author Thanks Ocean. I appreciate your comments in the first paragraph as well as the info on the Get (LayoutViewState) function. dan
Create an account or sign in to comment