I have application on DELPHI 6 an pivotcube vcl two years old and it works corectly. Now i bought update to delphi 2007 and assign my application to them.
when i compile it on DELPHI 2007 it doesnt work.
Problem is that pivogrid is empty when i run it. Any dimenzions arent loaded. pivotmap.DimensionCount=0
I have DBF datasources.
I crete DIM
ADimensionItem:=pvCube.Dimensions.Add;
ADimensionItem.DataSet:=adodsCache;
ADimensionItem.AliasName:=APol;
ADimensionItem.FieldName:=APol;
ADimensionItem.DisplayName:=ANaz;
ADimensionItem.DataSet:=adodsCache;
ADimensionItem.Sorting:=dmtKeySort;
if FXmlParser.CurName='DIMZ' then
AMapDimension:=pvMap.Rows.Add
else if FXmlParser.CurName='DIMX' then
AMapDimension:=pvMap.Columns.Add;
AMapDimension.Name:=APol;
AMapDimension.DisplayName:=ANaz;
and Measure
AMeasureItem:=pvCube.Measures.Add;
AMeasureItem.DataType:=ftFloat;
AMeasureItem.FieldName:=APol;
AMeasureItem.CalcType:=ACalcType;
AMeasureItem.AliasName:=ANaz;
AMeasureItem.FormatString:='#,##0.00';
and when i do
pivotgrid.Activate:=true
in delphi 6 appears pvMap.DimensionCount on required value
in delphi 2007 pvMap.DimensionCount=0 and it error.
What can be wrong?
Can you help me?
Thankls Josef.