Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
MBS FileMaker Plugin Example Databases
Sort Benchmark
All examples are included with download of MBS FileMaker Plugin.
Overview | |
Tables | 1 |
Relationships | 0 |
Layouts | 1 |
Scripts | 15 |
Value Lists | 0 |
Custom Functions | 3 |
Custom Menus | 0 |
File Options | |
Default custom menu set | [Standard FileMaker Menus] |
When opening file | |
Minimum allowed version | 12.0 |
Login using | Account Name; Account= Admin |
Allow user to save password | Off |
Require iOS passcode | Off |
Switch to layout | Off |
Hide all toolbars | Off |
Script triggers | |
OnFirstWindowOpen | Off |
OnLastWindowClose | Off |
OnWindowOpen | Off |
OnWindowClose | Off |
OnFileAVPlayerChange | Off |
Thumbnail Settings | |
Generate Thumbnails | On; Temporary |
Table Name |
Statistics
| Occurrences in Relationship Graph |
Sort Benchmark |
6 fields defined, 1 record
| Sort Benchmark |
Table Name: Sort Benchmark - 6 Fields | ||||||||
Field Name | Type | Options | Comments | On Layouts | In Relationships | In Scripts | In Value Lists | |
Input | Normal, Text | Auto-Enter:
|
|
|
||||
Output | Normal, Text | Auto-Enter:
|
|
|
||||
Time | Normal, Number | Auto-Enter:
|
|
|
||||
Input Length | Normal, Number | Auto-Enter:
|
|
|
||||
Output Length | Normal, Number | Auto-Enter:
|
|
|
||||
Rounds | Normal, Number | Auto-Enter:
|
|
|
Layout Objects: Sort Benchmark
Field Name: Sort Benchmark::Input | |||||
Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes |
Field Name: Sort Benchmark::Output | |||||
Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes |
Field Name: Sort Benchmark::Time | |||||
Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes |
Field Name: Sort Benchmark::Input Length | |||||
Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes |
Field Name: Sort Benchmark::Output Length | |||||
Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes |
Field Name: Sort Benchmark::Rounds | |||||
Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes |
Button Properties | Coordinates | Script/Script Step | ||||
|
| Perform Script [ “Generate Input Values with FileMaker”; Parameter: 1000 ] Scripts: |
Button Properties | Coordinates | Script/Script Step | ||||
|
| Perform Script [ “Generate Input Values with FileMaker”; Parameter: 10000 ] Scripts: |
Button Properties | Coordinates | Script/Script Step | ||||
|
| Perform Script [ “Sort in FileMaker” ] Scripts: |
Button Properties | Coordinates | Script/Script Step | ||||
|
| Perform Script [ “Sort with Custom Function” ] Scripts: |
Button Properties | Coordinates | Script/Script Step | ||||
|
| Perform Script [ “Generate Input Values with FileMaker”; Parameter: 100 ] Scripts: |
Button Properties | Coordinates | Script/Script Step | ||||
|
| Perform Script [ “Sort with MBS List” ] Scripts: |
Button Properties | Coordinates | Script/Script Step | ||||
|
| Perform Script [ “Sort with MBS JavaScript” ] Scripts: |
Button Properties | Coordinates | Script/Script Step | ||||
|
| Perform Script [ “Sort with MBS Webviewer” ] Scripts: |
Button Properties | Coordinates | Script/Script Step | ||||
|
| Perform Script [ “Generate Input Values with MBS”; Parameter: 1000 ] Scripts: |
Button Properties | Coordinates | Script/Script Step | ||||
|
| Perform Script [ “Generate Input Values with MBS”; Parameter: 10000 ] Scripts: |
Button Properties | Coordinates | Script/Script Step | ||||
|
| Perform Script [ “Generate Input Values with MBS”; Parameter: 100 ] Scripts: |
Web Viewer Control Properties | Coordinates | Web Address | |||
|
| "about:blank" |
Next Script: [Generate Input Values with MBS] |
Script Name | Generate Input Values with FileMaker |
Run script with full access privileges | Off |
Include In Menu | Yes |
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: [Generate Input Values with FileMaker] | Next Script: [Trace Off] |
Script Name | Generate Input Values with MBS |
Run script with full access privileges | Off |
Include In Menu | Yes |
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: [Generate Input Values with MBS] | Next Script: [Clear] |
Script Name | Trace Off |
Run script with full access privileges | Off |
Include In Menu | Yes |
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: [Trace Off] | Next Script: [-] |
Script Name | Clear |
Run script with full access privileges | Off |
Include In Menu | Yes |
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: [Clear] | Next Script: [Sort in FileMaker] |
Script Name | - |
Run script with full access privileges | Off |
Include In Menu | Yes |
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: [-] | Next Script: [Sort with Custom Function] |
Script Name | Sort in FileMaker |
Run script with full access privileges | Off |
Include In Menu | Yes |
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: [Sort in FileMaker] | Next Script: [Sort with MBS List] |
Script Name | Sort with Custom Function |
Run script with full access privileges | Off |
Include In Menu | Yes |
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: [Sort with Custom Function] | Next Script: [Sort with MBS JavaScript] |
Script Name | Sort with MBS List |
Run script with full access privileges | Off |
Include In Menu | Yes |
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: [Sort with MBS List] | Next Script: [Sort with MBS Webviewer] |
Script Name | Sort with MBS JavaScript |
Run script with full access privileges | Off |
Include In Menu | Yes |
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: [Sort with MBS JavaScript] | Next Script: [-] |
Script Name | Sort with MBS Webviewer |
Run script with full access privileges | Off |
Include In Menu | Yes |
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: [Sort with MBS Webviewer] | Next Script: [Sort in FileMaker 2] |
Script Name | - |
Run script with full access privileges | Off |
Include In Menu | Yes |
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: [-] | Next Script: [Sort with MBS List 2] |
Script Name | Sort in FileMaker 2 |
Run script with full access privileges | Off |
Include In Menu | Yes |
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: [Sort in FileMaker 2] | Next Script: [Sort with MBS JavaScript 2] |
Script Name | Sort with MBS List 2 |
Run script with full access privileges | Off |
Include In Menu | Yes |
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: [Sort with MBS List 2] | Next Script: [Sort with MBS Webviewer 2] |
Script Name | Sort with MBS JavaScript 2 |
Run script with full access privileges | Off |
Include In Menu | Yes |
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: [Sort with MBS JavaScript 2] |
Script Name | Sort with MBS Webviewer 2 |
Run script with full access privileges | Off |
Include In Menu | Yes |
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 |
|
Function Name | Parameters | Availability | Definition | In Field Definitions | In Scripts |
ValuesLessThanOrEqual | values;reference | All accounts | /*ValuesLessThanOrEqual( list; reference) returns all values in list that are less than or equal to reference*/ // from https://www.briandunning.com/cf/86 Let( listLength = ValueCount( values); Case( //if the first element is less than or equal to reference... LeftValues( values; 1) <= reference; //return the first element LeftValues( values; 1) ) & Case( //if list is not trivial [there's more than one element] listLength > 1; //return all other elements less than reference ValuesLessThanOrEqual( RightValues( values; listLength - 1); reference ) ) ) //end Let() |
| |
ValuesGreaterThan | listvalues;reference | All accounts | /* ValuesGreaterThan( listvalues; reference) Theo Gantos - TEKA, Inc. - www.tekainc.com Returns all values in list that are greater than the reference parameter Originally written by Jeremy Bante, OshVay Systems, Inc., but was lost, so I rewrote it Original function used the parameter List, which is now a reserved word, changed to listvalues. Used by QuickSort(listvalues), also written by Jeremy */ // from https://www.briandunning.com/cf/640 Let( listLength = ValueCount( listvalues ); Case( //if the first element is greater than the reference... LeftValues( listvalues; 1) > reference; //return the first element LeftValues( listvalues; 1) ) & Case( //if list is not trivial [there's more than one element] listLength > 1; //return all other elements greater than reference ValuesGreaterThan( RightValues( listvalues; listLength - 1); reference ) ) ) //end Let() |
| |
QuickSort | values | All accounts | /*QuickSort( list ) sorts list with the popular and reasonably efficient quicksort algorithm It requires the ValuesLessThanOrEqual( list ; reference ) and ValuesGreaterThan( list ; reference ) functions.*/ // from https://www.briandunning.com/cf/89 Let( [ listLength = ValueCount( values); pivotIndex = Ceiling( Random * listLength); pivot = MiddleValues( values; pivotIndex; 1); listLessPivot = LeftValues( values; pivotIndex -1) & RightValues( values; listLength - pivotIndex) ]; Case( //if list is trivial [only one element]... listLength < 2; //return list as-is values; //if list is worth sorting... QuickSort( ValuesLessThanOrEqual( listLessPivot; pivot)) & //sort everything less than or equal to pivot pivot & //place pivot in middle QuickSort( ValuesGreaterThan( listLessPivot; pivot)) //sort everything greater than pivot ) //end Case() ) //end Let() |
|
Menu Sets | Menus | In Scripts | In Layouts | Comments |
[Standard FileMaker Menus] |
|
Download example: Sort Benchmark
Used functions: