Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.

Public Report
Report From: EDN/Member services    [ Add a report in this area ]  
Report #:  141969   Status: Reported
Client datasets internal calc fields failure with blobs
Project:  EDN Build #:  RAD Studio 10.2
Version:    1 Submitted By:   Joao Costa
Report Type:  Basic functionality failure Date Reported:  5/25/2017 8:50:21 AM
Severity:    Critical / Show Stopper Last Updated:
Platform:    All platforms Internal Tracking #:  
Resolution: None  Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description

When using iternal calculated field in client dataset and such field is a blob (ie. memo, widememo), the OnCalcFields event using that field will fail with "Dataset not in edit mode...".

The failure occurs on the "TClientBlobStream" class as on its constructor the "dsInternalCalc" state is not checked.

In TClientBlobStream class constructor, the entry "if not (FDataSet.State in [dsEdit, dsInsert, dsNewValue]) then..." shall be changed to "if not (FDataSet.State in [dsEdit, dsInsert, dsNewValue, dsInternalCalc]) then ..."
Steps to Reproduce:

See example project attached.

Workarounds
No valid workaround found ...
Attachment
None
Comments

None

Server Response from: ETNACODE01