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

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

[已解决] 主子表关联问题

[复制链接]
金中软件 发表于 2013-10-22 11:45:01 | 显示全部楼层 |阅读模式
本帖最后由 echochen 于 2013-10-23 11:57 编辑

带流程的主子表,处理人1的明细表获取主表值后,处理人2登录新建明细时,弹出“*”错误,查看tomcat是获取不到该主表值
bobo 发表于 2013-10-22 12:12:22 | 显示全部楼层
你好:您是在子表单的某个控件值是获取主表单值,然后处理人2登录新建明细报*号,您具体的操作是指处理人2在主表对应的包含元素中点新建会出现这个错误,还是直接点击菜单对应的子表单的视图新建呢? 同时麻烦您把对应的脚本贴出来和后台tomcat报的错误信息。
 楼主| 金中软件 发表于 2013-10-22 14:40:49 | 显示全部楼层
明细表控件脚本:
var pdoc=getParentDocument();
var value1=getItemValueAsString("crnature");
if(pdoc.getId()!=null){
    value1=pdoc.getItemValueAsString("crnature1");
}
value1;
1.jpg
如图所示,填写意见上为主表,下为明细表,明细表某些字段值从主表中获取,点击明细表“新建”的时候才弹出“*”提示

tomcat信息:
        at org.jasig.cas.client.validation.AbstractTicketValidationFilter.doFilt
er(AbstractTicketValidationFilter.java:197)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at cn.myapps.core.sso.cas.filter.OBPMAuthenticationFilter.doFilter(OBPMA
uthenticationFilter.java:84)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.jasig.cas.client.session.SingleSignOutFilter.doFilter(SingleSignO
utFilter.java:76)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at cn.myapps.base.web.filter.EncodingFilter.doFilter(EncodingFilter.java
:28)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:48
9)
        at java.lang.Thread.run(Thread.java:619)
11:07:03,156  WARN Document:829 - Item nowuser's value can't get as string!
11:07:03,156  WARN Document:829 - Item project's value can't get as string!
11:07:03,156  WARN Document:829 - Item crnature1's value can't get as string!
11:07:03,156  WARN Document:829 - Item bsnature's value can't get as string!
11:07:03,156  WARN Document:829 - Item opnion0's value can't get as string!
11:07:03,156  WARN Document:829 - Item crarea1's value can't get as string!
11:07:03,171  WARN Document:829 - Item bsarea's value can't get as string!
11:07:03,171  WARN Document:829 - Item opnion1's value can't get as string!
11:07:03,171  WARN Document:829 - Item crdensity1's value can't get as string!
11:07:03,171  WARN Document:829 - Item bsdensity's value can't get as string!
11:07:03,171  WARN Document:829 - Item crvoluminosity's value can't get as strin
g!
11:07:03,171  WARN Document:829 - Item bsvoluminosity's value can't get as strin
g!
11:07:03,171  WARN Document:829 - Item crlayer's value can't get as string!
11:07:03,171  WARN Document:829 - Item bslayer's value can't get as string!
11:07:03,171  WARN Document:829 - Item crheight's value can't get as string!
11:07:03,171  WARN Document:829 - Item bsheight's value can't get as string!
11:07:03,171  WARN Document:829 - Item crflinch's value can't get as string!
11:07:03,171  WARN Document:829 - Item bsflinch's value can't get as string!
11:07:03,171  WARN Document:829 - Item crparking's value can't get as string!
11:07:03,171  WARN Document:829 - Item bsparking's value can't get as string!
11:07:03,171  WARN Document:829 - Item crproperty's value can't get as string!
11:07:03,171  WARN Document:829 - Item bsproperty's value can't get as string!
11:07:03,171  WARN Document:829 - Item opnion2's value can't get as string!
11:07:03,171  WARN Document:829 - Item crpower's value can't get as string!
11:07:03,171  WARN Document:829 - Item bspower's value can't get as string!
11:07:03,171  WARN Document:829 - Item crrefuse's value can't get as string!
11:07:03,171  WARN Document:829 - Item bsrefuse's value can't get as string!
11:07:03,171  WARN Document:829 - Item crtoilet's value can't get as string!
11:07:03,171  WARN Document:829 - Item bstoilet's value can't get as string!
11:07:03,171  WARN Document:829 - Item crschool's value can't get as string!
11:07:03,171  WARN Document:829 - Item bsschool's value can't get as string!
11:07:03,171  WARN Document:829 - Item crkindergarten's value can't get as strin
g!
11:07:03,171  WARN Document:829 - Item bskindergarten's value can't get as strin
g!
11:07:03,171  WARN Document:829 - Item crhotel's value can't get as string!
11:07:03,171  WARN Document:829 - Item bshotel's value can't get as string!
11:07:03,187  WARN Document:829 - Item crroad's value can't get as string!
11:07:03,187  WARN Document:829 - Item bsroad's value can't get as string!
11:07:03,187  WARN Document:829 - Item spacing's value can't get as string!
11:07:03,187  WARN Document:829 - Item sbspacing's value can't get as string!
11:07:03,187  WARN Document:829 - Item opinion3's value can't get as string!
11:07:03,187  WARN Document:829 - Item fire's value can't get as string!
11:07:03,187  WARN Document:829 - Item sbfire's value can't get as string!
11:07:03,187  WARN Document:829 - Item doorway's value can't get as string!
11:07:03,187  WARN Document:829 - Item sbdoorway's value can't get as string!
11:07:03,187  WARN Document:829 - Item style's value can't get as string!
11:07:03,187  WARN Document:829 - Item sbstyle's value can't get as string!
11:07:03,187  WARN Document:829 - Item opinion4's value can't get as string!
11:07:03,187  WARN Document:829 - Item roof's value can't get as string!
11:07:03,187  WARN Document:829 - Item sbroof's value can't get as string!
11:07:03,187  WARN Document:829 - Item colour's value can't get as string!
11:07:03,187  WARN Document:829 - Item sbcolour's value can't get as string!
11:07:03,187  WARN Document:829 - Item balcony's value can't get as string!
11:07:03,187  WARN Document:829 - Item sbbalcony's value can't get as string!
11:07:03,187  WARN Document:829 - Item pipeline's value can't get as string!
11:07:03,187  WARN Document:829 - Item sbpipeline's value can't get as string!
11:07:03,187  WARN Document:829 - Item building's value can't get as string!
11:07:03,187  WARN Document:829 - Item sbbuilding's value can't get as string!
11:07:03,187  WARN Document:829 - Item opinion5's value can't get as string!
11:07:03,187  WARN Document:829 - Item traffic's value can't get as string!
11:07:03,187  WARN Document:829 - Item sbtraffic's value can't get as string!
11:07:03,187  WARN Document:829 - Item lustre's value can't get as string!
11:07:03,187  WARN Document:829 - Item sblustre's value can't get as string!
11:07:03,187  WARN Document:829 - Item architecture's value can't get as string!

