Consultor Eletrônico



Kbase P106750: Child records are not synchronized with the parent record when attaching BROWSEs to ProDataSet temp-
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/31/2006
Status: Verified

FACT(s) (Environment):

OpenEdge 10.0x

SYMPTOM(s):

Child records are not synchronized with the parent record when attaching BROWSEs to ProDataSet temp-tables

Window contains 2 BROWSEs (parent and child)

Each BROWSE is attached to a ProDataSet temp-table (ttCustomer, ttOrder)

When clicking on the child BROWSE, and then clicking on another record of the parent BROWSE, the child BROWSE is not refreshed

Child BROWSE still displays the child records associated to the previous parent selected.

CAUSE:

This is expected behavior.
If the child browse is selected, and then you click in the parent browse again, the first click selects the parent browse, and the second click selects the row and causes the order browse to synchronize.

FIX:

There are 2 ways to synchronize the relation Parent-Child on the first click on the parent browse:

1. Call the SYNCHRONIZE() method in the MOUSE-SELECT-CLICK trigger of the parent browse:

For example, assuming dsCustOrder is a ProDataSet containing 2 temp-tables ttCustomer and ttOrder with a relation Customer-Order:

DATASET dsCustOrder:GET-BUFFER-HANDLE(1):SYNCHRONIZE().

OR

2. Set the AUTO-SYNCHRONIZE attribute of the buffer to TRUE:

For example, assuming dsCustOrder is a ProDataSet containing 2 temp-tables ttCustomer and ttOrder with a relation Customer-Order:

DATASET dsCustOrder:GET-BUFFER-HANDLE(1):AUTO-SYNCHRONIZE = TRUE.