{"id":1266,"date":"2011-11-26T09:24:40","date_gmt":"2011-11-26T09:24:40","guid":{"rendered":"https:\/\/gofilemaker.de\/?p=1266"},"modified":"2022-03-29T07:13:44","modified_gmt":"2022-03-29T06:13:44","slug":"easy-navigation-between-filemaker-layouts","status":"publish","type":"post","link":"https:\/\/gofilemaker.de\/en\/2011\/11\/easy-navigation-between-filemaker-layouts\/","title":{"rendered":"Easy navigation between FileMaker layouts"},"content":{"rendered":"<p><img decoding=\"async\" class=\"alignleft size-full wp-image-1277\" title=\"Switch between FileMaker layouts with easy navigation\" src=\"https:\/\/gofilemaker.de\/wp-content\/uploads\/filemaker_navigation_artikelbild.gif\" alt=\"Switch between FileMaker layouts with easy navigation\" width=\"80\" height=\"122\">If a FileMaker <a href=\"https:\/\/gofilemaker.de\/en\/glossary\/database\/\" target=\"_self\" title=\"What is a database? A database (database system, DBS) is understood to be...\" class=\"encyclopedia\">Database<\/a> has more than one layout, a navigation is required. This can be realized in FileMaker in various ways. In the simplest case, individual buttons are simply placed on each layout with which other layouts can be called up. The disadvantage of this \"standard solution\" is that the buttons in each associated layout have to be adapted as soon as a new layout is added to the FileMaker solution. This makes the simplest solution the easiest, but also the most impractical. This example shows an approach using the FileMaker \"conditional formatting\" function and the use of a global text field with any number of repetitions. The result is a <a href=\"https:\/\/gofilemaker.de\/en\/glossary\/navigation-bar\/\" target=\"_self\" title=\"The navigation bar in gFM-Business The navigation bar is used in the gFM-Business...\" class=\"encyclopedia\">Navigation bar<\/a> with automatic display of the active selection. Following this article, you can download a FileMaker file with the navigation described and adapt it to your needs yourself. <!--more Weiterlesen &gt;&gt;&gt;--><\/p>\n<h2>Part 1: Basics, fields and conditional formatting<\/h2>\n<p><strong>Step 1:<\/strong><br>\nOpen the database administration in FileMaker and create a text field (\"app_register\"). Then click on the \"Options\" button to open the advanced field settings. In the dialog window, use the \"Storage\" tab, set the option \"Use global storage\" and in the \"Repetition\" section, enter the number of fields you need for your navigation. Create another field (\"MenuMarker Nr\") as a number field, also with global storage.<\/p>\n<p><strong>Step 2:<\/strong><br>\nSwitch the FileMaker to layout mode and place the fields \"app_register\" and \"MenuMarker Nr\". For the \"app_register\" field, you can now use the <a href=\"https:\/\/gofilemaker.de\/en\/glossary\/inspector\/\" target=\"_self\" title=\"What is the inspector in FileMaker? The inspector is the control center in FileMaker...\" class=\"encyclopedia\">Inspector<\/a> tab, specify how many repetitions are displayed and whether they are displayed vertically or horizontally.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1268\" title=\"Set repeating fields\" src=\"https:\/\/gofilemaker.de\/wp-content\/uploads\/Bild-7.jpg\" alt=\"\" width=\"321\" height=\"400\" srcset=\"https:\/\/gofilemaker.de\/wp-content\/uploads\/Bild-7.jpg 321w, https:\/\/gofilemaker.de\/wp-content\/uploads\/Bild-7-240x300.jpg 240w, https:\/\/gofilemaker.de\/wp-content\/uploads\/Bild-7-160x200.jpg 160w\" sizes=\"(max-width: 321px) 100vw, 321px\"><\/p>\n<p><strong>Step 3:<\/strong><br>\nTo highlight the active selection in the navigation, we use the FileMaker function \"conditional formatting\". Right-click on the repeating field \"app_register\" and select \"Conditional formatting\" from the context menu. You can see the necessary settings in the following illustration.<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-1267 alignnone\" title=\"FileMaker conditional formatting\" src=\"https:\/\/gofilemaker.de\/wp-content\/uploads\/bedingte-formatierung.jpg\" alt=\"\" width=\"600\" height=\"370\" srcset=\"https:\/\/gofilemaker.de\/wp-content\/uploads\/bedingte-formatierung.jpg 600w, https:\/\/gofilemaker.de\/wp-content\/uploads\/bedingte-formatierung-300x185.jpg 300w\" sizes=\"(max-width: 600px) 100vw, 600px\"><\/p>\n<p><strong>Step 4:<br>\n<\/strong>Switch the FileMaker to browse mode. You can now enter the names for your navigation points in the repeat field. Then enter a number (1 to the number of repetitions) for the active menu item in the \"MenuMarker no.\" field. The menu item should now be displayed in the selected formatting.<\/p>\n<p>This completes the first part of the navigation. Now a small FileMaker <a href=\"https:\/\/gofilemaker.de\/en\/glossary\/script\/\" target=\"_self\" title=\"What is a script in FileMaker? A script can be used in a FileMaker database to create any...\" class=\"encyclopedia\">Script<\/a> and a modified display of the navigation can be created.<\/p>\n<h2>Part 2 Navigation and scripts<\/h2>\n<p><strong>Step 1.<\/strong><br>\nSwitch FileMaker to layout mode and duplicate the \"app_register\" field. Then set the number of repetitions for the field to the value 1 to 1 using the inspector.<\/p>\n<p>Now you only see a field repetition, i.e. a simple text field. Now duplicate this field according to the number of entries for your navigation and set the current field number in each field (2 to 2, 3 to 3, ...). See the following illustration.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1269\" title=\"Individual repeating fields\" src=\"https:\/\/gofilemaker.de\/wp-content\/uploads\/Bild-8.jpg\" alt=\"\" width=\"331\" height=\"400\" srcset=\"https:\/\/gofilemaker.de\/wp-content\/uploads\/Bild-8.jpg 331w, https:\/\/gofilemaker.de\/wp-content\/uploads\/Bild-8-248x300.jpg 248w, https:\/\/gofilemaker.de\/wp-content\/uploads\/Bild-8-165x200.jpg 165w\" sizes=\"(max-width: 331px) 100vw, 331px\"><\/p>\n<p><strong>Step 2.<\/strong><br>\nScript for the navigation bar. You have two options at this point. You can assign a separate script to each field, or you can use a script in which various actions or scripts are executed after querying the script parameter. In either case, you must set the field value for the \"MenuMarker no.\" field to the repeat number for the active menu item.<\/p>\n<p>Example script \"MenuButton\":<br>\nOpen the script administration in FileMaker and create a new script. The script should be executed by each button of your navigation, the number of the field repetition is used as the script parameter. See the following illustration.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1270\" title=\"Script menu button\" src=\"https:\/\/gofilemaker.de\/wp-content\/uploads\/Script-Menutaste.jpg\" alt=\"\" width=\"600\" height=\"435\"><\/p>\n<p><strong>Step 3.<\/strong><br>\nSwitch FileMaker to layout mode. For the fields that you have created as duplicates, you now use the \"MenuButton\" script with the script parameter 1 to x, depending on the number of the field repetition.<\/p>\n<p><strong>Step 4.<\/strong><br>\nSwitch FileMaker to browse mode and test your navigation bar.<\/p>\n<p><a href=\"https:\/\/gofilemaker.de\/downloads\/GFM_GUI_fp7_fmp12.zip\"><img decoding=\"async\" class=\"alignnone size-full wp-image-13755\" src=\"https:\/\/gofilemaker.de\/wp-content\/uploads\/download-filemaker-beispiel.png\" alt=\"Download FileMaker sample file\" width=\"718\" height=\"60\" srcset=\"https:\/\/gofilemaker.de\/wp-content\/uploads\/download-filemaker-beispiel.png 718w, https:\/\/gofilemaker.de\/wp-content\/uploads\/download-filemaker-beispiel-300x25.png 300w\" sizes=\"(max-width: 718px) 100vw, 718px\"><\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>Wenn eine FileMaker Datenbank mehr als ein Layout hat, wird eine Navigation ben\u00f6tigt. Eine solche l\u00e4\u00dft sich in FileMaker auf verschiedene Art und Weise realisieren. Im einfachsten Fall werden einfach auf jedes Layout einzelne Tasten gesetzt, mit denen andere Layouts aufgerufen werden k\u00f6nnen. Nachteil dieser \u201eStandard-L\u00f6sung\u201c ist, da\u00df die Tasten in jedem zugeh\u00f6rigen Layout angepa\u00dft [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":32984,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":28,"footnotes":""},"categories":[1,5],"tags":[],"class_list":["post-1266","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-filemakerpro","category-tipps-anleitungen"],"_links":{"self":[{"href":"https:\/\/gofilemaker.de\/en\/wp-json\/wp\/v2\/posts\/1266","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gofilemaker.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gofilemaker.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gofilemaker.de\/en\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/gofilemaker.de\/en\/wp-json\/wp\/v2\/comments?post=1266"}],"version-history":[{"count":0,"href":"https:\/\/gofilemaker.de\/en\/wp-json\/wp\/v2\/posts\/1266\/revisions"}],"wp:attachment":[{"href":"https:\/\/gofilemaker.de\/en\/wp-json\/wp\/v2\/media?parent=1266"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gofilemaker.de\/en\/wp-json\/wp\/v2\/categories?post=1266"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gofilemaker.de\/en\/wp-json\/wp\/v2\/tags?post=1266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}