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 attribut change to true
Tue, Jul 23 2013 7:53 PMPermanent Link

lejetou

Hi,
It looks like the dataset Modified attribut change to true when using Find like follow :

MyDataset.InitFind;
MyDataset.Columns['id'].asstring:='AY231'; <- This ligne change the dataset Modified attribut change to true.
MyDataset.Find;

The event OnRowchange is fired (but in fact nothing have been change in the dataset).

In my case OnRowChange contains a MyDataset.Save, so if this code is called when a transaction is active it can log an update to the table when commiting with afterrow in JSON like "afterrow": {  }
(useless operation - noting to update)
Mon, Jul 29 2013 1:54 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Lejetou,

<< It looks like the dataset Modified attribut change to true when using
Find like follow : >>

Thanks, I'll make sure that this is fixed in the next build.

<< In my case OnRowChange contains a MyDataset.Save, so if this code is
called when a transaction is active it can log an update to the table when
commiting with afterrow in JSON like "afterrow": {  } >>

You can't assume that the OnRowChanged event will only fire for updates to
rows.  It fires whenever a row changes, for whatever reason, and that can
also be due to navigation, etc.

Tim Young
Elevate Software
www.elevatesoft.com
Sat, Jan 18 2014 4:08 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Lejetou,

I looked at this issue for 1.03 and determined that it was not a bug.  In
most cases, we still want all of the behaviors that you describe, even for
searching, so you will need to modify your OnRowChange code to exclude
trying to do any additional processing if the dataset state is dsFind.

If you have any other questions, please let me know.

Tim Young
Elevate Software
www.elevatesoft.com
Image