Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 3 of 3 total |
Dataset Modified attribut change to true |
Tue, Jul 23 2013 7:53 PM | Permanent 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 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. 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 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. 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 |
This web page was last updated on Sunday, December 1, 2024 at 03:59 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |