FastCube: Number fields of TfcxDataSource and localiztion header
Your instructions are more than brief. Still, I'm having 2 problems.
I have 4 fields in Query. There are only three in TfcxDataSource.
I don't know, not working localization of caption header.
TFDFunction.QryOpen(FqryCubeDeposit);
ShowMessage(IntToStr(FqryCubeDeposit.Fields.Count)); // 4 OK
FDataSource.DeleteFields;
FCube.Open;
ShowMessage(IntToStr(FDataSource.Fields.Count)); // 3 why ???
The missing field is of type 'string'.
for var I := 0 to FDataSource.Fields.Count - 1 do
begin
FDataSource.Fields[I].DataField.CubeFieldDisplayLabel := FServices[0].Title; // nothing
FDataSource.Fields[I].SourceFieldProperties.CaptionSourceAttribute := FServices[0].Title; // nothing
end;
Comments
I already solved it. I was getting the field using LIST (Firebird). I changed it to MAX.
Just the first point. The second needs to be addressed.