MBS FileMaker Plugin Example Databases

QTMovie

All examples are included with download of MBS FileMaker Plugin.

QTMovie.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
QTMovie
5 fields defined, 1 record
QTMovie

Fields

Table Name: QTMovie - 5 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
MovieContainerNormal, BinaryAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
      DurationNormal, NumberAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          PosterPictureNormal, BinaryAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
              FramePictureNormal, BinaryAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
                  MovieRefNormal, TextAuto-Enter:
                  • Allow editing
                  Validation:
                  • Only during data entry
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German

                        Layout Objects: QTMovie

                        Regular Fields

                        Field Name: QTMovie::MovieContainer
                        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                          Object Name:
                        • MovieView
                        • Top: 24 pt
                        • Left: 138 pt
                        • Bottom: 149 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: System Default
                        • Go to next field using: Tab key
                        No

                        Field Name: QTMovie::Duration
                        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                        • Top: 180 pt
                        • Left: 138 pt
                        • Bottom: 194 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: System Default
                        • Go to next field using: Tab key
                        Yes

                        Field Name: QTMovie::PosterPicture
                        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                        • Top: 198 pt
                        • Left: 138 pt
                        • Bottom: 323 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: System Default
                        • Go to next field using: Tab key
                        No

                        Field Name: QTMovie::FramePicture
                        Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                        • Top: 324 pt
                        • Left: 138 pt
                        • Bottom: 449 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: System Default
                        • Go to next field using: Tab key
                        No

                        Group Buttons

                        Button PropertiesCoordinatesScript/Script Step
                          Type:
                        • Text: Open Movie
                          Additional Properties:
                        • Change to hand cursor over button
                        • Rectangular
                        • Top: 156 pt
                        • Left: 408 pt
                        • Bottom: 181 pt
                        • Right: 547 pt
                        • Anchoring: Left, Top
                        Perform Script [ “Run” ]

                        Scripts:


                        Button PropertiesCoordinatesScript/Script Step
                          Type:
                        • Text: Play Movie
                          Additional Properties:
                        • Change to hand cursor over button
                        • Rectangular
                        • Top: 204 pt
                        • Left: 408 pt
                        • Bottom: 229 pt
                        • Right: 547 pt
                        • Anchoring: Left, Top
                        Perform Script [ “Play” ]

                        Scripts:


                        Button PropertiesCoordinatesScript/Script Step
                          Type:
                        • Text: Stop Movie
                          Additional Properties:
                        • Change to hand cursor over button
                        • Rectangular
                        • Top: 234 pt
                        • Left: 408 pt
                        • Bottom: 259 pt
                        • Right: 547 pt
                        • Anchoring: Left, Top
                        Perform Script [ “Stop” ]

                        Scripts:


                        Script Hierarchy

                        Run
                        CloseMovie
                        Play
                        Stop
                        Clear

                        Next Script: [CloseMovie]
                        Script NameRun
                        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 [ $r; Value:MBS("Trace") ]
                          • Perform Script [ “CloseMovie” ]
                          • Set Variable [ $Movie; Value:MBS("MovieView.Movie";"MovieView") ]
                          • If [ MBS("IsError") ]
                          • Set Variable [ $Movie; Value:MBS("QTMovie.OpenContainer"; QTMovie::MovieContainer) ]
                          • If [ MBS("IsError") ]
                          • Show Custom Dialog [ Title: "Error loading movie."; Message: $Movie; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                          • Exit Script [ ]
                          • End If
                          • End If
                          • Set Field [ QTMovie::Duration; MBS("QTMovie.GetDuration"; $Movie) ]
                          • Set Field [ QTMovie::MovieRef; $movie ]
                          • Set Field [ QTMovie::PosterPicture; MBS("QTMovie.PosterImage"; $movie; "JPEG"; "poster.jpg") ]
                          • Set Field [ QTMovie::FramePicture; MBS("QTMovie.FrameImageAtTime"; $movie; 10; "JPEG"; "frame.jpg") ]
                          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: [Run]Next Script: [Play]
                                Script NameCloseMovie
                                Run script with full access privilegesOff
                                Include In MenuYes
                                Layouts that use this script
                                  Scripts that use this script
                                  Script Definition
                                  Script Steps
                                  • #Close last movie if it was open.
                                  • If [ Length(QTMovie::MovieRef)>0 ]
                                  • Set Variable [ $r; Value:MBS("QTMovie.Release"; QTMovie::MovieRef) ]
                                  • Set Field [ QTMovie::MovieRef; "" ]
                                  • 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

                                          Previous Script: [CloseMovie]Next Script: [Stop]
                                          Script NamePlay
                                          Run script with full access privilegesOff
                                          Include In MenuYes
                                          Layouts that use this script
                                          Scripts that use this script
                                            Script Definition
                                            Script Steps
                                            • If [ Length(QTMovie::MovieRef)>0 ]
                                            • Set Variable [ $r; Value:MBS("QTMovie.Play"; QTMovie::MovieRef) ]
                                            • Else
                                            • Show Custom Dialog [ Message: "Please open Movie first!"; Default Button: “OK”, Commit: “No”; Button 2: “Abbrechen”, Commit: “No” ]
                                            • 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

                                                    Previous Script: [Play]Next Script: [Clear]
                                                    Script NameStop
                                                    Run script with full access privilegesOff
                                                    Include In MenuYes
                                                    Layouts that use this script
                                                    Scripts that use this script
                                                      Script Definition
                                                      Script Steps
                                                      • If [ Length(QTMovie::MovieRef)>0 ]
                                                      • Set Variable [ $r; Value:MBS("QTMovie.Stop"; QTMovie::MovieRef) ]
                                                      • Else
                                                      • Show Custom Dialog [ Message: "Please open Movie first!"; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                                      • 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

                                                              Previous Script: [Stop]
                                                              Script NameClear
                                                              Run script with full access privilegesOff
                                                              Include In MenuYes
                                                              Layouts that use this script
                                                                Scripts that use this script
                                                                  Script Definition
                                                                  Script Steps
                                                                  • Set Field [ QTMovie::MovieContainer; "" ]
                                                                  • Set Field [ QTMovie::Duration; "" ]
                                                                  • Set Field [ QTMovie::PosterPicture; "" ]
                                                                  • Set Field [ QTMovie::FramePicture; "" ]
                                                                  • Set Field [ QTMovie::MovieRef; "" ]
                                                                  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: QTMovie

                                                                          Used functions:




                                                                          Links
                                                                          MBS Xojo Plugins