Consultor Eletrônico



Kbase P68821: What is the ROW-STATE Attribute and Function
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   30/05/2005
Status: Unverified

GOAL:

What is the ROW-STATE Attribute and Function

FACT(s) (Environment):

OpenEdge 10.0x

FIX:

When Records are created, modified or deleted within a ProDataSet, certain automatic changes occur to the before and after tables.

In order to detect these changes, the ROW-STATE Attribute and the ROW-STATE Function to aid in identifying changes and to identify the types of changes made.

ROW-STATE Attribute can take 4 values respectively:
0 --> ROW-UNMODIFIED.
1 --> ROW-DELETED
2 --> ROW-MODIFIED
3 --> ROW-CREATED

i.e. IF btOrder:ROW-STATE = ROW-MODIFIED THEN ...


ROW-STATE Function is used to evaluate the value of ROW-SATE.

i.e. FOR EACH ttOrderBefore WHERE ROW-STATE(ttOrderBefore) = ROW-MODIFIED...