起步软件技术论坛-X3

 找回密码
 立即注册
搜索
查看: 272|回复: 5

急!急!急!建模平台可以运行,运行平台报错!

[复制链接]
发表于 2010-7-21 13:50:48 | 显示全部楼层 |阅读模式
一个新做的功能,在建模平台中运行不报错,可是运行平台中打开就报错了。报错的位置如下:

标准风格主窗体
unit STANDARDSTYLEMAINFORM;

procedure TSTANDARDSTYLEMAINFORM.DefaultRefreshRelevancies(ANavBar: TRelevancyNavBar);
var
  I, J: Integer;
  lInfo: TInfo;
begin
  for I := 0 to CurrentFunc.Context.ChildCount - 1 do
    if CurrentFunc.Context.Children[I].Owner is TInfo then
    begin
      lInfo := CurrentFunc.Context.Children[I].Owner as TInfo;
      for J := 0 to lInfo.DataSetCount - 1 do
        ANavBar.BindDataSet(lInfo.DataSets[J]);
    end;
  ANavBar.ReloadRelevancies(CurrentFunc.Context, CurrentFunc.BizClassURL.BizURL.URL);
end;

这个函数中:
  ANavBar.ReloadRelevancies(CurrentFunc.Context, CurrentFunc.BizClassURL.BizURL.URL);
报错,报错内容:

运行系统初始化的时候发生异常:数据集“电厂月值可靠性”取字段定义失败

类型:EBizDataSet。

==================================================
数据集sql语句是下面的,我们用的数据库是oracle数据库,不过这个数据集是取的另外一个sql server 2005的数据,当时建数据集的时候也报错,不过保存了能打开,而且在建模工具中运行功能时不报错

select content from
(select Calendar_0date writedate,
       case when fcode='PS0' then 101
            when fcode='RD0' then 102
            when fcode='SH00' then 103
            when fcode='SZ0' then 104
            when fcode='SM0' then 105
            when fcode='ZD0' then 106
            when fcode='TS0' then 108
            when fcode='DZ0' then 110
            when fcode='TC0' then 111
            when fcode='NH0' then 112
            when fcode='CD0' then 113
            when fcode='JJ0' then 114
            when fcode='YY0' then 115
            when fcode='XZ0' then 117
            when fcode='PS0' then 101
            when fcode='ZH0' then 118
            when fcode='HZ0' then 120           
            ELSE 100 end enpid,
       case when zbmc='等效可用糸数' then 33
            when zbmc='等效强迫停运率'  then 31
            when zbmc='非计划停运系数'  then 35
            else 100 end numberlx,
       fvalue content
from dbo.ZH_Fact_kkx_JY a,dbo.SCTJ_Dim_zb b,dbo.Dim_Ghjz c,dbo.Dim_Calendar_date d
where a.DW_zbmc_id=b.Dim_zbmc_id
and a.DW_datetime_id=d.Calendar_date_id
and a.DW_dc_id=c.Dim_dc_id and b.Dim_zbmc_id in (409,410,1068)) tt1
where enpid = :EntityCode
and  numberlx = :HandleCode
and  writedate = :Runtimedate


================================================
非常着急 ,下午4点前务必要解决的问题,要不甲方要拍人了,哈哈,客服帮帮忙吧
回复

使用道具 举报

 楼主| 发表于 2010-7-21 14:00:09 | 显示全部楼层
自己顶一下 着急啊 客服人员帮忙解决一下啊
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-7-21 14:15:17 | 显示全部楼层
自己再顶一下 为什么看的人多 没人解决一下啊
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-7-21 14:35:37 | 显示全部楼层
再顶
回复 支持 反对

使用道具 举报

发表于 2010-7-21 14:53:23 | 显示全部楼层
数据集打开了吗?
回复 支持 反对

使用道具 举报

发表于 2010-7-21 15:07:24 | 显示全部楼层
楼主是否有资源没有签入,例如数据库的逻辑定义,签入后还需要刷新缓存或者重新启动服务哦
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Justep Inc.

GMT+8, 2025-7-7 22:58 , Processed in 0.039768 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表