close: function() {
}
中获取不到 session 的值 ~ 用 document.getElementByName("xx");也获取不到页面的元素,可能是这个方法还没有得到完善。
通过与技术人员沟通,在关闭事件中不能实现这个功能,现在在表单页面添加一个按钮, 在按钮动作执行前执行脚本 :
- var request = $WEB.getParamsTable().getHttpRequest();
- var subjectName = request.getSession().getAttribute("subjectName");
- var subjectNo = request.getSession().getAttribute("subjectNo");
- var doc = getCurrentDocument();
- doc.findItem("subjectName").setValue(subjectName);
- doc.findItem("subjectNo").setValue(subjectNo);
复制代码 |