Progress
Programming
Handbook
Dynamic Enhancements to the Static Browse
You can now dynamically create some or all of the columns for a static browse by using the ADD–COLUMNS–FROM( ), ADD–LIKE–COLUMN( ) and ADD–CALC–COLUMN( ) methods. If you use the ADD–COLUMNS–FROM( ) or ADD–LIKE–COLUMNS( ) methods on a static browse, the browse becomes a NO–ASSIGN browse and you will have to manage the database updates manually. See "Using the Browse Widget," for more information on the static browse.
In addition, you can now change the query of a static browse even if the underlying fields are not the same as those of the original query. However, if the new underlying fields are not the same as the original, all browse columns will be removed and you will have to specify new columns using the new ADD–COLUMNS–FROM( ), ADD–LIKE–COLUMN( ) and ADD–CALC–COLUMN( ) methods. If the QUERY attribute is set to the UNKNOWN value (?), all browse–columns are removed.
The following code example depicts an updateable static browse with all dynamic columns:
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |