Consultor Eletrônico



Kbase P16522: How to define an updateable browse at design time ?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   05/08/2005
Status: Unverified

GOAL:

How to define an updateable browse at design time ?

GOAL:

How to define a browse with one or more enabled columns at design time ?

FIX:

Using the DEFINE BROWSE 4GL statement:

Use the ENABLE option ("browse-enable-phrase") of the DEFINE BROWSE statement, for example:


DEFINE BROWSE brCustomer
  QUERY qCustomer
  DISPLAY Customer EXCEPT Customer.Comments
  ENABLE Customer.Name
  WITH SIZE 100 by 5.


Using the User Interface Builder / AppBuilder:

Set the "enabled" attribute of one or more of the browse columns. The attribute is set by opening the browse's property sheet, and bringing up the Column Editor window ("Fields" button). Select the columns to enable, and check the "Enable" toggle-box.
The UIB/AppBuilder will then generate the appropriate DEFINE BROWSE statement.

Using the User Interface Builder / AppBuilder, and using a freeform query:

Add the ENABLE option ("browse-enable-phrase") as shown above to the ON DISPLAY pseudo-trigger. It will look something like:

       Customer EXCEPT Customer.Comments
   ENABLE
       Customer.Name