You've already forked lazarus-ccr
RxFPC:fix problem on calc values for footer row
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5819 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -1290,7 +1290,7 @@ begin
|
|||||||
FCountRec:=0;
|
FCountRec:=0;
|
||||||
|
|
||||||
if (ValueType in [fvtMin, fvtMax]) and (TRxDBGrid(
|
if (ValueType in [fvtMin, fvtMax]) and (TRxDBGrid(
|
||||||
FOwner.Grid).DataSource.DataSet.RecordCount <> 0) then
|
FOwner.Grid).DataSource.DataSet.RecordCount <> 0) and (FFieldName<>'') then
|
||||||
begin
|
begin
|
||||||
F := TRxDBGrid(FOwner.Grid).DataSource.DataSet.FieldByName(FFieldName);
|
F := TRxDBGrid(FOwner.Grid).DataSource.DataSet.FieldByName(FFieldName);
|
||||||
if (Assigned(F)) and not (F.IsNull) then
|
if (Assigned(F)) and not (F.IsNull) then
|
||||||
@ -1305,7 +1305,7 @@ procedure TRxColumnFooterItem.UpdateTestValue;
|
|||||||
var
|
var
|
||||||
F: TField;
|
F: TField;
|
||||||
begin
|
begin
|
||||||
if ValueType in [fvtSum, fvtAvg, fvtMax, fvtMin] then
|
if (ValueType in [fvtSum, fvtAvg, fvtMax, fvtMin]) and (FFieldName<>'') then
|
||||||
begin
|
begin
|
||||||
F := TRxDBGrid(FOwner.Grid).DataSource.DataSet.FindField(FFieldName);
|
F := TRxDBGrid(FOwner.Grid).DataSource.DataSet.FindField(FFieldName);
|
||||||
if Assigned(F) then
|
if Assigned(F) then
|
||||||
@ -1335,7 +1335,7 @@ var
|
|||||||
F: TField;
|
F: TField;
|
||||||
begin
|
begin
|
||||||
Result := True;
|
Result := True;
|
||||||
if ValueType in [fvtSum, fvtAvg, fvtMax, fvtMin] then
|
if (ValueType in [fvtSum, fvtAvg, fvtMax, fvtMin]) and (FFieldName<>'') then
|
||||||
begin
|
begin
|
||||||
F := TRxDBGrid(FOwner.Grid).DataSource.DataSet.FieldByName(FFieldName);
|
F := TRxDBGrid(FOwner.Grid).DataSource.DataSet.FieldByName(FFieldName);
|
||||||
if (Assigned(F)) and not (F.IsNull) then
|
if (Assigned(F)) and not (F.IsNull) then
|
||||||
@ -1354,7 +1354,7 @@ var
|
|||||||
F: TField;
|
F: TField;
|
||||||
begin
|
begin
|
||||||
Result := True;
|
Result := True;
|
||||||
if ValueType in [fvtSum, fvtAvg, fvtMax, fvtMin] then
|
if (ValueType in [fvtSum, fvtAvg, fvtMax, fvtMin]) and (FFieldName<>'') then
|
||||||
begin
|
begin
|
||||||
F := TRxDBGrid(FOwner.Grid).DataSource.DataSet.FieldByName(FFieldName);
|
F := TRxDBGrid(FOwner.Grid).DataSource.DataSet.FieldByName(FFieldName);
|
||||||
if Assigned(F) then
|
if Assigned(F) then
|
||||||
@ -1417,7 +1417,7 @@ var
|
|||||||
F: TField;
|
F: TField;
|
||||||
begin
|
begin
|
||||||
Result := True;
|
Result := True;
|
||||||
if ValueType in [fvtSum, fvtAvg, fvtMax, fvtMin] then
|
if (ValueType in [fvtSum, fvtAvg, fvtMax, fvtMin]) and (FFieldName<>'') then
|
||||||
begin
|
begin
|
||||||
F := TRxDBGrid(FOwner.Grid).DataSource.DataSet.FieldByName(FFieldName);
|
F := TRxDBGrid(FOwner.Grid).DataSource.DataSet.FieldByName(FFieldName);
|
||||||
if Assigned(F) then
|
if Assigned(F) then
|
||||||
|
Reference in New Issue
Block a user