天翎MyApps技术社区 - 低代码平台 | 流程管理系统 | BPM软件

 找回密码
 注册成为天翎用户
查看: 1826|回复: 0

[Iscript] 系统表不存在domainid的处理办法【不存在domainid处理办法】

[复制链接]
purple 发表于 2012-3-30 14:09:49 | 显示全部楼层 |阅读模式
Q:在平台查询数据库数据,总是提示domainid不存在,加上域ID,又提示是未知列,在数据库客户端查询,发现该表根本就不存在这个表,现在该怎么办。我是要查询指定模块下的所以表单名称。我的sql是:var  sql= "select name as item_name from obpm.t_dynaform_form where module in(select ID from obpm.t_module where name='人事')";

A:不存在domainid的表单,查询时可使用'"+getDomainid()+"' as DOMAINID的方法。将您的sql修改成下述即可:
var sql = "select '"+getDomainid()+"' as domainid,name as item_name from obpm.t_dynaform_form where module in(select id  from  obpm.t_module where name='人事')";

本版积分规则

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

GMT+8, 2026-8-12 13:35

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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