首先要获取你要跳转试图的url,参考如下:
var values=getId();
var application=getApplication();
var parentid="11e1-b111-e3cd2bff-a19f-cb81bd7fa58c";
var resourceid="11e1-af7a-b1e1c6a8-9a76-1da54863c95b";
var url=$WEB.getParamsTable().getContextPath() +"/portal/dynaform/document/view.action?_docid="+values+"&_formid=11e1-af7a-b1e1c6a8-9a76-1da54863c95b&signatureExist=false&isSubDoc=true&isRelate=true&_viewid=11e1-b045-27c576fd-bcaf-61f879c0fa5f&parentid="+parentid+"&relatedform="+resourceid+"&openType=1&application="+application+"";
var rtn="<input type=button value="图片" onclick="window.open('"+url+"','','height=500,width=800,scrollbars=yes,resizable=yes,status=yes')">";
rtn; |