Consultor Eletrônico



Kbase 14149: How to do a column search in the v8 Updatable Browse
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
How to do a column search in the v8 Updatable Browse

Column Search in the Browse
---------------------------

In version 7, you were able to search for a record
in the browse by pressing an alphabetic character
and the first row whose first column in the browse
began with that letter would be highlighted. For
instance, if you had a browse that displayed
customer.name and customer.cust-num in that order,
and then you pressed the letter K, the browse would
reposition to the row where the first customer.name
begins with the letter K.

In version 8, you have the same capability
with the read-only browse (e.g. a browse where
no fields are enabled).

A new feature of version 8 is that you can search
a particular COLUMN to match the first letter. This
is only available in the UPDATABLE browse-- in other
words, a browse where AT LEAST ONE field has been
ENABLED. If you have an updatable browse then any
character field can be searched in by first
selecting the header of the browse and then typing
in a letter. The browse will reposition to the first
row where the SELECTED COLUMN begins with that letter.

The read-only browse does not directly have the
column search capability so that it remains backwards
compatible with version 7; however, a column search
can be indirectly attained in a read-only browse. To
do this, first make the browse an editable one by
enabling at least one field. After the ENABLE statement
you can change the field back to a read-only in the
following way:

field:read-only in browse browse-1 = yes.

Now the Browse is read-only but can still do
the column search.

Progress Software Technical Support Note # 14149