回复 4# sophie
还是不行。点击详细信息的时候还是报
Caused by: org.mozilla.javascript.EcmaError: TypeError: length is not a function, it is java.lang.Integer. (11e3-24e9-3ead954d-93e0-bb2468d7d52c).分类名称.ValueScript#10)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)
at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3375)
at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3430)
at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2052)
at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:117)
at org.mozilla.javascript.gen.c60._c0(Form.资源标引.Field(11e3-24e9-3ead954d-93e0-bb2468d7d52c).分类名称.ValueScript:10)
at org.mozilla.javascript.gen.c60.call(Form.资源标引.Field(11e3-24e9-3ead954d-93e0-bb2468d7d52c).分类名称.ValueScript)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
at org.mozilla.javascript.gen.c60.call(Form.资源标引.Field(11e3-24e9-3ead954d-93e0-bb2468d7d52c).分类名称.ValueScript)
at org.mozilla.javascript.gen.c60.exec(Form.资源标引.Field(11e3-24e9-3ead954d-93e0-bb2468d7d52c).分类名称.ValueScript)
at cn.myapps.core.macro.runner.JavaScriptRunner.run(JavaScriptRunner.java:117)
... 64 more
10:55:48,798 INFO WarpProcessFactory$WarpForm:2090 - $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
10:55:48,798 INFO WarpProcessFactory$WarpForm:2091 - var treeId=getParameter("treedocid");
var sql = "select * from tlk_资源分类 where id='"+treeId+"'";
var docs = findBySQL(sql);
var typename="";
if (docs !=null) {
typename = docs.getItemValueAsString("本级节点名称");
}
var typenumber = getItemValueAsString("分类名称");
var index=typename.indexOf(".");
var name1 = typename.substring(index+1,typename.length());
if(typenumber.trim().length()<=0){
typenumber = name1;
}
typenumber; |