Consultor Eletrônico



Kbase P9204: How to update different SDVs belonging to the same SDO.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   12/11/2002
Status: Unverified

GOAL:

How to update different SDVs belonging to the same SDO.

GOAL:

How to update different SDVs which are in different SmartFolder, but all the SDVs belong to the same SDO.

CAUSE:

ADM2

FIX:

Use the GroupAssign SmartLink.

GroupAssign SmartLinks are intended for grouping updates in multiple smartDataViewers into one transaction. To do this, you link a master SmartDataViewer to the SmartDataObject with an Update SmartLink, then use GroupAssigns to link this SmartDataViewer to the other SmartDataViewers that will be grouped with it. When the updateRecord procedure executes the collectChanges procedure runs for the master SmartDataViewer in order to collect changed field values from all of its GroupAssign–Targets. The collected changes serve as the input to the submitRow procedure in the data source that updates the database.