建立多维数据集的问题---新手请教(急等,送分)

Richard854613 2003-04-26 11:25:03
我建立了一个多维数据集,当在多维数据集编辑器里保存的时候,系统提示事实数据表的大小不能为空,我换了几个事实数据表后还不行,请问如何使事实数据表的大小不为空。
...全文
118 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
gmlee 2003-05-13
  • 打赏
  • 举报
回复
var myMap: TCubeDims;
nCount: integer; // used in step 3
//DecisionCube1 and IBQuery1 are components on your form. DecisionCube1 is a TDecisionCube,
and IBQuery1 is a TIBQuery, or other TDataset descendant.

myMap := TCubeDims.Create(DecisionCube1, TCubeDim);
try
bParsed := false;
bDataSetMatch := false;
myMap.Assign(TCubeDims(DecisionCube1.DimensionMap));
anError := BuildDataSetMap(IBQuery1, myMap, bParsed, bDataSetMatch);
case anError of
tqeNotInitialized: raise ECubeDesignError.CreateRes(@sQryNotInitialized);
tqeNoDimensions: raise ECubeDesignError.CreateRes(@sNoDims);
tqeNoAggs: raise ECubeDesignError.CreateRes(@sNoAggs);
tqeNotGrouped: raise ECubeDesignError.CreateRes(@sGroupsMissing);
end;

with myMap do
begin
// Part A: Configure dimensions
for nCount := 0 to [Number of Dimensions - 1] do
begin
Items[nCount].DimensionType := dimDimension;
Items[nCount].BaseName := 'TABLE.FIELDNAME';
//If the dimension is a date and should be grouped, use this code
Items[nCount].FieldType:=ftDateTime;
Items[nCount].BinType:=binYear
{or}
Items[nCount].BinType:=binQuarter
{or}
Items[nCount].BinType:=binMonth
Items[nCount].BinFormat:='mm/dd/yyyy';
Items[nCount].StartValue:=BaseDate;
//If the dimension is not a date, or is a date but should not be grouped,use this code
Items[nCount].BinType:=binNone;
end;
// Part B: Configure summaries
for nCount:=[Number of Dimensions] to [Number of Fields-1] do
Items[nCount].DimensionType := dimCount;
end;

// And finally, apply the new dimension map
DecisionCube1.Refresh(myMap, true); finally
myMap.Free
end;
chensdss 2003-04-28
  • 打赏
  • 举报
回复
真的难为你啦
Richard854613 2003-04-26
  • 打赏
  • 举报
回复
如何定义事实数据表为unknown及与或操作。
sagac 2003-04-26
  • 打赏
  • 举报
回复
设计一个与或操作;
将空的事实数据表定义为unknown;
与的操作 unknown & 1 =null
或的操作 unknown ||1 =1
看你怎么定义了。

7,394

社区成员

发帖
与我相关
我的任务
社区描述
其他数据库开发 数据仓库
社区管理员
  • 数据仓库
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