(RESOLVED)Where is the function for changed field?

The forum for ZeosLib 7.2 Report problems. Ask for help, post proposals for the new version and Zeoslib 7.2 features here. This is a forum that will be edited once the 7.2.x version goes into RC/stable!!

My personal intention for 7.2 is to speed up the internals as optimal a possible for all IDE's. Hope you can help?! Have fun with testing 7.2
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: 12.02.2017, 17:00

(RESOLVED)Where is the function for changed field?

Postby Soner » 26.02.2018, 18:32

I am using cachedupdates with TZQuery. I have in my query one fkinternalcalc-Field and I am using this as variable for one data row.
I had to change some code to take values for fkinternalcalc-Fields like this:

Code: Select all

// Don't take it now to ZEOS-Library it must be tested,
// maybe can cause problems on not cached datasets
// zeos\src\componenten\zdatasetutils.pas
procedure PostToResultSet(ResultSet: IZResultSet;
    Current := Fields[I];   
   // !!!!!! Change next line 586:  !!!
    if not (Current.FieldKind in [fkData, fkInternalCalc]) then //soner original: if Current.FieldKind <> fkData then

This is working good for cacheddatesets but when I change only InternalCalcfield then TZQuery.UpdatesPending is true and TZQuery.UpdateStatus is usModified.
When one Internalcalc-field is changed then I don't want set modified or UpdatesPending flag.
I could not find out, which function is called after Internalcalc-fields value is changed or changing.

Can you tell me which function is called when one fields value is changing?


I found it, it is procedure TZAbstractRODataset.SetFieldData in src/component/ZAbstractRODataset.pas

User avatar
Zeos Dev Team
Zeos Dev Team
Posts: 1739
Joined: 31.03.2011, 22:38

Re: (RESOLVED)Where is the function for changed field?

Postby EgonHugeist » 04.03.2018, 13:58

Is there something we can do for you?
King regards, Michael

You want to help? viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/


Return to “ZeosLib 7.2 Forum”

Who is online

Users browsing this forum: No registered users and 1 guest