Consultor Eletrônico



Kbase P98481: Updated Temp-tables received from .Net client do not contain before-tables
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   19/04/2006
Status: Verified

FACT(s) (Environment):

OpenEdge 10.x

SYMPTOM(s):

Updated Temp-tables received from .Net client do not contain before-tables

Passing the DataSet as INPUT DATASET-HANDLE

Receiving the ProDataSet as a dynamic object (DATASET-HANDLE)

VALID-HANDLE(hBufferTT:BEFORE-BUFFER) returns FALSE

CAUSE:

The before-image flag has not be set on the .NET client side.

For a .NET DataTable, the client is responsible for setting the before-image flag with the ProDataTable static method SetBImageFlag().

The BImageFlag must be set for dynamic temp-table and ProDataset INPUT parameters to match the value of the BEFORE-TABLE attribute for the temp-table or temp-tables within the ProDataSet in the 4GL.


FIX:

Use the ProDataTable static method SetImageFlag()

The syntax is:
static void SetBImageFlag(System.Data.Datatable dt, bool flag)

where flag is true or false.

C# example:

ProDataTable.SetBImageFlag( myDataSet.Tables["State"],true);