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

MBS FileMaker Plugin Example Databases

Cookies

All examples are included with download of MBS FileMaker Plugin.

Cookies.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts2
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
Cookies
13 fields defined, 0 record
Cookies

Fields

Table Name: Cookies - 13 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
WebsiteURLNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Global
  • Repetitions: 1
  • Index Language: German
      PathNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          NameNormal, 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
                  ExpireDateNormal, TextAuto-Enter:
                  • Allow editing
                  Validation:
                  • Only during data entry
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German
                      SessionOnlyNormal, TextAuto-Enter:
                      • Allow editing
                      Validation:
                      • Only during data entry
                      Storage:
                      • Repetitions: 1
                      • Indexing: None
                      • Automatically create indexes as needed
                      • Index Language: German
                          DomainNormal, TextAuto-Enter:
                          • Allow editing
                          Validation:
                          • Only during data entry
                          Storage:
                          • Repetitions: 1
                          • Indexing: None
                          • Automatically create indexes as needed
                          • Index Language: German
                              SecureNormal, TextAuto-Enter:
                              • Allow editing
                              Validation:
                              • Only during data entry
                              Storage:
                              • Repetitions: 1
                              • Indexing: None
                              • Automatically create indexes as needed
                              • Index Language: German
                                  HTTPOnlyNormal, TextAuto-Enter:
                                  • Allow editing
                                  Validation:
                                  • Only during data entry
                                  Storage:
                                  • Repetitions: 1
                                  • Indexing: None
                                  • Automatically create indexes as needed
                                  • Index Language: German
                                      CommentNormal, TextAuto-Enter:
                                      • Allow editing
                                      Validation:
                                      • Only during data entry
                                      Storage:
                                      • Repetitions: 1
                                      • Indexing: None
                                      • Automatically create indexes as needed
                                      • Index Language: German
                                          CommentURLNormal, TextAuto-Enter:
                                          • Allow editing
                                          Validation:
                                          • Only during data entry
                                          Storage:
                                          • Repetitions: 1
                                          • Indexing: None
                                          • Automatically create indexes as needed
                                          • Index Language: German
                                              PortsNormal, TextAuto-Enter:
                                              • Allow editing
                                              Validation:
                                              • Only during data entry
                                              Storage:
                                              • Repetitions: 1
                                              • Indexing: None
                                              • Automatically create indexes as needed
                                              • Index Language: German
                                                  CountNormal, NumberAuto-Enter:
                                                  • Allow editing
                                                  Validation:
                                                  • Only during data entry
                                                  Storage:
                                                  • Global
                                                  • Repetitions: 1
                                                  • Index Language: German

                                                      Layout Objects: Cookies

                                                      Regular Fields

                                                      Field Name: Cookies::WebsiteURL
                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                      • Top: 6 pt
                                                      • Left: 132 pt
                                                      • Bottom: 20 pt
                                                      • Right: 385 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: Cookies::Path
                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                      • Top: 76 pt
                                                      • Left: 138 pt
                                                      • Bottom: 90 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
                                                      Yes

                                                      Field Name: Cookies::Name
                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                      • Top: 94 pt
                                                      • Left: 138 pt
                                                      • Bottom: 108 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
                                                      Yes

                                                      Field Name: Cookies::Value
                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                      • Top: 112 pt
                                                      • Left: 138 pt
                                                      • Bottom: 126 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
                                                      Yes

                                                      Field Name: Cookies::ExpireDate
                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                      • Top: 130 pt
                                                      • Left: 138 pt
                                                      • Bottom: 144 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
                                                      Yes

                                                      Field Name: Cookies::SessionOnly
                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                      • Top: 148 pt
                                                      • Left: 138 pt
                                                      • Bottom: 162 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
                                                      Yes

                                                      Field Name: Cookies::Domain
                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                      • Top: 166 pt
                                                      • Left: 138 pt
                                                      • Bottom: 180 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
                                                      Yes

                                                      Field Name: Cookies::Secure
                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                      • Top: 184 pt
                                                      • Left: 138 pt
                                                      • Bottom: 198 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
                                                      Yes

                                                      Field Name: Cookies::HTTPOnly
                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                      • Top: 202 pt
                                                      • Left: 138 pt
                                                      • Bottom: 216 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
                                                      Yes

                                                      Field Name: Cookies::Comment
                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                      • Top: 220 pt
                                                      • Left: 138 pt
                                                      • Bottom: 234 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
                                                      Yes

                                                      Field Name: Cookies::CommentURL
                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                      • Top: 238 pt
                                                      • Left: 138 pt
                                                      • Bottom: 252 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
                                                      Yes

                                                      Field Name: Cookies::Ports
                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                      • Top: 256 pt
                                                      • Left: 138 pt
                                                      • Bottom: 270 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
                                                      Yes

                                                      Field Name: Cookies::Count
                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                      • Top: 6 pt
                                                      • Left: 456 pt
                                                      • Bottom: 20 pt
                                                      • Right: 535 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: List All Cookies
                                                        Additional Properties:
                                                      • Change to hand cursor over button
                                                      • Rectangular
                                                      • Top: 30 pt
                                                      • Left: 6 pt
                                                      • Bottom: 55 pt
                                                      • Right: 109 pt
                                                      • Anchoring: Left, Top
                                                      Perform Script [ “List”; Parameter: "" ]

                                                      Scripts:


                                                      Button PropertiesCoordinatesScript/Script Step
                                                        Type:
                                                      • Text: List Cookies for website
                                                        Additional Properties:
                                                      • Change to hand cursor over button
                                                      • Rectangular
                                                      • Top: 30 pt
                                                      • Left: 127 pt
                                                      • Bottom: 55 pt
                                                      • Right: 264 pt
                                                      • Anchoring: Left, Top
                                                      Perform Script [ “List”; Parameter: Cookies::WebsiteURL ]

                                                      Scripts:

                                                      Fields:


                                                      Button PropertiesCoordinatesScript/Script Step
                                                        Type:
                                                      • Text: Clear Cookies for Website
                                                        Additional Properties:
                                                      • Change to hand cursor over button
                                                      • Rectangular
                                                      • Top: 30 pt
                                                      • Left: 276 pt
                                                      • Bottom: 55 pt
                                                      • Right: 427 pt
                                                      • Anchoring: Left, Top
                                                      Perform Script [ “ClearWithURL” ]

                                                      Scripts:


                                                      Script Hierarchy

                                                      List
                                                      ClearWithURL

                                                      Next Script: [ClearWithURL]
                                                      Script NameList
                                                      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") ]
                                                        • Set Variable [ $URL; Value:Get(ScriptParameter) ]
                                                        • Set Variable [ $count; Value:MBS("Webview.Cookies.Count"; $URL) ]
                                                        • Set Field [ Cookies::Count; $count ]
                                                        • Set Variable [ $index; Value:0 ]
                                                        • Delete All Records [ No dialog ]
                                                        • If [ $count > 0 ]
                                                        • Loop
                                                        • New Record/Request
                                                        • Set Field [ Cookies::Path; MBS("Webview.Cookies.Query"; $index; "Path"; $URL) ]
                                                        • Set Field [ Cookies::Name; MBS("Webview.Cookies.Query"; $index; "Name"; $URL) ]
                                                        • Set Field [ Cookies::Value; MBS("Webview.Cookies.Query"; $index; "Value"; $URL) ]
                                                        • Set Field [ Cookies::ExpireDate; MBS("Webview.Cookies.Query"; $index; "expiresDate"; $URL) ]
                                                        • Set Field [ Cookies::SessionOnly; If(MBS("Webview.Cookies.Query"; $index; "SessionOnly"; $URL); "yes"; "no") ]
                                                        • Set Field [ Cookies::Domain; MBS("Webview.Cookies.Query"; $index; "Domain"; $URL) ]
                                                        • Set Field [ Cookies::Secure; If(MBS("Webview.Cookies.Query"; $index; "Secure"; $URL); "yes"; "no") ]
                                                        • Set Field [ Cookies::HTTPOnly; If(MBS("Webview.Cookies.Query"; $index; "HTTPOnly"; $URL); "yes"; "no") ]
                                                        • Set Field [ Cookies::Comment; MBS("Webview.Cookies.Query"; $index; "Comment"; $URL) ]
                                                        • Set Field [ Cookies::CommentURL; MBS("Webview.Cookies.Query"; $index; "CommentURL"; $URL) ]
                                                        • Set Field [ Cookies::Ports; MBS("Webview.Cookies.Query"; $index; "PortList"; $URL) ]
                                                        • Commit Records/Requests [ Skip data entry validation; No dialog ]
                                                        • Set Variable [ $index; Value:$index + 1 ]
                                                        • Exit Loop If [ $count = $index ]
                                                        • 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

                                                                Previous Script: [List]
                                                                Script NameClearWithURL
                                                                Run script with full access privilegesOff
                                                                Include In MenuYes
                                                                Layouts that use this script
                                                                Scripts that use this script
                                                                  Script Definition
                                                                  Script Steps
                                                                  • Show Custom Dialog [ Title: "Clear"; Message: "Cleared " & MBS("Webview.Cookies.ClearForURL"; Cookies::WebsiteURL) & " cookies."; Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, 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

                                                                          Download example: Cookies