找回密码
 注册成为天翎用户
楼主: taoyuan

怎样获取全部流程历史的审批人?

[复制链接]
 楼主| taoyuan 发表于 2012-8-3 09:36:29 | 显示全部楼层
var docid = $CURRDOC.getCurrDoc().getId();
sql="select * from t_relationhis where docid='"+docid+"'";
var datas = queryBySQL(sql);
for (var it = datas.iterator();datas!=null && it.hasNext();){
      var doc1 = it.next();
      var name = doc1.getItemValueAsString("auditor")+";";
        }
name;

我的值脚本,报错

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册成为天翎用户

×
回复

使用道具 举报

bess 发表于 2012-8-3 09:44:26 | 显示全部楼层
您好,提示您的列不存在。麻烦您在where条件后面加上yuid为查询条件。
回复

使用道具 举报

 楼主| taoyuan 发表于 2012-8-3 09:48:27 | 显示全部楼层
yuid 是啥?请回答具体点呗,不太明白。。。
回复

使用道具 举报

bess 发表于 2012-8-3 10:15:56 | 显示全部楼层
额,抱歉,由于我的错误,打错了。是域id,即为domainid这个字段。您需要在您的查询条件哪里加上domainid作为查询条件。
即:select * from t_relationhis where docid='"+docid+"'  and  domainid = "......"
回复

使用道具 举报

 楼主| taoyuan 发表于 2012-8-3 13:20:51 | 显示全部楼层
t_relationhis 没有域这个字段。。额,改下SQL解决了
回复

使用道具 举报

bess 发表于 2012-8-3 13:33:38 | 显示全部楼层
谢谢楼主告知!
回复

使用道具 举报

本版积分规则

手机版|天翎MyApps技术社区 ( 粤ICP备11093750号 )

GMT+8, 2026-8-14 01:57

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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