|
|
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 |
|