Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

MBS FileMaker Plugin Example Databases

Admin Console Login

All examples are included with download of MBS FileMaker Plugin.

Admin Console Login.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts1
Value Lists0
Custom Functions0
Custom Menus0
File Options
Default custom menu set[Standard FileMaker Menus]
When opening file
Minimum allowed version12.0
Login usingAccount Name; Account= Admin
Allow user to save passwordOff
Require iOS passcodeOff
Switch to layoutOff
Hide all toolbarsOff
Script triggers
OnFirstWindowOpenOff
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
Admin Console
3 fields defined, 1 record
Admin Console

Fields

Table Name: Admin Console - 3 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
UsernameNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      PasswordNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          ServerURLNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Global
          • Repetitions: 1
          • Index Language: German

                Layout Objects: Admin Console

                Regular Fields

                Field Name: Admin Console::Username
                Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                • Top: 52 pt
                • Left: 138 pt
                • Bottom: 73 pt
                • Right: 391 pt
                • Anchoring: Left, Top
                Field Format:
                • Edit Box
                Field Behavior:
                • Allow field to be entered: In Find mode, In Browse mode
                • Touch keyboard type: Default for Data Type
                • Go to next field using: Tab key
                Yes

                Field Name: Admin Console::Password
                Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                • Top: 75 pt
                • Left: 138 pt
                • Bottom: 96 pt
                • Right: 391 pt
                • Anchoring: Left, Top
                Field Format:
                • Edit Box
                Field Behavior:
                • Allow field to be entered: In Find mode, In Browse mode
                • Touch keyboard type: Default for Data Type
                • Go to next field using: Tab key
                Yes

                Field Name: Admin Console::ServerURL
                Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                • Top: 15 pt
                • Left: 138 pt
                • Bottom: 36 pt
                • Right: 391 pt
                • Anchoring: Left, Top
                Field Format:
                • Edit Box
                Field Behavior:
                • Allow field to be entered: In Find mode, In Browse mode
                • Touch keyboard type: Default for Data Type
                • Go to next field using: Tab key
                No

                Buttons

                Button PropertiesCoordinatesScript/Script Step
                  Type:
                • Text: Login
                • Top: 58 pt
                • Left: 442 pt
                • Bottom: 96 pt
                • Right: 614 pt
                • Anchoring: Left, Top
                Perform Script [ “Login” ]

                Scripts:


                Web Viewer Controls

                Web Viewer Control PropertiesCoordinatesWeb Address
                  Object Name:
                • web
                  Additional Properties:
                • Allow interaction with web viewer content
                • Display progress bar
                • Display status messages
                • Automatically encode URL
                • Top: 102 pt
                • Left: 22 pt
                • Bottom: 688 pt
                • Right: 1014 pt
                • Anchoring: Left, Top
                Admin Console::ServerURL

                Script Hierarchy

                Login

                Script NameLogin
                Run script with full access privilegesOff
                Include In MenuNo
                Layouts that use this script
                Scripts that use this script
                  Script Definition
                  Script Steps
                  • Set Variable [ $JS; Value:"function SendEvent(o, name) { // send event to JavaScript event listeners¶ var evt = document.createEvent('Events'); evt.initEvent(name, true, true); o.dispatchEvent(evt); } // set user name¶ o = document.getElementById('inputUserName'); o.focus(); o.value = '" & Admin Console::Username & "'; SendEvent(o, 'input'); SendEvent(o, 'blur'); // set password¶ o = document.getElementById('inputPassword'); o.focus(); o.value = '" & Admin Console::Password & "'; SendEvent(o, 'input'); SendEvent(o, 'blur'); document.getElementById('LOGN_Butn_SignIn').click();" ]
                  • Set Variable [ $r; Value:MBS("WebView.RunJavaScript"; "web"; Substitute ( $JS; ¶; Char(10) )) ]
                  Fields used in this script
                  Scripts used in this script
                    Layouts used in this script
                      Tables used in this script
                      Table occurrences used by this script
                      Custom Functions used by this script
                        Custom menu set used by this script

                          Download example: Admin Console Login

                          Used functions: