找回密码
 注册成为天翎用户

[已解决] 表单保存如何保存自己设计的页面数据进行流程?

[复制链接]
 楼主| 湖南山奕科技 发表于 2014-8-26 17:21:06 | 显示全部楼层
自定义的JS 怎么封装成函数库?
回复

使用道具 举报

dan 发表于 2014-9-1 12:03:42 | 显示全部楼层
鉴于此方法实现有难度,我们的技术人员将尽快将这个问题做成一个demo放在精华贴。
回复

使用道具 举报

dan 发表于 2014-9-4 13:48:20 | 显示全部楼层
此问题已做成了精华贴,请参考:http://www.teemlink.com/bbs/viewthread.php?tid=200955&extra=
回复

使用道具 举报

 楼主| 湖南山奕科技 发表于 2014-9-5 08:49:36 | 显示全部楼层
var params = getParamsTable();
var parameters = params.getParams();
var json_data = "{";
for(var iterator = parameters.entrySet().iterator(); iterator.hasNext();) {
   var nt = iterator.next();
   var name = nt.getKey().toString();
   var val =  nt.getValue().toString();
   if(name.startsWith("row")) {
        if(val == null) {
                  val = "";
                }
            json_data += "\"" + name + "\":\"" + val + "\",";
   }         
}
var lastIndex = json_data.lastIndexOf(",");
if (lastIndex > -1) {
  json_data = json_data.substring(0, lastIndex) + json_data.substring(lastIndex + 1, json_data.length);         
}
json_data += "}";
println(json_data);
params.setParameter("json_data", json_data);
getCurrentDocument().findItem("json_data").setValue(json_data);
true;
回复

使用道具 举报

 楼主| 湖南山奕科技 发表于 2014-9-5 08:52:59 | 显示全部楼层
JsUtil:{"content.audituser":"","flowid":"","defVal":"","mGetDocumentUrl":"http://192.168.1.105:8080/obpm/portal/dynaform/mysignature/getDocument.action","_resourceid":"11e4-290d-596e6c71-806d-4944b50adf8a","parentid":"","domainid":"","realPath":"F:\myAppsx86\bin\apache-tomcat-6.0.37\webapps\obpm\","openType":"","燃料动力费_5":"","operation":"","燃料动力费_6":"","shenpir":"","燃料动力费_3":"2321","燃料动力费_4":"","content.authorId":"11e4-028b-c44519c0-9e0e-b744aa99ce44","燃料动力费_1":"321","_currpage":"","燃料动力费_2":"321","content.authorDeptIndex":"11e4-028b-b5eb16ab-9e0e-b744aa99ce44","工资_2":"333","_flowType":"80","工资_3":"22","content.lastmodified":"","工资_1":"321","工资_6":"","_pagelines":"","工资_4":"","tabid":"","工资_5":"","_templateForm":"","content.sortId":"","signatureExist":"false","_flowid":"","content.versions":"0","applicationid":"11e4-281b-00725b55-9743-15f70a28b883","isStartFlow":"true","currentDate":"","content.stateInt":"0","_backURL":"../../../portal/cool/closeTab.jsp","_formid":"11e4-28e0-19e94203-806d-4944b50adf8a","content.applicationid":"11e4-281b-00725b55-9743-15f70a28b883","bmcj":"11e4-2d8e-94574318-9909-771dea6acd4b","isedit":"","电_1":"321","document.token":"56JC02KW8CQAT0ZZNG6O945JEC97698U","电_2":"321","_currid":"","data":"","content.stateLabel":"","treedocid":"","电_3":"21","电_4":"","电_5":"","电_6":"","_rowcount":"","_activityid":"11e4-2cc2-db70d58f-8e7b-8f150a5ce037","mLoginname":"001001","feiyongbh":"FY1400065","isWithoutValidate":"true","_docid":"11e4-3496-40a3e99b-bc49-ddac0264db78","json_data":"","isRelate":"","domain":"11e4-028b-b5eb16aa-9e0e-b744aa99ce44","content.id":"11e4-3496-40a3e99b-bc49-ddac0264db78","content.author.id":"11e4-028b-c44519c0-9e0e-b744aa99ce44","application":"11e4-281b-00725b55-9743-15f70a28b883","isinner":"","divid":"","handleUrl":"","汽_6":"","汽_5":"","汽_4":"","汽_3":"33","formid":"11e4-28e0-19e94203-806d-4944b50adf8a","汽_2":"321","message":"","汽_1":"321","content.istmp":"true","content.lastFlowOperation":"","content.created":"2014-09-05 08:47:46","content.auditdate":"","struts.token.name":"document.token","content.stateid":"","content.mappingId":"11e4-3496-40a3e99b-bc49-ddac0264db78","view_id":"[Ljava.lang.String;@132e9d5","content.initiator":""}

上面的复制错了,控制台输出这个,但是数据还是没有保存
回复

使用道具 举报

dan 发表于 2014-9-5 10:40:52 | 显示全部楼层
远程了解客户没根据自己的数据修改代码就直接使用,使得效果不生效,已远程解决。
回复

使用道具 举报

 楼主| 湖南山奕科技 发表于 2014-9-5 10:49:20 | 显示全部楼层
问题已解决。。
回复

使用道具 举报

dan 发表于 2014-9-5 14:05:00 | 显示全部楼层
感谢反馈!
回复

使用道具 举报

本版积分规则

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

GMT+8, 2026-8-13 22:36

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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