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

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

[视图-列] 视图SQL过滤后的值,如何在列中显示?【视图列-脚本类型】视图-代码SQL

[复制链接]
purple 发表于 2011-12-2 17:48:35 | 显示全部楼层 |阅读模式
Q:视图过滤SQL:
var rdoc = getRelateDocument();
var value = rdoc.getItemValueAsString("nameCN_s");
var sql = " select tlk_fm_activity_person.item_participant as participant,tlk_fm_activity_person.id,tlk_fm_activity_person.domainid from tlk_fm_activity_person, tlk_fm_activities where tlk_fm_activities.ID = tlk_fm_activity_person.item_activityID and tlk_fm_activity_person.item_company = '"+ value +"'";
sql;
(在mysql>运行正常,有六条记录)
列设置中: 类型 script 值脚本:getItemValue("participant");
前台没有记录显示,Tomcat显示:item partipant's value can't get as string
知道是什么问题造成的吗?

A:平台取别名,必须加上item_。在视图列信息取值,getItemValue+数据类型(“别名”)。例如别名是item_aa,字符串类型,视图列取值getItemValueAsString(“aa”);

摘自:danielkaya的提问       原帖子链接:
http://www.teemlink.com/bbs/view ... %26amp%3Btypeid%3D2

本版积分规则

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

GMT+8, 2026-8-12 07:36

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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