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

更新数据

[复制链接]
hello 发表于 2012-9-3 12:36:28 | 显示全部楼层 |阅读模式
本帖最后由 bess 于 2012-9-4 13:58 编辑

var state=getStateLabel();
if(state!=''){
var sql="update tlk_chuxingshenqing set statelabel='"+state+"' where Parent='"+getId()+"'";
updateByDSName('dectortech_oa',sql);
}

本帖子中包含更多资源

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

×
 楼主| hello 发表于 2012-9-3 12:37:10 | 显示全部楼层
更新数据
无效果
回复

使用道具 举报

bess 发表于 2012-9-3 13:32:30 | 显示全部楼层
您好,麻烦您用打印语句定位一下问题,确定if模块的代码是否执行。
回复

使用道具 举报

 楼主| hello 发表于 2012-9-3 13:37:37 | 显示全部楼层
var state=getStateLabel();
/*if(state!=''){
var sql="update tlk_chuxingshenqing set statelabel='"+state+"' where Parent='"+getId()+"'";
updateByDSName('dectortech_oa',sql);
}*/
println('hwehksh'+getStateLabel()+sql);
回复

使用道具 举报

 楼主| hello 发表于 2012-9-3 13:37:53 | 显示全部楼层
一样无效果
回复

使用道具 举报

shary 发表于 2012-9-3 13:40:44 | 显示全部楼层
您把您的sql语句打印出来并在数据库客户端执行下是否生效。如果还是不行给您远处看下
回复

使用道具 举报

bess 发表于 2012-9-3 13:44:52 | 显示全部楼层
您好,请问您具体是想实现什么业务?是否是根据流程状态进行数据源操作?
如果是,您可以参考帖子:http://www.teemlink.com/bbs/view ... hlight=%D7%B4%CC%AC
回复

使用道具 举报

 楼主| hello 发表于 2012-9-4 13:56:07 | 显示全部楼层
更新数据jiejuele
回复

使用道具 举报

bess 发表于 2012-9-4 13:58:25 | 显示全部楼层
感谢楼主的告知!
回复

使用道具 举报

本版积分规则

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

GMT+8, 2026-8-14 04:06

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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