Consultor Eletrônico



Kbase P9570: How to make fields in a browse updateable (Enabled) at design time?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   8/4/2005
Status: Verified

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?

GOAL:

How are certain columns in a browse defined as editable?

GOAL:

How to make fields in a browse updateable (Enabled) at design time?

GOAL:

How to enable browse columns for editing?

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:

1. Open the browse's property sheet (by double clicking on it).
2. Choose the Fields TAB from the property sheet of the Browse.
3. Select the columns to enable, and check the "Enable" toggle-box.
4. Choose OK.

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