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

MBS FileMaker Plugin Example Databases

Tapi

All examples are included with download of MBS FileMaker Plugin.

Tapi.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts5
Value Lists0
Custom Functions0
Custom Menus33
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
Tapi
3 fields defined, 0 record
Tapi

Fields

Table Name: Tapi - 3 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
IDNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      KeyNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          ValueNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German

              Layout Objects: Tapi

              Regular Fields

              Field Name: Tapi::Key
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 66 pt
              • Left: 264 pt
              • Bottom: 83 pt
              • Right: 517 pt
              • Anchoring: Left, Top
              Field Format:
              • Edit Box
              Field Behavior:
              • Allow field to be entered: In Find mode, In Browse mode
              • Touch keyboard type: System Default
              • Go to next field using: Tab key
              Yes

              Field Name: Tapi::Value
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 66 pt
              • Left: 522 pt
              • Bottom: 83 pt
              • Right: 775 pt
              • Anchoring: Left, Top
              Field Format:
              • Edit Box
              Field Behavior:
              • Allow field to be entered: In Find mode, In Browse mode
              • Touch keyboard type: System Default
              • Go to next field using: Tab key
              Yes

              Field Name: Tapi::ID
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 66 pt
              • Left: 6 pt
              • Bottom: 83 pt
              • Right: 259 pt
              • Anchoring: Left, Top
              Field Format:
              • Edit Box
              Field Behavior:
              • Allow field to be entered: In Find mode, In Browse mode
              • Touch keyboard type: System Default
              • Go to next field using: Tab key
              Yes

              Group Buttons

              Button PropertiesCoordinatesScript/Script Step
                Type:
              • Text: Initialize
                Additional Properties:
              • Change to hand cursor over button
              • Rectangular
              • Top: 6 pt
              • Left: 6 pt
              • Bottom: 31 pt
              • Right: 103 pt
              • Anchoring: Left, Top
              Perform Script [ “Init” ]

              Scripts:


              Button PropertiesCoordinatesScript/Script Step
                Type:
              • Text: Show Addresses
                Additional Properties:
              • Change to hand cursor over button
              • Rectangular
              • Top: 6 pt
              • Left: 108 pt
              • Bottom: 31 pt
              • Right: 217 pt
              • Anchoring: Left, Top
              Perform Script [ “ShowAddresses” ]

              Scripts:


              Script Hierarchy

              CallStateChanged
              NewCallScript
              ShowCallInfo
              Init
              ShowAddresses

              Next Script: [NewCallScript]
              Script NameCallStateChanged
              Run script with full access privilegesOff
              Include In MenuYes
              Layouts that use this script
                Scripts that use this script
                  Script Definition
                  Script Steps
                  • Set Variable [ $ID; Value:Get(ScriptParameter) ]
                  • #Log details
                  • Perform Script [ “ShowCallInfo”; Parameter: $ID ]
                  • #show dialog
                  • Set Variable [ $State; Value:MBS( "TAPI.CallInfo"; $ID; "State" ) ]
                  • Show Custom Dialog [ Title: "Call State Changed"; Message: "Call " & $ID & " changed state to " & $State; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                  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: [CallStateChanged]Next Script: [ShowCallInfo]
                              Script NameNewCallScript
                              Run script with full access privilegesOff
                              Include In MenuYes
                              Layouts that use this script
                                Scripts that use this script
                                  Script Definition
                                  Script Steps
                                  • Set Variable [ $ID; Value:Get(ScriptParameter) ]
                                  • #Log details
                                  • Perform Script [ “ShowCallInfo”; Parameter: $ID ]
                                  • #show dialog
                                  • Set Variable [ $CallerIdNumber; Value:MBS( "TAPI.CallInfo"; $ID; "CallerIdNumber" ) ]
                                  • Show Custom Dialog [ Title: "New Call"; Message: "Call " & $ID & " from " & $CallerIdNumber; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                  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: [NewCallScript]Next Script: [Init]
                                              Script NameShowCallInfo
                                              Run script with full access privilegesOff
                                              Include In MenuYes
                                              Layouts that use this script
                                                Scripts that use this script
                                                Script Definition
                                                Script Steps
                                                • Set Variable [ $ID; Value:Get(ScriptParameter) ]
                                                • Set Variable [ $c; Value:"Call " & $ID ]
                                                • #Log details
                                                • #Caller
                                                • Set Variable [ $value; Value:MBS("TAPI.CallInfo"; $ID; "CALLERIDNAME") ]
                                                • If [ MBS("IsError") = 0 ]
                                                • New Record/Request
                                                • Set Field [ Tapi::ID; $c ]
                                                • Set Field [ Tapi::Key; "Caller ID Name" ]
                                                • Set Field [ Tapi::Value; $value ]
                                                • Commit Records/Requests [ Skip data entry validation; No dialog ]
                                                • End If
                                                • Set Variable [ $value; Value:MBS("TAPI.CallInfo"; $ID; "CALLERIDNUMBER") ]
                                                • If [ MBS("IsError") = 0 ]
                                                • New Record/Request
                                                • Set Field [ Tapi::ID; $c ]
                                                • Set Field [ Tapi::Key; "Caller ID Number" ]
                                                • Set Field [ Tapi::Value; $value ]
                                                • Commit Records/Requests [ Skip data entry validation; No dialog ]
                                                • End If
                                                • #Called
                                                • Set Variable [ $value; Value:MBS("TAPI.CallInfo"; $ID; "CALLEDIDNAME") ]
                                                • If [ MBS("IsError") = 0 ]
                                                • New Record/Request
                                                • Set Field [ Tapi::ID; $c ]
                                                • Set Field [ Tapi::Key; "Called ID Name" ]
                                                • Set Field [ Tapi::Value; $value ]
                                                • Commit Records/Requests [ Skip data entry validation; No dialog ]
                                                • End If
                                                • Set Variable [ $value; Value:MBS("TAPI.CallInfo"; $ID; "CALLEDIDNUMBER") ]
                                                • If [ MBS("IsError") = 0 ]
                                                • New Record/Request
                                                • Set Field [ Tapi::ID; $c ]
                                                • Set Field [ Tapi::Key; "Called ID Number" ]
                                                • Set Field [ Tapi::Value; $value ]
                                                • Commit Records/Requests [ Skip data entry validation; No dialog ]
                                                • End If
                                                • #Connected
                                                • Set Variable [ $value; Value:MBS("TAPI.CallInfo"; $ID; "CONNECTEDIDNAME") ]
                                                • If [ MBS("IsError") = 0 ]
                                                • New Record/Request
                                                • Set Field [ Tapi::ID; $c ]
                                                • Set Field [ Tapi::Key; "Connected ID Name" ]
                                                • Set Field [ Tapi::Value; $value ]
                                                • Commit Records/Requests [ Skip data entry validation; No dialog ]
                                                • End If
                                                • Set Variable [ $value; Value:MBS("TAPI.CallInfo"; $ID; "CONNECTEDIDNUMBER") ]
                                                • If [ MBS("IsError") = 0 ]
                                                • New Record/Request
                                                • Set Field [ Tapi::ID; $c ]
                                                • Set Field [ Tapi::Key; "Connected ID Number" ]
                                                • Set Field [ Tapi::Value; $value ]
                                                • Commit Records/Requests [ Skip data entry validation; No dialog ]
                                                • End If
                                                • #Redirection
                                                • Set Variable [ $value; Value:MBS("TAPI.CallInfo"; $ID; "REDIRECTIONIDNAME") ]
                                                • If [ MBS("IsError") = 0 ]
                                                • New Record/Request
                                                • Set Field [ Tapi::ID; $c ]
                                                • Set Field [ Tapi::Key; "Redirection ID Name" ]
                                                • Set Field [ Tapi::Value; $value ]
                                                • Commit Records/Requests [ Skip data entry validation; No dialog ]
                                                • End If
                                                • Set Variable [ $value; Value:MBS("TAPI.CallInfo"; $ID; "REDIRECTIONIDNUMBER") ]
                                                • If [ MBS("IsError") = 0 ]
                                                • New Record/Request
                                                • Set Field [ Tapi::ID; $c ]
                                                • Set Field [ Tapi::Key; "Redirection ID Number" ]
                                                • Set Field [ Tapi::Value; $Value ]
                                                • Commit Records/Requests [ Skip data entry validation; No dialog ]
                                                • End If
                                                • #Redirecting
                                                • Set Variable [ $value; Value:MBS("TAPI.CallInfo"; $ID; "REDIRECTINGIDNAME") ]
                                                • If [ MBS("IsError") = 0 ]
                                                • New Record/Request
                                                • Set Field [ Tapi::ID; $c ]
                                                • Set Field [ Tapi::Key; "Redirecting ID Name" ]
                                                • Set Field [ Tapi::Value; $Value ]
                                                • Commit Records/Requests [ Skip data entry validation; No dialog ]
                                                • End If
                                                • Set Variable [ $value; Value:MBS("TAPI.CallInfo"; $ID; "REDIRECTINGIDNUMBER") ]
                                                • If [ MBS("IsError") = 0 ]
                                                • New Record/Request
                                                • Set Field [ Tapi::ID; $c ]
                                                • Set Field [ Tapi::Key; "Redirecting ID Number" ]
                                                • Set Field [ Tapi::Value; $value ]
                                                • Commit Records/Requests [ Skip data entry validation; No dialog ]
                                                • End If
                                                • #Called Party Friendly Name
                                                • Set Variable [ $value; Value:MBS("TAPI.CallInfo"; $ID; "CALLEDPARTYFRIENDLYNAME") ]
                                                • If [ MBS("IsError") = 0 ]
                                                • New Record/Request
                                                • Set Field [ Tapi::ID; $c ]
                                                • Set Field [ Tapi::Key; "Called Party Friendly Name" ]
                                                • Set Field [ Tapi::Value; $value ]
                                                • Commit Records/Requests [ Skip data entry validation; No dialog ]
                                                • End If
                                                • #Comment
                                                • Set Variable [ $value; Value:MBS("TAPI.CallInfo"; $ID; "COMMENT") ]
                                                • If [ MBS("IsError") = 0 ]
                                                • New Record/Request
                                                • Set Field [ Tapi::ID; $c ]
                                                • Set Field [ Tapi::Key; "Comment" ]
                                                • Set Field [ Tapi::Value; $value ]
                                                • Commit Records/Requests [ Skip data entry validation; No dialog ]
                                                • End If
                                                • #Displayable Address
                                                • Set Variable [ $value; Value:MBS("TAPI.CallInfo"; $ID; "DISPLAYABLEADDRESS") ]
                                                • If [ MBS("IsError") = 0 ]
                                                • New Record/Request
                                                • Set Field [ Tapi::ID; $c ]
                                                • Set Field [ Tapi::Key; "Displayable Address" ]
                                                • Set Field [ Tapi::Value; $value ]
                                                • Commit Records/Requests [ Skip data entry validation; No dialog ]
                                                • End If
                                                • #Calling Party ID
                                                • Set Variable [ $value; Value:MBS("TAPI.CallInfo"; $ID; "CALLINGPARTYID") ]
                                                • If [ MBS("IsError") = 0 ]
                                                • New Record/Request
                                                • Set Field [ Tapi::ID; $c ]
                                                • Set Field [ Tapi::Key; "Calling Party ID" ]
                                                • Set Field [ Tapi::Value; $value ]
                                                • Commit Records/Requests [ Skip data entry validation; No dialog ]
                                                • End If
                                                • #country code
                                                • Set Variable [ $value; Value:MBS("TAPI.CallInfo"; $ID; "COUNTRYCODE") ]
                                                • If [ MBS("IsError") = 0 ]
                                                • New Record/Request
                                                • Set Field [ Tapi::ID; $c ]
                                                • Set Field [ Tapi::Key; "Country Code" ]
                                                • Set Field [ Tapi::Value; $value ]
                                                • Commit Records/Requests [ Skip data entry validation; No dialog ]
                                                • End If
                                                • #Call ID
                                                • Set Variable [ $value; Value:MBS("TAPI.CallInfo"; $ID; "CALLID") ]
                                                • If [ MBS("IsError") = 0 ]
                                                • New Record/Request
                                                • Set Field [ Tapi::ID; $c ]
                                                • Set Field [ Tapi::Key; "Call ID" ]
                                                • Set Field [ Tapi::Value; $value ]
                                                • Commit Records/Requests [ Skip data entry validation; No dialog ]
                                                • End If
                                                • #State
                                                • Set Variable [ $value; Value:MBS("TAPI.CallInfo"; $ID; "State") ]
                                                • If [ MBS("IsError") = 0 ]
                                                • New Record/Request
                                                • Set Field [ Tapi::ID; $c ]
                                                • Set Field [ Tapi::Key; "State" ]
                                                • Set Field [ Tapi::Value; $value ]
                                                • Commit Records/Requests [ Skip data entry validation; No dialog ]
                                                • End If
                                                • #Privilege
                                                • Set Variable [ $value; Value:MBS("TAPI.CallInfo"; $ID; "Privilege") ]
                                                • If [ MBS("IsError") = 0 ]
                                                • New Record/Request
                                                • Set Field [ Tapi::ID; $c ]
                                                • Set Field [ Tapi::Key; "Privilege" ]
                                                • Set Field [ Tapi::Value; $value ]
                                                • Commit Records/Requests [ Skip data entry validation; No dialog ]
                                                • End If
                                                • #Origin
                                                • Set Variable [ $value; Value:MBS("TAPI.CallInfo"; $ID; "Origin") ]
                                                • If [ MBS("IsError") = 0 ]
                                                • New Record/Request
                                                • Set Field [ Tapi::ID; $c ]
                                                • Set Field [ Tapi::Key; "Origin" ]
                                                • Set Field [ Tapi::Value; $value ]
                                                • Commit Records/Requests [ Skip data entry validation; No dialog ]
                                                • End If
                                                • #Reason
                                                • Set Variable [ $value; Value:MBS("TAPI.CallInfo"; $ID; "Reason") ]
                                                • If [ MBS("IsError") = 0 ]
                                                • New Record/Request
                                                • Set Field [ Tapi::ID; $c ]
                                                • Set Field [ Tapi::Key; "Reason" ]
                                                • Set Field [ Tapi::Value; $value ]
                                                • Commit Records/Requests [ Skip data entry validation; No dialog ]
                                                • End If
                                                • #show dialog
                                                • Show Custom Dialog [ Title: "Call State Changed"; Message: Get ( ScriptParameter); Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                                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: [ShowCallInfo]Next Script: [ShowAddresses]
                                                        Script NameInit
                                                        Run script with full access privilegesOff
                                                        Include In MenuYes
                                                        Layouts that use this script
                                                        Scripts that use this script
                                                          Script Definition
                                                          Script Steps
                                                          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: [Init]
                                                                        Script NameShowAddresses
                                                                        Run script with full access privilegesOff
                                                                        Include In MenuYes
                                                                        Layouts that use this script
                                                                        Scripts that use this script
                                                                          Script Definition
                                                                          Script Steps
                                                                          • Delete All Records [ No dialog ]
                                                                          • Set Variable [ $count; Value:MBS("TAPI.AddressCount") ]
                                                                          • If [ $count > 0 ]
                                                                          • Set Variable [ $index; Value:0 ]
                                                                          • Loop
                                                                          • Set Variable [ $address; Value:"Address " & ($index+1) & "/" & $count ]
                                                                          • #Address Name
                                                                          • Set Variable [ $value; Value:MBS("TAPI.AddressValue"; $index; "AddressName") ]
                                                                          • If [ MBS("IsError") = 0 ]
                                                                          • New Record/Request
                                                                          • Set Field [ Tapi::ID; $address ]
                                                                          • Set Field [ Tapi::Key; "AddressName" ]
                                                                          • Set Field [ Tapi::Value; $value ]
                                                                          • Commit Records/Requests [ Skip data entry validation; No dialog ]
                                                                          • End If
                                                                          • #Dialable Address
                                                                          • Set Variable [ $value; Value:MBS("TAPI.AddressValue"; $index; "DialableAddress") ]
                                                                          • If [ MBS("IsError") = 0 ]
                                                                          • New Record/Request
                                                                          • Set Field [ Tapi::ID; $address ]
                                                                          • Set Field [ Tapi::Key; "DialableAddress" ]
                                                                          • Set Field [ Tapi::Value; $value ]
                                                                          • Commit Records/Requests [ Skip data entry validation; No dialog ]
                                                                          • End If
                                                                          • #ServiceProviderName
                                                                          • Set Variable [ $value; Value:MBS("TAPI.AddressValue"; $index; "ServiceProviderName") ]
                                                                          • If [ MBS("IsError") = 0 ]
                                                                          • New Record/Request
                                                                          • Set Field [ Tapi::ID; $address ]
                                                                          • Set Field [ Tapi::Key; "ServiceProviderName" ]
                                                                          • Set Field [ Tapi::Value; $value ]
                                                                          • Commit Records/Requests [ Skip data entry validation; No dialog ]
                                                                          • End If
                                                                          • #State
                                                                          • Set Variable [ $value; Value:MBS("TAPI.AddressValue"; $index; "State") ]
                                                                          • If [ MBS("IsError") = 0 ]
                                                                          • New Record/Request
                                                                          • Set Field [ Tapi::ID; $address ]
                                                                          • Set Field [ Tapi::Key; "State" ]
                                                                          • Set Field [ Tapi::Value; $value ]
                                                                          • Commit Records/Requests [ Skip data entry validation; No dialog ]
                                                                          • End If
                                                                          • #DoNotDisturb
                                                                          • Set Variable [ $value; Value:MBS("TAPI.AddressValue"; $index; "DoNotDisturb") ]
                                                                          • If [ MBS("IsError") = 0 ]
                                                                          • New Record/Request
                                                                          • Set Field [ Tapi::ID; $address ]
                                                                          • Set Field [ Tapi::Key; "DoNotDisturb" ]
                                                                          • Set Field [ Tapi::Value; $value ]
                                                                          • Commit Records/Requests [ Skip data entry validation; No dialog ]
                                                                          • End If
                                                                          • #MessageWaiting
                                                                          • Set Variable [ $value; Value:MBS("TAPI.AddressValue"; $index; "MessageWaiting") ]
                                                                          • If [ MBS("IsError") = 0 ]
                                                                          • New Record/Request
                                                                          • Set Field [ Tapi::ID; $address ]
                                                                          • Set Field [ Tapi::Key; "MessageWaiting" ]
                                                                          • Set Field [ Tapi::Value; $value ]
                                                                          • Commit Records/Requests [ Skip data entry validation; No dialog ]
                                                                          • End If
                                                                          • #Next
                                                                          • Set Variable [ $index; Value:$index + 1 ]
                                                                          • Exit Loop If [ $index = $count ]
                                                                          • End Loop
                                                                          • End If
                                                                          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: Tapi

                                                                                  Used functions: