本帖最后由 nice 于 2014-8-4 14:33 编辑
晕,表单地址,没有表单id,深坑!
你参考这个 给到对应的参数!
//获取当前域
var contextPath = getContextPath();
//获取记录id
var id = getId();
//表单id
var formId =getCurrentDocument().getFormid();
//获取应用id
var applicationId = getApplication();
//弹出层标题
var titletext = getId();
//按钮显示文字
var buttontext = "打开";
//弹出层大小
var width = "500";
var height = "500";
//拼接成url
contextPath + "/branch/uploads/billflow/"+formId+".jpg?tempid="+id;
var url = contextPath + "/portal/dynaform/document/view.action?_docid="+id+"&_formid="+formId+"&application="+applicationId ;
//拼接成button
var rtns = "<input type='button' value='"+buttontext+"' onclick='OBPM.dialog.show({width: "+width+",height: "+height +",url:\""+url+"\",args:{j:1},title : \""+titletext+"\",close: function(rtn) {clearInterval(it);}});'/>";
rtns; |