Topics
All
Mac OS X
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server (Not)
Client
Old
Guides
Examples
New in version:
6.5
7.0
7.1
7.2
7.3
7.4
7.5
8.0
8.1
8.2
Statistic
MetaDataQuery.SetQueryString
Sets the predicate to search.
Component | Version | macOS | Windows | Server | FileMaker Cloud | FileMaker iOS SDK |
MetaDataQuery | 8.0 | Yes | No | Yes, macOS only | No | Yes |
MBS( "MetaDataQuery.SetQueryString"; Query; QueryString )
Parameters
Parameter | Description | Example value |
---|---|---|
Query | The reference number of the query. | $query |
QueryString | The query string. | "kMDItemContentType=\"com.apple.application-bundle\"" |
Result
Returns OK or error.
Description
Sets the predicate to search.The plugin will build the predicate with the given query string.
Setting this property while a query is running stops the query and discards the current results. The receiver immediately starts a new query.
Examples
Search for applications
MBS( "MetaDataQuery.SetQueryString"; $Query; "kMDItemContentType=\"com.apple.application-bundle\"")
Start a query:
Set Variable [ $query ; Value: MBS( "MetaDataQuery.Create" ) ]
Set Variable [ $r ; Value: MBS( "MetaDataQuery.SetQueryString"; $Query; "kMDItemContentType=\"com.apple.application-bundle\"") ]
Set Variable [ $r ; Value: MBS( "MetaDataQuery.StartQuery"; $Query) ]
See also
Example Databases
MetaDataQuery.SetEvaluate - MetaDataQuery.SetScript
Feedback: Report problem or ask question.
Links
MBS FileMaker Plugins