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

MBS FileMaker Plugin Example Databases

Rate calculation

All examples are included with download of MBS FileMaker Plugin.

Rate calculation.fmp12

Overview
Tables 1
Relationships 0
Layouts 1
Scripts 2
Value Lists 0
Custom Functions 0
Custom Menus 24
File Options
Default custom menu set [Standard FileMaker Menus]
Default theme Apex Blue
When opening file
Minimum allowed version 12.0
Login using Account Name; Account= Admin
Allow user to save password On
Require iOS passcode Off
Show Sign-in fields On
Switch to layout Off
Hide all toolbars Off
Script triggers
OnFirstWindowOpen Off
OnLastWindowClose Off
OnWindowOpen Off
OnWindowClose Off
OnFileAVPlayerChange Off
OnWindowTransaction Off
Thumbnail Settings
Generate Thumbnails On; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
Rate calculation
13 fields defined, 6 records
Rate calculation

Fields

Table Name: Rate calculation - 13 Fields
Field Name Type Options Comments On Layouts In Relationships In Scripts In Value Lists
PrimaryKey Normal, Text Auto-Enter: Validation:
  • Only during data entry
  • Not empty
  • Unique
  • Strict validation
Storage:
  • Repetitions: 1
  • Indexing: Minimal
  • Automatically create indexes as needed
  • Index Language: Unicode Raw
Unique identifier of each record in this table
          CreationTimestamp Normal, Timestamp Auto-Enter:
          • Creation timestamp
          Validation:
          • Only during data entry
          • Strict data type: 4 digit year
          • Not empty
          • Strict validation
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
          Date and time each record was created
                  CreatedBy Normal, Text Auto-Enter:
                  • Creation account name
                  Validation:
                  • Only during data entry
                  • Not empty
                  • Strict validation
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German
                  Account name of the user who created each record
                          ModificationTimestamp Normal, Timestamp Auto-Enter:
                          • Modification timestamp
                          Validation:
                          • Only during data entry
                          • Strict data type: 4 digit year
                          • Not empty
                          • Strict validation
                          Storage:
                          • Repetitions: 1
                          • Indexing: None
                          • Automatically create indexes as needed
                          • Index Language: German
                          Date and time each record was last modified
                                  ModifiedBy Normal, Text Auto-Enter:
                                  • Modification account name
                                  Validation:
                                  • Only during data entry
                                  • Not empty
                                  • Strict validation
                                  Storage:
                                  • Repetitions: 1
                                  • Indexing: None
                                  • Automatically create indexes as needed
                                  • Index Language: German
                                  Account name of the user who last modified each record
                                          nper Normal, Number Auto-Enter:
                                          • Allow editing
                                          Validation:
                                          • Only during data entry
                                          Storage:
                                          • Repetitions: 1
                                          • Indexing: None
                                          • Automatically create indexes as needed
                                          • Index Language: German
                                              pmt Normal, Number Auto-Enter:
                                              • Allow editing
                                              Validation:
                                              • Only during data entry
                                              Storage:
                                              • Repetitions: 1
                                              • Indexing: None
                                              • Automatically create indexes as needed
                                              • Index Language: German
                                                    pv Normal, Number Auto-Enter:
                                                    • Allow editing
                                                    Validation:
                                                    • Only during data entry
                                                    Storage:
                                                    • Repetitions: 1
                                                    • Indexing: None
                                                    • Automatically create indexes as needed
                                                    • Index Language: German
                                                          fv Normal, Number Auto-Enter:
                                                          • Allow editing
                                                          Validation:
                                                          • Only during data entry
                                                          Storage:
                                                          • Repetitions: 1
                                                          • Indexing: None
                                                          • Automatically create indexes as needed
                                                          • Index Language: German
                                                                type Normal, Number Auto-Enter:
                                                                • Allow editing
                                                                Validation:
                                                                • Only during data entry
                                                                Storage:
                                                                • Repetitions: 1
                                                                • Indexing: None
                                                                • Automatically create indexes as needed
                                                                • Index Language: German
                                                                      guess Normal, Number Auto-Enter:
                                                                      • Allow editing
                                                                      Validation:
                                                                      • Only during data entry
                                                                      Storage:
                                                                      • Repetitions: 1
                                                                      • Indexing: None
                                                                      • Automatically create indexes as needed
                                                                      • Index Language: German
                                                                            Result Normal, Text Auto-Enter: Validation:
                                                                            • Only during data entry
                                                                            Storage:
                                                                            • Repetitions: 1
                                                                            • Indexing: None
                                                                            • Automatically create indexes as needed
                                                                            • Index Language: German
                                                                                  RateCall Normal, Text Auto-Enter: Validation:
                                                                                  • Only during data entry
                                                                                  Storage:
                                                                                  • Repetitions: 1
                                                                                  • Indexing: None
                                                                                  • Automatically create indexes as needed
                                                                                  • Index Language: German

                                                                                        Layout Objects: Rate calculation

                                                                                        Regular Fields

                                                                                        Field Name: Rate calculation::nper
                                                                                        Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                        • Top: 114 pt
                                                                                        • Left: 138 pt
                                                                                        • Bottom: 145 pt
                                                                                        • Right: 217 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: Rate calculation::pmt
                                                                                        Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                        • Top: 149 pt
                                                                                        • Left: 138 pt
                                                                                        • Bottom: 180 pt
                                                                                        • Right: 217 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: Rate calculation::pv
                                                                                        Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                        • Top: 184 pt
                                                                                        • Left: 138 pt
                                                                                        • Bottom: 215 pt
                                                                                        • Right: 217 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: Rate calculation::fv
                                                                                        Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                        • Top: 219 pt
                                                                                        • Left: 138 pt
                                                                                        • Bottom: 250 pt
                                                                                        • Right: 217 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: Rate calculation::type
                                                                                        Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                        • Top: 254 pt
                                                                                        • Left: 138 pt
                                                                                        • Bottom: 285 pt
                                                                                        • Right: 217 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: Rate calculation::guess
                                                                                        Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                        • Top: 289 pt
                                                                                        • Left: 138 pt
                                                                                        • Bottom: 320 pt
                                                                                        • Right: 217 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: Rate calculation::Result
                                                                                        Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                        • Top: 324 pt
                                                                                        • Left: 138 pt
                                                                                        • Bottom: 355 pt
                                                                                        • Right: 386 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: Rate calculation::RateCall
                                                                                        Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                        • Top: 359 pt
                                                                                        • Left: 138 pt
                                                                                        • Bottom: 390 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

                                                                                        Script Hierarchy

                                                                                        test
                                                                                        Recalc

                                                                                        Next Script: [Recalc]
                                                                                        Script Name test
                                                                                        Run script with full access privileges Off
                                                                                        Siri Shortcut Visible Off
                                                                                        Include In Menu Yes
                                                                                        Layouts that use this script
                                                                                          Scripts that use this script
                                                                                            Script Definition
                                                                                            Script Steps
                                                                                            • Set Variable [ $LoanAmount; Value:8000 ]
                                                                                            • Set Variable [ $MonthlyPaymentAmount; Value:152,5 ]
                                                                                            • Set Variable [ $NumberOfYears; Value:5 ]
                                                                                            • Set Variable [ $NumberOfPeriods; Value:60 ]
                                                                                            • Set Variable [ $PaymentPeriodsPerYear; Value:12 ]
                                                                                            • Set Variable [ $Rate; Value:MBS("Math.Rate"; $NumberOfPeriods; -$MonthlyPaymentAmount; $LoanAmount) ]
                                                                                            • Set Variable [ $Rate; Value:Round ( $Rate * 100; 2 ) ]
                                                                                            • Show Custom Dialog [ Title: "Rate"; Message: "Monthly: " & $Rate & "%" // shows .45% & ¶ & "Annually: " & ($Rate * $PaymentPeriodsPerYear) & "%"; Default Button: “OK”, Commit: “Yes” ]
                                                                                            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

                                                                                                          Previous Script: [test]
                                                                                                          Script Name Recalc
                                                                                                          Run script with full access privileges Off
                                                                                                          Siri Shortcut Visible Off
                                                                                                          Include In Menu Yes
                                                                                                          Layouts that use this script
                                                                                                            Scripts that use this script
                                                                                                              Script Definition
                                                                                                              Script Steps
                                                                                                              • Set Field [ Rate calculation::nper; Rate calculation::nper ]
                                                                                                              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: Rate calculation

                                                                                                                      Used functions: