Query.pack Method
Packs the query into a container and returns that container, which can then be used when you create a query.
Syntax
public container pack([boolean doCheck])
Run On
Called
Parameters
- doCheck
Type: boolean
Whether to flag an error when a data source in the query references an outside cursor. For example, a link to a cursor that is foreign to the query's data source. The default value is true, which enforces the constraint; optional.
Return Value
Type: container
The container holding the query.
Remarks
The container created by this method can subsequently serve as input when instantiating a query or a queryRun object with either the new() or the newObject() methods.
Links to cursors that are foreign to the query's data source are not packed into the container. If you must pack this kind of link, you should "take a snapshot" of the cursor's data and construct ranges for each field.