Progress
Language Reference
QUERY Attribute
Indicates the handle of the query connected to the browse.
Data Type: WIDGET-HANDLEAccess: Readable/WritableApplies To: BrowseIf you change the value of a browse’s QUERY attribute, you connect the browse to a different query, which contains a different set of records.
On Windows platforms:
- The original query and the new query do not need to have the same underlying database fields.
- If the query is changed for a dynamic browse, the browse columns are removed. The 4GL programmer should add new columns with the ADD-CALC-COLUMN, ADD-COLUMNS-FROM, and ADD-LIKE-COLUMN methods.
- If the query is changed for a static browse and the underlying fields are the same, the columns are not removed. However, if the underlying fields are not the same, the columns are removed. The columns are also removed if the QUERY attribute is set to the UNKNOWN (?) value. The 4GL programmer should add new columns with the ADD-CALC-COLUMN, ADD-COLUMNS-FROM, and ADD-LIKE-COLUMN methods.
- Also, a query can now be attached to a static browse that was defined without the optional DISPLAY phrase.
On Character Mode platforms:
- If the original query has database tables, the new query must have database tables. The new query can have different buffers as long as they correspond to the same database tables.
- If the original query has temp-tables, the new query must have temp-tables, not work tables.
- The original query and the new query must have the same number of tables.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |