Query

Forms Developer Guides Scripting Interface Menu Filter

QUERY(query)

var option = App.menu().options()[0];
option.query(query);

Adds a Query Object to the filter button. Multiple queries can be changed by a single Query Editor, but they'll be changed to the same conditions.

This should be used for situations in which the user needs to be able to filter multiple objects with the same conditions.

In most cases, the same Query Object can just be passed directly to multiple objects. This method exists for edge cases where this is not viable.