Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Dataset.Modified issue
Sat, Aug 29 2015 11:37 AMPermanent Link

Uli Becker

In an application I use a form to edit data from a dataset.
In the OnShow event of the form the dataset (which is placed on the main
form) is assigned to all databound edit fields.

When I close the form, I check the dataset.modified property in order to
prompt the user if he wants to save changes or not.

With 2.01 something seems to have changed. The "modified" property it
always true, even if nothing has been changed (at least I am not aware
of any changes).

Any ideas?

Thanks Uli
Sat, Aug 29 2015 12:26 PMPermanent Link

Uli Becker

Addition: it's not the Edit-Form. The dataset's modified-property is
true even directly after loading the dataset.
That was not the case in 2.00.

Uli
Mon, Aug 31 2015 9:57 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< With 2.01 something seems to have changed. The "modified" property it always true, even if nothing has been changed (at least I am not aware of any changes). >>

It's a bug in 2.01.  The fix is here in WebData -  the TDataRow.CanNotifyChanges method should look like this:

function TDataRow.CanNotifyChanges: Boolean;
begin
  Result:=inherited CanNotifyChanges;
  if Result then
     Result:=(FDataSet.State <> dsReset);
end;

I'll have a fix in B3.

Tim Young
Elevate Software
www.elevatesoft.com
Image