Consultor Eletrônico



Kbase P82537: Using updateable browse widget in Windows and immediately after setting MODIFIED attribute to FALSE
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   02/06/2004
Status: Unverified

SYMPTOM(s):

Using updateable browse widget in Windows

Setting the MODIFIED attribute of the browse to FALSE

Immediately after setting MODIFIED attribute to FALSE it becomes TRUE again

CAUSE:

When the browse was defined the NO-ASSIGN option was left at its default value of false which means that the browse widget itself is responsible for handling the updates to data (i.e. no programmer control at all). When the NO-ASSIGN attribute is left at its default value programmatic changes to the MODIFIED attribute are ignored as the browse handles those things itself.

FIX:

Add the NO-ASSIGN option to the DEFINE BROWSE statement.

The browse works in two mutually exclusive ways. If you want to handle changes to the data in the browse yourself then you must use the NO-ASSIGN option and handle ALL changes to the browse yourself (including updating the database with the changes). The other choice is to let the browse handle EVERYTHING itself with no programmatic control by the programmer.