Consultor Eletrônico



Kbase P99303: 4GL: NEW(record) function returns FALSE after buttons are disabled.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   13/01/2006
Status: Unverified

SYMPTOM(s):

The 4GL NEW(record) function returns FALSE after buttons are disabled.

The NEW(record) function returns TRUE before a statement disabling some buttons and FALSE immediately after that statement is executed.

Frame contains FILL-IN, BUTTON and BROWSE widgets.

CAUSE:

This is expected behavior. Focus is moved to the browse when the buttons are disabled, as the browse is the only remaining enabled widget. When a browse gains focus it makes sure that the database buffer contains the last selected row. When it loads this row into the buffer it displaces the newly created row, resulting in the NEW function correctly stating that the row in the buffer is not new.

FIX:

Ensure that there is at least one enabled widget in the frame at all times.