11:07:03,187  WARN Document:829 - Item sbarchitecture's value can't get as strin
g!
11:07:03,187  WARN Document:829 - Item greening's value can't get as string!
11:07:03,187  WARN Document:829 - Item sbgreening's value can't get as string!
11:07:03,187  WARN Document:829 - Item lighting's value can't get as string!
11:07:03,203  WARN Document:829 - Item sblighting's value can't get as string!
11:07:03,203  WARN Document:829 - Item infrastructure's value can't get as strin
g!
11:07:03,203  WARN Document:829 - Item sbinfrastructure's value can't get as str
ing!
11:07:03,203  WARN Document:829 - Item hardplan's value can't get as string!
11:07:03,203  WARN Document:829 - Item sbhardplan's value can't get as string!
11:07:03,203  WARN Document:829 - Item ventilate's value can't get as string!
11:07:03,203  WARN Document:829 - Item sbventilate's value can't get as string!
11:07:03,203  WARN Document:829 - Item daylighting's value can't get as string!
11:07:03,203  WARN Document:829 - Item sbdaylighting's value can't get as string
!
11:07:03,203  WARN Document:829 - Item opinion6's value can't get as string!
11:07:03,203  WARN Document:829 - Item additional's value can't get as string!
echochen 发表于 2013-10-22 14:55:29 | 显示全部楼层
您好,请您把您的明细表控件脚本屏蔽掉后看看还有没有报错
 楼主| 金中软件 发表于 2013-10-23 11:12:02 | 显示全部楼层
控件太多,于是新建一表单进行测试,仍然报错“*”
kimi 发表于 2013-10-23 11:24:49 | 显示全部楼层
您好:您具体的操作是平台后台新建一个表单,然后前台视图点击新建报*号,还是保存表单时报*号呢?
bobo 发表于 2013-10-23 11:25:21 | 显示全部楼层
您好,本地测试,用您的代码,是可以正常获取到值的,而且也没有出现您所说的报*的错误!由此说明,您的代码是没有问题的哦!效果如下图:
1.png
2.png
3.png
4.png
 楼主| 金中软件 发表于 2013-10-23 11:55:38 | 显示全部楼层
回复 7# bobo


    已解决,原因是:
  流程中某个节点的审批人是表单中某个字段值,得到这些审批人后,有些审批人在后台用户里面没有指定他的默认部门,所以才会导致这个审批人登陆到平台时,新建数据等操作都出现星号错误,
经过排查,得此结论。给他指定默认部门就可以解决。
echochen 发表于 2013-10-23 11:57:07 | 显示全部楼层
嗯,本贴关闭。

本版积分规则

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

GMT+8, 2026-8-13 06:23

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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